RepositoryPHP
SY

symfony/panther

A browser testing and web crawling library for PHP and Symfony

3.1ksao
237fork
201issue
5lượt xem

Thành tựu nổi bật

Những danh hiệu mới nhất của dự án

1
TINIX TRENDING·Chủ đề: chromedriver

#1 Repository của tuần

1
TINIX TRENDING·Chủ đề: selenium-webdriver

#1 Repository của tuần

2
TINIX TRENDING·Chủ đề: e2e-testing

#2 Repository của tuần

🐆 Panther — Test trình duyệt thực và crawl web cho PHP/Symfony

"Sử dụng trình duyệt thật, không phải browser ảo."

Panther là thư viện độc lập của PHP để chạy end-to-end tests và scrape website bằng trình duyệt thực. Dự án do Kévin Dunglas tạo ra, được tài trợ bởi Les-Tilleuls.coop, và xây dựng trên nền PHP WebDriver.

✨ Điểm nổi bật

  • W3C WebDriver protocol: Điều khiển native Chrome và Firefox thay vì browser headless giả lập
  • E2E testing: Chạy end-to-end tests với trình duyệt thật, mô phỏng hành vi người dùng thực tế
  • Web scraping: Crawl website với API trực quan, tận dụng cơ chế WebDriver để xử lý JavaScript-heavy site
  • Built on PHP WebDriver: Nền tảng từ thư viện php-webdriver và nhiều FOSS libraries khác
  • Inspired by Nightwatch.js: Mô hình testing dựa trên WebDriver tương tự công cụ JavaScript phổ biến
  • Standalone library: Dùng độc lập, không bắt buộc cài đặt full Symfony framework
  • Symfony integration: Tích hợp liền mạch với hệ sinh thái Symfony, tài liệu chính thức tại symfony.com

💡 Vì sao đáng chú ý

Khác với các công cụ test PHP truyền thống dùng mock hoặc headless browser, Panther điều khiển trình duyệt thật qua WebDriver protocol, đảm bảo kết quả test phản ánh đúng hành vi thực tế trên trình duyệt người dùng. Điều này đặc biệt quan trọng khi ứng dụng phụ thuộc nhiều vào JavaScript hoặc các tương tác phức tạp trên DOM.

Panther phù hợp cho hai trường hợp chính: tự động hóa kiểm thử end-to-end cho ứng dụng web PHP/Symfony, và crawl dữ liệu từ các website có render JavaScript. Việc xây dựng trên nền php-webdriver giúp dự án kế thừa khả năng tương thích đa trình duyệt mà vẫn giữ API đơn giản, dễ tiếp cận cho lập trình viên PHP.


#PHP #Symfony #E2ETesting #WebScraping #WebDriver #TiniX

Dự án tương tự

Khám phá các dự án và mô hình AI khác có sự tương đồng.

RepositoryPython
ultrafunkamsterdam/undetected-chromedriver

Custom Selenium Chromedriver | Zero-Config | Passes ALL bot mitigation systems (like Distil / Imperva/ Datadadome / CloudFlare IUAM)

12.9k
Jul 5, 2025
RepositoryJava
bonigarcia/webdrivermanager

Automated driver management and other helper features for Selenium WebDriver in Java

2.7k
Nov 23, 2026
RepositoryPHP
php-webdriver/php-webdriver

PHP client for Selenium/WebDriver protocol. Previously facebook/php-webdriver

5.2k
Nov 21, 2026
RepositoryJavaScript
nightwatchjs/nightwatch

Integrated end-to-end testing framework written in Node.js and using W3C Webdriver API. Developed at @browserstack

12.0k
May 25, 2026
RepositoryRust
stevepryde/thirtyfour

Selenium WebDriver client for Rust, for automated testing of websites

1.4k
Nov 26, 2026
RepositoryPython
yashaka/selene

User-oriented Web UI browser tests in Python

734
Nov 8, 2026
RepositoryTypeScript
firecrawl/firecrawl

Firecrawl is the knowledge infrastructure to make your agents smarter. It connects your agents to the web, and to Alexandria, our library of everything else.

215.1k
Dec 2, 2026
RepositoryPython
scrapy/scrapy

Scrapy, a fast high-level web crawling & scraping framework for Python.

65.7k
Nov 27, 2026
RepositoryPHP
symfony/symfony

The Symfony PHP framework

31.5k
Nov 29, 2026