{"repo":"playwright-php/playwright-symfony","free":true,"listed":false,"github":"https://github.com/playwright-php/playwright-symfony","clone":"git clone https://github.com/playwright-php/playwright-symfony.git","description":"E2E testing for Symfony with Playwright PHP, real browsers, and in-process request handling.","language":"PHP","stars":12,"topics":["e2e","playwright","playwright-php","symfony","symfony-browserkit","symfony-bundle","symfony-test","testing","tests"],"license":null,"category":"scrapers-browser-automation","readme_excerpt":"&nbsp; &nbsp; &nbsp; &nbsp; Playwright PHP for Symfony Run real-browser Symfony tests while routing application requests through the kernel in the same PHP process. [!IMPORTANT] This package is in active development. Its public API may change before 1.0. Installation Requirements: - PHP 8.2+ - Symfony 6.4, 7.x, or 8.x - Node.js 20+ Register the bundle for the test environment: The bundle works without additional configuration. To change the base URL or intercepted hosts: Quick Start Extend PlaywrightTestCase , visit an application route, and use the regular Playwright page API: Run the test with PHPUnit: Set PLAYWRIGHT HEADLESS=false to see the browser, or PLAYWRIGHT BROWSER=firefox to use another engine. How It Works For requests to an intercepted host, the package: 1. Intercepts the browser request through Playwright. 2. Converts it to a Symfony request. 3. Handles it with the application kernel. 4. Returns the Symfony response to the browser. This keeps JavaScript, CSS, navigation, cookies, and browser storage in a real browser while preserving access to the Symfony test container, request, response, and profiler. The kernel and browser start lazily when a browser helper or client is first used. Static files and AssetMapper output can be served directly by the asset bridge without passing through the kernel. Multiple browser clients Use the primary client alongside fresh clients when a test needs isolated browser contexts: The clients share the browser process and Symfony ","default_branch":null,"files":null,"tree":[],"storefront":"/r/playwright-php","claimed":false,"request_supported":{"post":"https://gitbuyer.com/r/playwright-php/playwright-symfony/request-supported","requests":0},"note":"indexed from public GitHub; nothing is for sale on this page. Clone it from GitHub. Paid listings live at /search."}