PHP Libraries › symfony › panther Symfony Panther is a PHP library providing a high-level API for web crawling and scraping using a real browser, based on ChromeDriver and Chrome. It allows for automated web testing, including JavaScript-heavy pages, without the need for Selenium or headless browsers.
Package Description Symfony Panther is a versatile PHP library used for web scraping and testing, offering a high-level browser automation API. It employs ChromeDriver and Chrome for real browser interactions, making it ideal for dynamic websites with JavaScript content. With Panther, developers can automate testing processes efficiently and effectively.
Classes: Symfony\Component\Panther\ServerExtensionLegacy Symfony\Component\Panther\ProcessManager\WebServerManager Symfony\Component\Panther\ProcessManager\WebServerReadinessProbeTrait Symfony\Component\Panther\ProcessManager\BrowserManagerInterface Symfony\Component\Panther\ProcessManager\FirefoxManager Symfony\Component\Panther\ProcessManager\SeleniumManager Symfony\Component\Panther\ProcessManager\ChromeManager Symfony\Component\Panther\ExceptionThrower Symfony\Component\Panther\ServerTrait Symfony\Component\Panther\PantherTestCase Symfony\Component\Panther\ServerExtension Symfony\Component\Panther\WebDriver\WebDriverMouse Symfony\Component\Panther\WebDriver\WebDriverCheckbox Symfony\Component\Panther\WebDriver\PantherWebDriverExpectedCondition Symfony\Component\Panther\Cookie\CookieJar Symfony\Component\Panther\Exception\InvalidArgumentException Symfony\Component\Panther\Exception\LogicException Symfony\Component\Panther\Exception\ExceptionInterface Symfony\Component\Panther\Exception\RuntimeException Symfony\Component\Panther\Client Symfony\Component\Panther\PantherTestCaseTrait Symfony\Component\Panther\WebTestAssertionsTrait Symfony\Component\Panther\DomCrawler\Field\TextareaFormField Symfony\Component\Panther\DomCrawler\Field\FileFormField Symfony\Component\Panther\DomCrawler\Field\InputFormField Symfony\Component\Panther\DomCrawler\Field\ChoiceFormField Symfony\Component\Panther\DomCrawler\Field\FormFieldTrait Symfony\Component\Panther\DomCrawler\Form Symfony\Component\Panther\DomCrawler\Link Symfony\Component\Panther\DomCrawler\Image Symfony\Component\Panther\DomCrawler\Crawler Close Previous Versions Code Integration Example Make sure to include the correct namespace and class paths for proper usage.
<?php
// Example from PHPlibraries.com
require_once 'libs/symfony/panther/2.2.0/loader.php';
require_once 'libs/symfony/browser-kit/7.3.0/loader.php';
require_once 'libs/symfony/css-selector/7.3.0/loader.php';
require_once 'libs/symfony/dom-crawler/7.3.0/loader.php';
require_once 'libs/symfony/process/7.3.0/loader.php';
use Symfony\Component\Panther\PantherTestCase;
use Symfony\Component\Panther\TestCase\WebTestCase;
$obj = new PantherTestCase();
echo '✅ Test OK: ' . get_class($obj);
?>
Report a broken download or code We aim to make using PHP packages easier without Composer. If something doesn't work, let us know — we'll fix it promptly.
Community Discussion Ask questions, share tips, or report issues below.