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

Abandoned → [symfony/browser-kit](/?search=symfony%2Fbrowser-kit)ArchivedApplication[Utility &amp; Helpers](/categories/utility)

fabpot/goutte
=============

A simple PHP Web Scraper

v4.0.3(3y ago)9.2k54.9M—2.5%989[138 issues](https://github.com/FriendsOfPHP/Goutte/issues)20MITPHPPHP &gt;=7.1.3

Since Dec 2Pushed 3y ago343 watchersCompare

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

READMEChangelog (7)Dependencies (7)Versions (33)Used By (20)

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 `fabpot/goutte` as a require dependency in your `composer.json` file:

```
composer require fabpot/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' => 'fabpot', '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

60

—

FairBetter than 99% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity83

Widely adopted with strong download metrics

Community60

Healthy contributor diversity

Maturity69

Established project with proven stability

 Bus Factor1

Top contributor holds 68.1% 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 ~134 days

Recently: every ~303 days

Total

29

Last Release

1144d ago

Major Versions

v1.0.6 → v2.0.02014-05-08

v1.0.7 → v2.0.32014-11-28

v2.0.4 → v3.0.02015-06-21

v3.3.0 → v4.0.02019-12-06

v3.3.1 → v4.0.22021-12-17

PHP version history (5 changes)v0.1.0PHP &gt;=5.3.0

v2.0.0PHP &gt;=5.4.0

v3.0.0PHP &gt;=5.5.0

v3.3.0PHP ^7.1.3

v4.0.1PHP &gt;=7.1.3

### Community

Maintainers

![](https://avatars.githubusercontent.com/u/47313?v=4)[Fabien Potencier](/maintainers/fabpot)[@fabpot](https://github.com/fabpot)

---

Top Contributors

[![fabpot](https://avatars.githubusercontent.com/u/47313?v=4)](https://github.com/fabpot "fabpot (188 commits)")[![everzet](https://avatars.githubusercontent.com/u/30813?v=4)](https://github.com/everzet "everzet (23 commits)")[![larowlan](https://avatars.githubusercontent.com/u/555254?v=4)](https://github.com/larowlan "larowlan (6 commits)")[![hnw](https://avatars.githubusercontent.com/u/27699?v=4)](https://github.com/hnw "hnw (5 commits)")[![mtdowling](https://avatars.githubusercontent.com/u/190930?v=4)](https://github.com/mtdowling "mtdowling (5 commits)")[![brunochalopin](https://avatars.githubusercontent.com/u/29792242?v=4)](https://github.com/brunochalopin "brunochalopin (4 commits)")[![jakoch](https://avatars.githubusercontent.com/u/85608?v=4)](https://github.com/jakoch "jakoch (3 commits)")[![stof](https://avatars.githubusercontent.com/u/439401?v=4)](https://github.com/stof "stof (3 commits)")[![hason](https://avatars.githubusercontent.com/u/288535?v=4)](https://github.com/hason "hason (3 commits)")[![thewilkybarkid](https://avatars.githubusercontent.com/u/1784740?v=4)](https://github.com/thewilkybarkid "thewilkybarkid (3 commits)")[![christianchristensen](https://avatars.githubusercontent.com/u/65640?v=4)](https://github.com/christianchristensen "christianchristensen (3 commits)")[![tiger-seo](https://avatars.githubusercontent.com/u/398720?v=4)](https://github.com/tiger-seo "tiger-seo (3 commits)")[![zeopix](https://avatars.githubusercontent.com/u/688434?v=4)](https://github.com/zeopix "zeopix (2 commits)")[![csarrazi](https://avatars.githubusercontent.com/u/465798?v=4)](https://github.com/csarrazi "csarrazi (2 commits)")[![davedevelopment](https://avatars.githubusercontent.com/u/61351?v=4)](https://github.com/davedevelopment "davedevelopment (2 commits)")[![dunglas](https://avatars.githubusercontent.com/u/57224?v=4)](https://github.com/dunglas "dunglas (2 commits)")[![igorw](https://avatars.githubusercontent.com/u/88061?v=4)](https://github.com/igorw "igorw (2 commits)")[![keradus](https://avatars.githubusercontent.com/u/2716794?v=4)](https://github.com/keradus "keradus (2 commits)")[![robo47](https://avatars.githubusercontent.com/u/110477?v=4)](https://github.com/robo47 "robo47 (2 commits)")[![zachbadgett](https://avatars.githubusercontent.com/u/916274?v=4)](https://github.com/zachbadgett "zachbadgett (2 commits)")

---

Tags

scraper

### Embed Badge

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

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

###  Alternatives

[sulu/sulu

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

1.3k1.3M152](/packages/sulu-sulu)[vdb/php-spider

A configurable and extensible PHP web spider

1.4k181.0k7](/packages/vdb-php-spider)[contao/core-bundle

Contao Open Source CMS

1231.6M2.4k](/packages/contao-core-bundle)[crwlr/crawler

Web crawling and scraping library.

37214.8k2](/packages/crwlr-crawler)[netgen/layouts-core

Netgen Layouts enables you to build and manage complex web pages in a simpler way and with less coding. This is the core of Netgen Layouts, its heart and soul.

3689.4k10](/packages/netgen-layouts-core)[chameleon-system/chameleon-base

The Chameleon System core.

1026.5k3](/packages/chameleon-system-chameleon-base)

PHPackages © 2026

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