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

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

linkthrow/goutte
================

Laravel 5 package for Gouette, a simple PHP Web Scraper

116PHP

Since Jul 29Pushed 9y ago1 watchersCompare

[ Source](https://github.com/linkthrow/laravel-goutte)[ Packagist](https://packagist.org/packages/linkthrow/goutte)[ RSS](/packages/linkthrow-goutte/feed)WikiDiscussions master Synced yesterday

READMEChangelogDependenciesVersions (1)Used By (0)

Laravel 5 Facade for Goutte
===========================

[](#laravel-5-facade-for-goutte)

This repository implements a simple [ServiceProvider](https://laravel.com/docs/master/providers) that makes a singleton instance of the Goutte client easily accessible via a [Facade](https://laravel.com/docs/master/facades) in [Laravel 5](http://laravel.com). See [@FriendsOfPHP/Goutte](https://github.com/FriendsOfPHP/Goutte) for more information about the php web scraper and its interfaces.

Installation using [Composer](https://getcomposer.org/)
-------------------------------------------------------

[](#installation-using-composer)

In your terminal application move to the root directory of your laravel project using the `cd` command and require the project as a dependency using composer.

```
$ cd ~/Sites/laravel-example-project
$ composer require weidner/goutte:@dev
```

This will add the following lines to your `composer.json` and download the project and its dependencies to your projects `./vendor` directory:

```
// ./composer.json
{
  "name": "weidner/laravel-goutte-test",
  "description": "A dummy project used to test the Laravel Goutte Facade.",

  // ...

  "require": {
    "php": ">=5.5.9",
    "laravel/framework": "5.2.*",
    "weidner/goutte": "@dev",
    // ...
  },

  //...
}
```

Usage
-----

[](#usage)

In ordet to use the static interface we first have to customize the application configuration to tell the system where it can find the new service. Open the file `config/app.php` in the editor of your choice and add the following lines (`[1]`, `[2]`):

```
// config/app.php

return [

  // ...

  'providers' => [

    // ...

    /*
     * Application Service Providers...
     */
    App\Providers\AppServiceProvider::class,
    App\Providers\AuthServiceProvider::class,
    App\Providers\EventServiceProvider::class,
    App\Providers\RouteServiceProvider::class,
    Weidner\Goutte\GoutteServiceProvider::class, // [1]

  ],

  // ...

  'aliases' => [

    'App' => Illuminate\Support\Facades\App::class,
    'Artisan' => Illuminate\Support\Facades\Artisan::class,

    // ...

    'View' => Illuminate\Support\Facades\View::class,
    'Goutte' => Weidner\Goutte\GoutteFacade::class, // [2]
  ],

];
```

Now you should be able to use the facade within your application. Laravel will autoload the corresponding classes once you use the registered alias.

```
// app/Http/routes.php

Route::get('/', function() {
  $crawler = Goutte::request('GET', 'http://duckduckgo.com/?q=Laravel');
  $url = $crawler->filter('.result__title > a')->first()->attr('href');
  dump($url);
  return view('welcome');
});
```

*TIP:* If you retrieve a "Class 'Goutte' not found"-Exception try to update the autoloader by running `composer dump-autoload` in your project root.

###  Health Score

21

—

LowBetter than 18% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity7

Limited adoption so far

Community10

Small or concentrated contributor base

Maturity41

Maturing project, gaining track record

 Bus Factor1

Top contributor holds 76.9% 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.

### Community

Maintainers

![](https://www.gravatar.com/avatar/4e398ed2a3aef70c486ed7cf01f5571eced0a795b6ce000f7ed18e58aea10111?d=identicon)[linkthrow](/maintainers/linkthrow)

---

Top Contributors

[![dweidner](https://avatars.githubusercontent.com/u/2363597?v=4)](https://github.com/dweidner "dweidner (10 commits)")[![hussan-choudhry](https://avatars.githubusercontent.com/u/13449479?v=4)](https://github.com/hussan-choudhry "hussan-choudhry (2 commits)")[![choirudin2210](https://avatars.githubusercontent.com/u/1484388?v=4)](https://github.com/choirudin2210 "choirudin2210 (1 commits)")

### Embed Badge

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

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

###  Alternatives

[dominus77/yii2-sweetalert2-widget

Renders a SweetAlert2 widget for Yii2.

2072.4k1](/packages/dominus77-yii2-sweetalert2-widget)[craftcms/shopify

Shopify for Craft CMS

539.8k1](/packages/craftcms-shopify)[php-service-bus/sagas

Saga pattern implementation

3914.7k5](/packages/php-service-bus-sagas)

PHPackages © 2026

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