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%MITPHPPHP &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 today

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

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 35% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity16

Limited adoption so far

Community7

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

741d 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

[vdb/php-spider

A configurable and extensible PHP web spider

1.4k179.5k7](/packages/vdb-php-spider)[blackfire/player

A powerful web crawler and web scraper with Blackfire support

49516.9k](/packages/blackfire-player)[crwlr/crawler

Web crawling and scraping library.

36913.9k2](/packages/crwlr-crawler)

PHPackages © 2026

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