Download the PHP package playwright-php/playwright-symfony without Composer

On this page you can find all versions of the php package playwright-php/playwright-symfony. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.

FAQ

After the download, you have to make one include require_once('vendor/autoload.php');. After that you have to import the classes with use statements.

Example:
If you use only one package a project is not needed. But if you use more then one package, without a project it is not possible to import the classes with use statements.

In general, it is recommended to use always a project to download your libraries. In an application normally there is more than one library needed.
Some PHP packages are not free to download and because of that hosted in private repositories. In this case some credentials are needed to access such packages. Please use the auth.json textarea to insert credentials, if a package is coming from a private repository. You can look here for more information.

  • Some hosting areas are not accessible by a terminal or SSH. Then it is not possible to use Composer.
  • To use Composer is sometimes complicated. Especially for beginners.
  • Composer needs much resources. Sometimes they are not available on a simple webspace.
  • If you are using private repositories you don't need to share your credentials. You can set up everything on our site and then you provide a simple download link to your team member.
  • Simplify your Composer build process. Use our own command line tool to download the vendor folder as binary. This makes your build process faster and you don't need to expose your credentials for private repositories.
Please rate this library. Is it a good library?

Informations about the package playwright-symfony

Playwright PHP   ![PHP Version](https://img.shields.io/badge/PHP-8.2+-05971B?labelColor=09161E&color=1D8D23&logoColor=FFFFFF)   ![CI](https://img.shields.io/github/actions/workflow/status/playwright-php/playwright-symfony/CI.yml?branch=main&label=Tests&color=1D8D23&labelColor=09161E&logoColor=FFFFFF)   [![Release](https://img.shields.io/github/v/release/playwright-php/playwright-symfony?label=Stable&labelColor=09161E&color=1D8D23&logoColor=FFFFFF)](https://packagist.org/packages/playwright-php/playwright-symfony)   ![License](https://img.shields.io/github/license/playwright-php/playwright-symfony?label=License&labelColor=09161E&color=1D8D23&logoColor=FFFFFF)

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:

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 kernel, but not cookies or browser storage.

Authentication

Use loginUser() when login itself is not under test:

The package also provides cookie helpers and access to the last intercepted request and response.

Limits

Documentation

Contributing

Contributions are welcome. Before submitting a pull request, run:

Changes to public behavior should include tests and documentation.

License

Playwright PHP for Symfony is released under the MIT License.


All versions of playwright-symfony with dependencies

PHP Build Version
Package Version
Requires php Version >=8.2
playwright-php/playwright Version ^1.5
symfony/browser-kit Version ^6.4 || ^7.0 || ^8.0
symfony/framework-bundle Version ^6.4 || ^7.0 || ^8.0
symfony/http-foundation Version ^6.4 || ^7.0 || ^8.0
symfony/http-kernel Version ^6.4 || ^7.0 || ^8.0
Composer command for our command line client (download client) This client runs in each environment. You don't need a specific PHP version etc. The first 20 API calls are free. Standard composer command

The package playwright-php/playwright-symfony contains the following files

Loading the files please wait ...