Coder Social home page Coder Social logo

laravel4-goutte's Introduction

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!

laravel4-goutte's People

Contributors

everlaat avatar pelletiermaxime avatar samwalshnz avatar

Watchers

 avatar  avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.