PHP Package: 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.

Current Version: 2.2.0
Last Updated: 2025-01-30
PHP Requirement: >=8.0
Dependencies:
symfony/browser-kit
symfony/css-selector
symfony/dom-crawler
symfony/process
⚠️ To ensure full functionality, the above dependencies might be required.

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.

📦 Show all available classes🔗 View on GitHub

Download Latest Version: 2.2.0

Download Download v2.2.0

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);
?>

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.