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

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

mfsousa/goutte
==============

A simple PHP Web Scraper

v1.0.5(12y ago)016MITPHPPHP &gt;=5.3.0

Since Dec 2Pushed 12y ago1 watchersCompare

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

READMEChangelogDependencies (8)Versions (9)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](http://get.sensiolabs.org/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:

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

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

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.post > a')->each(function ($node) {
    print $node->text()."\n";
});
```

Submit forms:

```
$crawler = $client->request('GET', 'http://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.

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://docs.guzzlephp.org) HTTP Component.

License
-------

[](#license)

Goutte is licensed under the MIT license.

###  Health Score

29

—

LowBetter than 57% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity6

Limited adoption so far

Community20

Small or concentrated contributor base

Maturity63

Established project with proven stability

 Bus Factor1

Top contributor holds 60.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 ~71 days

Recently: every ~82 days

Total

7

Last Release

4533d ago

Major Versions

v0.1.0 → v1.0.02013-03-08

### Community

Maintainers

![](https://avatars.githubusercontent.com/u/1350652?v=4)[Marco Sousa](/maintainers/mfsousa)[@mfsousa](https://github.com/mfsousa)

---

Top Contributors

[![fabpot](https://avatars.githubusercontent.com/u/47313?v=4)](https://github.com/fabpot "fabpot (118 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)")[![tiger-seo](https://avatars.githubusercontent.com/u/398720?v=4)](https://github.com/tiger-seo "tiger-seo (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)")[![jakoch](https://avatars.githubusercontent.com/u/85608?v=4)](https://github.com/jakoch "jakoch (3 commits)")[![zeopix](https://avatars.githubusercontent.com/u/688434?v=4)](https://github.com/zeopix "zeopix (2 commits)")[![robo47](https://avatars.githubusercontent.com/u/110477?v=4)](https://github.com/robo47 "robo47 (2 commits)")[![davedevelopment](https://avatars.githubusercontent.com/u/61351?v=4)](https://github.com/davedevelopment "davedevelopment (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)")[![BRMatt](https://avatars.githubusercontent.com/u/20394?v=4)](https://github.com/BRMatt "BRMatt (2 commits)")[![kengos](https://avatars.githubusercontent.com/u/968151?v=4)](https://github.com/kengos "kengos (1 commits)")[![elazar](https://avatars.githubusercontent.com/u/15487?v=4)](https://github.com/elazar "elazar (1 commits)")[![ganchiku](https://avatars.githubusercontent.com/u/149973?v=4)](https://github.com/ganchiku "ganchiku (1 commits)")[![h4cc](https://avatars.githubusercontent.com/u/2981491?v=4)](https://github.com/h4cc "h4cc (1 commits)")[![havvg](https://avatars.githubusercontent.com/u/126898?v=4)](https://github.com/havvg "havvg (1 commits)")

---

Tags

scraper

### Embed Badge

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

```
[![Health](https://phpackages.com/badges/mfsousa-goutte/health.svg)](https://phpackages.com/packages/mfsousa-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)
