Skip to content

samwalshnz/laravel4-goutte

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

9 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Goutte Laravel4 package

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/pelletiermaxime/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!

About

laravel4-goutte

Resources

Stars

Watchers

Forks

Packages

No packages published

Languages

  • PHP 100.0%