Home
Docs
GitHub
Pricing
Blog
Log In

Run Sandworm Audit for your App

Get started
This package has been abandoned. Use behat/mink-browserkit-driver instead.
Generated on May 19, 2024 via composer

behat/mink-goutte-driver v2.0.0

Goutte driver for Mink framework
Package summary
Share
2
issues
2
high severity
meta
2
1
license
18
MIT
Package created
29 May 2012
Version published
29 Dec 2021
Maintainers
2
Total deps
18
Direct deps
1
License
MIT

Issues

2

2 high severity issues

high
via: behat/mink-goutte-driver@v2.0.0
via: fabpot/goutte@v4.0.3
Collapse
Expand

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
18 Packages, Including:
behat/mink-goutte-driver@v2.0.0
fabpot/goutte@v4.0.3
masterminds/html5@2.9.0
psr/container@2.0.2
psr/log@3.0.0
symfony/browser-kit@v6.4.7
symfony/css-selector@v6.4.7
symfony/deprecation-contracts@v3.5.0
symfony/dom-crawler@v6.4.7
symfony/http-client@v6.4.7
symfony/http-client-contracts@v3.5.0
symfony/mime@v6.4.7
symfony/polyfill-ctype@v1.29.0
symfony/polyfill-intl-idn@v1.29.0
symfony/polyfill-intl-normalizer@v1.29.0
symfony/polyfill-mbstring@v1.29.0
symfony/polyfill-php72@v1.29.0
symfony/service-contracts@v3.5.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 behat/mink-goutte-driver 's direct dependencies. Data on all dependencies, including transitive ones, is available via CSV download.
NameVersionSizeLicenseTypeVulnerabilities
fabpot/gouttev4.0.36.05 kBMIT
prod
1

Visualizations

Frequently Asked Questions

What does behat/mink-goutte-driver do?

behat/mink-goutte-driver is a powerful web scraper and testing tool used in the Mink framework. This composer package provides a Goutte driver for Mink, making it possible for developers to conduct functional tests and scrape web content while taking advantage of Goutte's fast, programmatic browser capabilities. This driver mediates between the Mink API and the Goutte client, enabling the user to navigate, extract content, and interact with websites programmatically in PHP. It’s a great tool for SEO experts for analyzing web data and improving your site's visibility.

How do you use behat/mink-goutte-driver?

Using the behat/mink-goutte-driver is simple and straightforward especially for developers familiar with composer and PHP. Start by installing the package. You need to include the Mink and Mink Goutte Driver packages in your project's composer.json file as shown:

{
    "require": {
        "behat/mink":               "^1.9",
        "behat/mink-goutte-driver": "^2.0"
    }
}

Then, run php composer.phar install to install the dependencies.

To use the library in your PHP code, instantiate a new Mink object with a GoutteDriver session like so:

<?php

require "vendor/autoload.php";

use Behat\Mink\Mink,
    Behat\Mink\Session,
    Behat\Mink\Driver\GoutteDriver,
    Goutte\Client as GoutteClient;

$mink = new Mink(array(
    'goutte' => new Session(new GoutteDriver(new GoutteClient())),
));

$session = $mink->getSession('goutte');
$session->visit("http://php.net/");
$session->getPage()->clickLink('Downloads');
echo $session->getCurrentUrl() . PHP_EOL;

In the above example, we create a Mink session equipped with the GoutteDriver and visit a URL. We then simulate a click on the 'Downloads' link and print out the current URL.

Where are the behat/mink-goutte-driver docs?

The comprehensive documentation for behat/mink-goutte-driver is hosted on the Mink’s GitHub repository. If you need more information on how to make the most out of this Goutte driver or details about its methods and properties, head over to Mink’s GitHub page. The repository showcases how to install, use, and contribute to the development of this library. The page includes a list of maintainers and major contributors driving the tool's growth.