PHPackages                             giauphan/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. giauphan/goutte

ActiveApplication

giauphan/goutte
===============

A simple PHP Web Scraper

v1.2(2y ago)1366↓100%2MITPHPPHP &gt;=8

Since Mar 13Pushed 2y ago1 watchersCompare

[ Source](https://github.com/giauphan/goutte)[ Packagist](https://packagist.org/packages/giauphan/goutte)[ Docs](https://github.com/Giauphan/Goutte)[ RSS](/packages/giauphan-goutte/feed)WikiDiscussions main Synced 1mo ago

READMEChangelog (3)Dependencies (7)Versions (4)Used By (2)

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

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

Goutte 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.

**WARNING**: This library is deprecated. As of v4, Goutte became a simple proxy to the [HttpBrowser class](https://symfony.com/doc/current/components/browser_kit.html#making-external-http-requests)from the [Symfony BrowserKit](https://symfony.com/browser-kit) component. To migrate, replace `Goutte\Client` by `Symfony\Component\BrowserKit\HttpBrowser` in your code.

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

[](#requirements)

Goutte depends on PHP 7.1+.

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

[](#installation)

Add `giauphan/goutte` as a require dependency in your `composer.json` file:

```
composer require giauphan/goutte
```

Usage
-----

[](#usage)

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

```
use Goutte\Client;

$client = new Client();
```

Make requests with the `request()` method:

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

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

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

```
use Goutte\Client;
use Symfony\Component\HttpClient\HttpClient;

$client = new Client(HttpClient::create(['timeout' => 60]));
```

Click on links:

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

Extract data:

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

Submit forms:

```
$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, ['login' => 'giauphan', 'password' => 'xxxxxx']);
$crawler->filter('.flash-error')->each(function ($node) {
    print $node->text()."\n";
});
```

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

[](#more-information)

Read the documentation of the [BrowserKit](https://symfony.com/components/BrowserKit), [DomCrawler](https://symfony.com/doc/current/components/dom_crawler.html), and [HttpClient](https://symfony.com/doc/current/components/http_client.html)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)

Goutte is a thin wrapper around the following Symfony Components: [BrowserKit](https://symfony.com/components/BrowserKit), [CssSelector](https://symfony.com/doc/current/components/css_selector.html), [DomCrawler](https://symfony.com/doc/current/components/dom_crawler.html), and [HttpClient](https://symfony.com/doc/current/components/http_client.html).

License
-------

[](#license)

Goutte is licensed under the MIT license.

###  Health Score

24

—

LowBetter than 32% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity16

Limited adoption so far

Community11

Small or concentrated contributor base

Maturity43

Maturing project, gaining track record

 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.

###  Release Activity

Cadence

Every ~0 days

Total

3

Last Release

786d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/a6a4702b616d521caa7abc57fd33ea0a4c7d496da3263a473ac5b2c46a83321c?d=identicon)[giauphan](/maintainers/giauphan)

---

Top Contributors

[![giauphan](https://avatars.githubusercontent.com/u/122676967?v=4)](https://github.com/giauphan "giauphan (11 commits)")

---

Tags

scraper

### Embed Badge

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

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

###  Alternatives

[sulu/sulu

Core framework that implements the functionality of the Sulu content management system

1.3k1.3M152](/packages/sulu-sulu)[craftcms/cms

Craft CMS

3.6k3.6M2.6k](/packages/craftcms-cms)[shopware/platform

The Shopware e-commerce core

3.3k1.5M3](/packages/shopware-platform)[contao/core-bundle

Contao Open Source CMS

1231.6M2.3k](/packages/contao-core-bundle)[prestashop/prestashop

PrestaShop is an Open Source e-commerce platform, committed to providing the best shopping cart experience for both merchants and customers.

9.0k15.4k](/packages/prestashop-prestashop)[shopware/core

Shopware platform is the core for all Shopware ecommerce products.

595.2M386](/packages/shopware-core)

PHPackages © 2026

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