elvedia/goutte

There is no license information available for the latest version (v1.0.2) of this package.

Laravel 4 package of Goutte

This package's canonical repository appears to be gone and the package has been frozen as a result.

v1.0.2 2013-12-13 09:26 UTC

This package is not auto-updated.

Last update: 2024-01-20 10:51:21 UTC


README

more info:

https://github.com/fabpot/Goutte

Installation

Open up the Laravel 4 composer.json file and add my repository fork

"repositories": [
    {
      "url": "https://github.com/everlaat/laravel4-goutte.git",
      "type": "git"
    }
  ],

add the elvedia/goutte package to the require section:

{
  "require": {
    "laravel/framework": "4.0.*",
    ...
    "elvedia/goutte": "1.0.*"
  }
  ...
}

Run the composer install or update task, which will make composer download requested packages and setup initial environment:

$ composer update

By default, composer will autoload the required classes. If you encounter any error, run the following command to force composer re-generate the autoload file:

$ composer dump-autoload

Next, we need to install the package in your Laravel 4 application. Open up the the app/config/app.php file and append the following code to the providers array:

'Elvedia\Goutte\Providers\GoutteServiceProvider',

The providers section should look like the following snippet:

'providers' => array(
    ...
    'Elvedia\Goutte\Providers\GoutteServiceProvider',
),

Next, add the following code to the aliases array in the app/config/app.php file:

'Goutte' => 'Elvedia\Goutte\Facades\GoutteFacade',

The aliases array should now look like the snippet below:

'aliases' => array(
    ...
  'Goutte' => 'Elvedia\Goutte\Facades\Laravel\GoutteFacade',
),

Goutte Laravel 4 is now ready to be used in your web application!