Home
Docs
GitHub
Pricing
Blog
Log In

Run Sandworm Audit for your App

Get started
Hold on, we're currently generating a fresh version of this report
Generated on May 8, 2024 via composer

symfony/browser-kit v2.8.48

Symfony BrowserKit Component
Package summary
Share
0
issues
1
license
3
MIT
Package created
16 Oct 2011
Version published
26 Nov 2018
Maintainers
1
Total deps
3
Direct deps
1
License
MIT

Issues

0
This package has no issues

Licenses

MIT License

Permissive
OSI Approved
This is a human-readable summary of (and not a substitute for) the license. Disclaimer.
Can
commercial-use
modify
distribute
sublicense
private-use
Cannot
hold-liable
Must
include-copyright
include-license
3 Packages, Including:
symfony/browser-kit@v2.8.48
symfony/dom-crawler@v3.0.9
symfony/polyfill-mbstring@v1.29.0
Disclaimer

This deed highlights only some of the key features and terms of the actual license. It is not a license and has no legal value. You should carefully review all of the terms and conditions of the actual license before using the licensed material.

Sandworm is not a law firm and does not provide legal services. Distributing, displaying, or linking to this deed or the license that it summarizes does not create a lawyer-client or any other relationship.

Direct Dependencies

1
All Dependencies CSV
β“˜ This is a list of symfony/browser-kit 's direct dependencies. Data on all dependencies, including transitive ones, is available via CSV download.
NameVersionSizeLicenseTypeVulnerabilities
symfony/dom-crawlerv3.0.9-MIT
prod

Visualizations

Frequently Asked Questions

What does symfony/browser-kit do?

The Symfony BrowserKit is a powerful component that simulates web browser behavior. This allows developers to make requests, click on links, and submit forms programmatically. It can be highly useful for testing or scraping websites, as it provides a simple and fast way to interact with web services directly from your PHP code.

How do you use symfony/browser-kit?

To use the Symfony BrowserKit, you must first install the package using Composer. This can be done by running the command composer require symfony/browser-kit. After it's installed, you can use the Browser class to create a virtual browser instance, and then use that instance to make HTTP requests:

use Symfony\Component\BrowserKit\HttpBrowser;
use Symfony\Component\HttpClient\HttpClient;

$browser = new HttpBrowser(HttpClient::create());

// Visit a URL
$crawler = $browser->request('GET', 'https://www.example.com/');

// Click on a link
$link = $crawler->selectLink('Go to page')->link();
$crawler = $browser->click($link);

// Submit a form
$form = $crawler->selectButton('submit')->form();
$crawler = $browser->submit($form, ['field' => 'value']);

This basic example demonstrates how to visit a webpage, click a link, and submit a form with specific data.

Where are the symfony/browser-kit docs?

The full documentation for Symfony BrowserKit is available at Symfony's official website. This includes detailed explanations and additional usage examples for utilizing the full power of the BrowserKit component. It also provides information about how to contribute to the project, and how to report issues or submit pull requests.