A Laravel service provider and helper library for accessing Linode via PHP

3.0.1 2015-05-23 12:52 UTC

This package is auto-updated.

Last update: 2024-06-29 03:46:29 UTC


A Linode API wrapper for Laravel 5.x using Guzzle

By Simon Hampel.

This package provides a simple Laravel service provider for our base Linode API wrapper package hampel/linode - please refer to the documentation about that package for instructions on how to use this API wrapper


The recommended way of installing Hampel Linode-Laravel is through Composer:

Require the package via Composer in your composer.json

    "require": {
        "hampel/linode-laravel": "~3.0"

Run Composer to update the new requirement.

$ composer update

The package is built to work with the Laravel 5 Framework.

Open your Laravel config file app/config/app.php and add the service provider in the $providers array:

'providers' => array(




You may also optionally add an alias entry to the $aliases array in the same file for the Linode facade:

"aliases" => array(


	'Linode'			  => 'Linode\Facades\Linode',


Finally, to utilise the Linode API, you must generate an API key using the Linode manager and specify that key in your .env file:



Use Laravel's App facade to gain access to the service provider in your code:

use Hampel\Linode\Commands\DomainCommand;

$linode = App::make('linode');
$domains = $linode->execute(new DomainCommand('list'));

... or chain them:

$domains = App::make('linode')->execute(new DomainCommand('list'));

... or just use the Facade instead:

$domains = Linode::execute(new DomainCommand('list'));

Refer to the usage examples and code in the Linode API Wrapper repository for more details about how to use the library.