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 today

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 60% 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

4482d ago

Major Versions

v0.1.0 → v1.0.02013-03-08

### Community

Maintainers

![](https://www.gravatar.com/avatar/4260b1cf7e381d246ec2fe48f06224d9a6143f72128176ca266ad235ce731901?d=identicon)[mfsousa](/maintainers/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

[vdb/php-spider

A configurable and extensible PHP web spider

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

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

728272.9k20](/packages/civicrm-civicrm-core)[ec-cube/ec-cube

EC-CUBE EC open platform.

78527.0k1](/packages/ec-cube-ec-cube)[spatie/laravel-pjax

A pjax middleware for Laravel 5

513371.8k11](/packages/spatie-laravel-pjax)[crwlr/crawler

Web crawling and scraping library.

37214.8k2](/packages/crwlr-crawler)[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)
