PHPackages                             mrkatz/laravel-goutte - PHPackages - PHPackages  [Skip to content](#main-content)[PHPackages](/)[Directory](/)[Categories](/categories)[Trending](/trending)[Leaderboard](/leaderboard)[Changelog](/changelog)[Analyze](/analyze)[Collections](/collections)[Log in](/login)[Sign up](/register)

1. [Directory](/)
2. /
3. [Utility &amp; Helpers](/categories/utility)
4. /
5. mrkatz/laravel-goutte

ActiveLibrary[Utility &amp; Helpers](/categories/utility)

mrkatz/laravel-goutte
=====================

Laravel-Goutte is a laravel service container wrapper for FriendsOfPHP Goutte Package which is a screen scraping and web crawling library for PHP.

082PHP

Since Nov 4Pushed 6y ago1 watchersCompare

[ Source](https://github.com/mrkatz/laravel-goutte)[ Packagist](https://packagist.org/packages/mrkatz/laravel-goutte)[ RSS](/packages/mrkatz-laravel-goutte/feed)WikiDiscussions master Synced yesterday

READMEChangelogDependenciesVersions (1)Used By (0)

Goutte, a simple PHP Web Scraper
================================

[](#goutte-a-simple-php-web-scraper)

Laravel-Goutte is a laravel service container wrapper for FriendsOfPHP Goutte Package which is a screen scraping and web crawling library for PHP.

Goutte provides a nice API to crawl websites and extract data from the HTML/XML responses.

Requirements
------------

[](#requirements)

Goutte depends on PHP 7.1+ and Guzzle 6+.

Installation
------------

[](#installation)

Add `mrkatz/laravel-goutte` as a require dependency in your `composer.json` file:

.. code-block:: bash

```
composer require mrkatz/laravel-goutte

```

Usage
-----

[](#usage)

Create a Goutte Client instance (which extends `Symfony\Component\BrowserKit\Client`):

.. code-block:: php

```
use Goutte\Client;

$client = new Client();

```

Make requests with the `request()` method:

.. code-block:: php

```
// Go to the symfony.com website
$crawler = Goutte::request('GET', 'https://www.symfony.com/blog/');

```

The method returns a `Crawler` object (`Symfony\Component\DomCrawler\Crawler`).

To use your own Guzzle settings, you may create and pass a new Guzzle 6 instance to Goutte. For example, to add a 60 second request timeout:

.. code-block:: php

```
use Goutte\Client;
use GuzzleHttp\Client as GuzzleClient;

$goutteClient = new Client();
$guzzleClient = new GuzzleClient(array(
    'timeout' => 60,
));
$goutteClient->setClient($guzzleClient);

```

Click on links:

.. code-block:: php

```
// Click on the "Security Advisories" link
$link = $crawler->selectLink('Security Advisories')->link();
$crawler = $client->click($link);

```

Extract data:

.. code-block:: php

```
// Get the latest post in this category and display the titles
$crawler->filter('h2 > a')->each(function ($node) {
    print $node->text()."\n";
});

```

Submit forms:

.. code-block:: php

```
$crawler = $client->request('GET', 'https://github.com/');
$crawler = $client->click($crawler->selectLink('Sign in')->link());
$form = $crawler->selectButton('Sign in')->form();
$crawler = $client->submit($form, array('login' => 'fabpot', 'password' => 'xxxxxx'));
$crawler->filter('.flash-error')->each(function ($node) {
    print $node->text()."\n";
});

```

More Information
----------------

[](#more-information)

Read the documentation of the `BrowserKit`\_ and `DomCrawler`\_ Symfony Components for more information about what you can do with Goutte.

Pronunciation
-------------

[](#pronunciation)

Goutte is pronounced `goot` i.e. it rhymes with `boot` and not `out`.

Technical Information
---------------------

[](#technical-information)

Laravel-Goutte is a thin wrapper around the following fine PHP libraries:

- FriendsOfPHP/Goutte
- Symfony Components: `BrowserKit`*, `CssSelector`* and `DomCrawler`\_;
- `Guzzle`\_ HTTP Component.

License
-------

[](#license)

Goutte is licensed under the MIT license.

.. \_`Composer`: .. \_`Guzzle`: .. \_`BrowserKit`: .. \_`DomCrawler`: [https://symfony.com/doc/current/components/dom\_crawler.html](https://symfony.com/doc/current/components/dom_crawler.html).. \_`CssSelector`: [https://symfony.com/doc/current/components/css\_selector.html](https://symfony.com/doc/current/components/css_selector.html)

###  Health Score

19

—

LowBetter than 10% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity9

Limited adoption so far

Community7

Small or concentrated contributor base

Maturity35

Early-stage or recently created project

 Bus Factor1

Top contributor holds 100% of commits — single point of failure

How is this calculated?**Maintenance (25%)** — Last commit recency, latest release date, and issue-to-star ratio. Uses a 2-year decay window.

**Popularity (30%)** — Total and monthly downloads, GitHub stars, and forks. Logarithmic scaling prevents top-heavy scores.

**Community (15%)** — Contributors, dependents, forks, watchers, and maintainers. Measures real ecosystem engagement.

**Maturity (30%)** — Project age, version count, PHP version support, and release stability.

### Community

Maintainers

![](https://www.gravatar.com/avatar/1a3d3c1e3e518d9d21d6cc1bf1bb51e00e176d682cf4ed1c19c362bf6190173c?d=identicon)[mrkatz](/maintainers/mrkatz)

---

Top Contributors

[![mrkatz](https://avatars.githubusercontent.com/u/12110409?v=4)](https://github.com/mrkatz "mrkatz (1 commits)")

### Embed Badge

![Health badge](/badges/mrkatz-laravel-goutte/health.svg)

```
[![Health](https://phpackages.com/badges/mrkatz-laravel-goutte/health.svg)](https://phpackages.com/packages/mrkatz-laravel-goutte)
```

PHPackages © 2026

[Directory](/)[Categories](/categories)[Trending](/trending)[Changelog](/changelog)[Analyze](/analyze)
