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

ActiveApplication

armonia-tech/goutte
===================

A simple PHP Web Scraper

v3.3.0(7y ago)0149MITPHPPHP &gt;=5.5.0

Since Dec 2Pushed 7y agoCompare

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

READMEChangelogDependencies (5)Versions (27)Used By (0)

This is Armonia Tech fork project to solve mobile user agent issue.
-------------------------------------------------------------------

[](#this-is-armonia-tech-fork-project-to-solve-mobile-user-agent-issue)

Installation:

```
composer require armonia-tech/goutte
```

Usage:

Refer below

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 depends on PHP 5.5+ and Guzzle 6+.

Tip

If you need support for PHP 5.4 or Guzzle 4-5, use Goutte 2.x (latest [phar](https://github.com/FriendsOfPHP/Goutte/releases/download/v2.0.4/goutte-v2.0.4.phar)).

If you need support for PHP 5.3 or Guzzle 3, use Goutte 1.x (latest [phar](https://github.com/FriendsOfPHP/Goutte/releases/download/v1.0.7/goutte-v1.0.7.phar)).

### 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\Client`):

```
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 Guzzle settings, you may create and pass a new Guzzle 6 instance to Goutte. For example, to add a 60 second request timeout:

```
use Goutte\Client;
use GuzzleHttp\Client as GuzzleClient;

$goutteClient = new Client();
$guzzleClient = new GuzzleClient(array(
    'timeout' => 60,
));
$goutteClient->setClient($guzzleClient);
```

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, 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](https://symfony.com/components/BrowserKit) and [DomCrawler](https://symfony.com/doc/current/components/dom_crawler.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 fine PHP libraries:

- Symfony Components: [BrowserKit](https://symfony.com/components/BrowserKit), [CssSelector](https://symfony.com/doc/current/components/css_selector.html) and [DomCrawler](https://symfony.com/doc/current/components/dom_crawler.html);
- [Guzzle](http://docs.guzzlephp.org) HTTP Component.

### License

[](#license)

Goutte is licensed under the MIT license.

###  Health Score

31

—

LowBetter than 68% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity10

Limited adoption so far

Community19

Small or concentrated contributor base

Maturity68

Established project with proven stability

 Bus Factor1

Top contributor holds 65.5% 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 ~100 days

Recently: every ~215 days

Total

24

Last Release

2598d ago

Major Versions

v0.1.0 → v1.0.02013-03-08

v1.0.6 → v2.0.02014-05-08

v1.0.7 → v2.0.32014-11-28

v2.0.4 → v3.0.02015-06-21

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

v2.0.0PHP &gt;=5.4.0

v3.0.0PHP &gt;=5.5.0

### Community

Maintainers

![](https://www.gravatar.com/avatar/f0a95f91d8b4a4323439aea5716e31be3613c3d1c78c3c2219d74da3bcdee8e2?d=identicon)[armonia-tech](/maintainers/armonia-tech)

---

Top Contributors

[![fabpot](https://avatars.githubusercontent.com/u/47313?v=4)](https://github.com/fabpot "fabpot (169 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)")[![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)")[![armonia-tech](https://avatars.githubusercontent.com/u/49048625?v=4)](https://github.com/armonia-tech "armonia-tech (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)")[![stof](https://avatars.githubusercontent.com/u/439401?v=4)](https://github.com/stof "stof (3 commits)")[![thewilkybarkid](https://avatars.githubusercontent.com/u/1784740?v=4)](https://github.com/thewilkybarkid "thewilkybarkid (3 commits)")[![tiger-seo](https://avatars.githubusercontent.com/u/398720?v=4)](https://github.com/tiger-seo "tiger-seo (3 commits)")[![csarrazi](https://avatars.githubusercontent.com/u/465798?v=4)](https://github.com/csarrazi "csarrazi (2 commits)")[![keradus](https://avatars.githubusercontent.com/u/2716794?v=4)](https://github.com/keradus "keradus (2 commits)")[![zachbadgett](https://avatars.githubusercontent.com/u/916274?v=4)](https://github.com/zachbadgett "zachbadgett (2 commits)")[![robo47](https://avatars.githubusercontent.com/u/110477?v=4)](https://github.com/robo47 "robo47 (2 commits)")[![zeopix](https://avatars.githubusercontent.com/u/688434?v=4)](https://github.com/zeopix "zeopix (2 commits)")[![BRMatt](https://avatars.githubusercontent.com/u/20394?v=4)](https://github.com/BRMatt "BRMatt (2 commits)")[![davedevelopment](https://avatars.githubusercontent.com/u/61351?v=4)](https://github.com/davedevelopment "davedevelopment (2 commits)")

---

Tags

scraper

### Embed Badge

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

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

###  Alternatives

[craftcms/cms

Craft CMS

3.6k3.6M2.6k](/packages/craftcms-cms)[spatie/crawler

Crawl all internal links found on a website

2.8k16.3M52](/packages/spatie-crawler)[vdb/php-spider

A configurable and extensible PHP web spider

1.4k181.0k7](/packages/vdb-php-spider)[ec-cube/ec-cube

EC-CUBE EC open platform.

78527.0k1](/packages/ec-cube-ec-cube)[drupal/core-dev

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

2021.0M275](/packages/drupal-core-dev)[crwlr/crawler

Web crawling and scraping library.

37214.8k2](/packages/crwlr-crawler)

PHPackages © 2026

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