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

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

socloz/goutte
=============

A simple PHP Web Scraper

v1.0.1(13y ago)020.2kMITPHPPHP &gt;=5.3.0

Since Dec 2Pushed 13y ago1 watchersCompare

[ Source](https://github.com/SoCloz/Goutte)[ Packagist](https://packagist.org/packages/socloz/goutte)[ Docs](https://github.com/fabpot/Goutte)[ RSS](/packages/socloz-goutte/feed)WikiDiscussions socloz-master Synced today

READMEChangelogDependencies (6)Versions (5)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.

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

[](#requirements)

Goutte works with PHP 5.3.3 or later.

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

[](#installation)

Installing Goutte is as easy as it can get. Download the [`Goutte.phar`](https://raw.github.com/fabpot/Goutte/master/goutte.phar)file and you're done!

Usage
-----

[](#usage)

Require the Goutte phar file to use Goutte in a script:

```
require_once '/path/to/goutte.phar';

```

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

```
use Goutte\Client;

$client = new Client();

```

Make requests with the `request()` method:

```
$crawler = $client->request('GET', 'http://www.symfony-project.org/');

```

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

Click on links:

```
$link = $crawler->selectLink('Plugins')->link();
$crawler = $client->click($link);

```

Submit forms:

```
$form = $crawler->selectButton('sign in')->form();
$crawler = $client->submit($form, array('signin[username]' => 'fabien', 'signin[password]' => 'xxxxxx'));

```

Extract data:

```
$nodes = $crawler->filter('.error_list');
if ($nodes->count())
{
  die(sprintf("Authentication error: %s\n", $nodes->text()));
}

printf("Nb tasks: %d\n", $crawler->filter('#nb_tasks')->text());

```

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

[](#more-information)

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

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

[](#technical-information)

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

- Symfony Components: BrowserKit, ClassLoader, CssSelector, DomCrawler, Finder, and Process
- [Guzzle](http://www.guzzlephp.org)

License
-------

[](#license)

Goutte is licensed under the MIT license.

###  Health Score

32

—

LowBetter than 69% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity20

Limited adoption so far

Community20

Small or concentrated contributor base

Maturity61

Established project with proven stability

 Bus Factor1

Top contributor holds 54.8% 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 ~48 days

Total

3

Last Release

4862d ago

Major Versions

v0.1.0 → v1.0.02013-03-08

### Community

Maintainers

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

---

Top Contributors

[![fabpot](https://avatars.githubusercontent.com/u/47313?v=4)](https://github.com/fabpot "fabpot (91 commits)")[![everzet](https://avatars.githubusercontent.com/u/30813?v=4)](https://github.com/everzet "everzet (23 commits)")[![mtdowling](https://avatars.githubusercontent.com/u/190930?v=4)](https://github.com/mtdowling "mtdowling (5 commits)")[![hnw](https://avatars.githubusercontent.com/u/27699?v=4)](https://github.com/hnw "hnw (5 commits)")[![brunochalopin](https://avatars.githubusercontent.com/u/29792242?v=4)](https://github.com/brunochalopin "brunochalopin (4 commits)")[![NoiseByNorthwest](https://avatars.githubusercontent.com/u/1461284?v=4)](https://github.com/NoiseByNorthwest "NoiseByNorthwest (3 commits)")[![christianchristensen](https://avatars.githubusercontent.com/u/65640?v=4)](https://github.com/christianchristensen "christianchristensen (3 commits)")[![hason](https://avatars.githubusercontent.com/u/288535?v=4)](https://github.com/hason "hason (3 commits)")[![davedevelopment](https://avatars.githubusercontent.com/u/61351?v=4)](https://github.com/davedevelopment "davedevelopment (2 commits)")[![BRMatt](https://avatars.githubusercontent.com/u/20394?v=4)](https://github.com/BRMatt "BRMatt (2 commits)")[![robo47](https://avatars.githubusercontent.com/u/110477?v=4)](https://github.com/robo47 "robo47 (2 commits)")[![tiger-seo](https://avatars.githubusercontent.com/u/398720?v=4)](https://github.com/tiger-seo "tiger-seo (2 commits)")[![igorw](https://avatars.githubusercontent.com/u/88061?v=4)](https://github.com/igorw "igorw (2 commits)")[![zachbadgett](https://avatars.githubusercontent.com/u/916274?v=4)](https://github.com/zachbadgett "zachbadgett (2 commits)")[![zeopix](https://avatars.githubusercontent.com/u/688434?v=4)](https://github.com/zeopix "zeopix (2 commits)")[![jakoch](https://avatars.githubusercontent.com/u/85608?v=4)](https://github.com/jakoch "jakoch (1 commits)")[![clemherreman](https://avatars.githubusercontent.com/u/272812?v=4)](https://github.com/clemherreman "clemherreman (1 commits)")[![fabian](https://avatars.githubusercontent.com/u/13346?v=4)](https://github.com/fabian "fabian (1 commits)")[![ganchiku](https://avatars.githubusercontent.com/u/149973?v=4)](https://github.com/ganchiku "ganchiku (1 commits)")[![gimler](https://avatars.githubusercontent.com/u/200904?v=4)](https://github.com/gimler "gimler (1 commits)")

---

Tags

scraper

### Embed Badge

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

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

###  Alternatives

[sulu/sulu

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

1.3k1.4M196](/packages/sulu-sulu)[craftcms/cms

Craft CMS

3.6k3.6M2.9k](/packages/craftcms-cms)[blackfire/player

A powerful web crawler and web scraper with Blackfire support

49517.1k](/packages/blackfire-player)[civicrm/civicrm-core

Open source constituent relationship management for non-profits, NGOs and advocacy organizations.

751284.3k37](/packages/civicrm-civicrm-core)[chameleon-system/chameleon-base

The Chameleon System core.

1027.9k4](/packages/chameleon-system-chameleon-base)[drupal/core-dev

require-dev dependencies from drupal/drupal; use in addition to drupal/core-recommended to run tests from drupal/core.

2022.0M322](/packages/drupal-core-dev)

PHPackages © 2026

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