2017 © Pedro Peláez
 

library linode-api-laravel

Laravel package for Linode V4 Api

image

agiuscloud/linode-api-laravel

Laravel package for Linode V4 Api

  • Wednesday, January 31, 2018
  • by agiuscloud
  • Repository
  • 2 Watchers
  • 0 Stars
  • 91 Installations
  • PHP
  • 0 Dependents
  • 0 Suggesters
  • 0 Forks
  • 0 Open issues
  • 4 Versions
  • 128 % Grown

The README.md

Linode Api V4 Laravel 5 package

Total Downloads License, (*1)

A simple wrapper to get started with the Linode V4 Api., (*2)

Install

composer require agiuscloud/linode-api-laravel

After updating composer, add the ServiceProvider to the providers array in config/app.php, (*3)

AgiusCloud\Linode\LinodeServiceProvider::class

Optionally you can use the Facade. Add this to your facades:, (*4)

'Linode' => AgiusCloud\Linode\Facades\Linode::class

Publish config file

php artisan vendor:publish

Add your personal access token to your config (/config/linode.php) or env file

LINODE_TOKEN=Your_personal_access_token

You can create your token by visiting your Linode if you are using the newer linode manager., (*5)

Usage

Add to your class, (*6)

use AgiusCloud\Linode\Controllers\Linode;

To use, (*7)

$linode = new Linode;

// list linodes
$linode->get('linode/instances');

// create a new linode
$linode->post('linode/instances', [
    "region" => "us-east-1a",
    "type" => "g5-standard-1"
]);

// update a linode
$linode->put('linode/instances/999', [
    "label" => "new label"
]);

// delete a linode
$linode->delete('linode/instances/999');

Filtering & Sorting, (*8)

$linode->get('linode/distributions', [
    "vendor" => "Debian"
]);

$linode->get('linode/distributions', [
    "+or" =>
        [
            ["vendor" => "Debian"],
            ["deprecated" => true]
        ]
]);

Or, you can use the facade, (*9)

Linode::get('linode/instances');

Full API reference, (*10)

License

This Linode wrapper is open-sourced software licensed under the MIT license., (*11)

The Versions

31/01 2018

dev-master

9999999-dev

Laravel package for Linode V4 Api

  Sources   Download

MIT

The Requires

  • php >=7.0.0

 

by Trevor Sewell
by Edison Costa

31/01 2018

v1.1.1

1.1.1.0

Laravel package for Linode V4 Api

  Sources   Download

MIT

The Requires

  • php >=7.0.0

 

by Trevor Sewell
by Edison Costa

18/10 2017

v1.1.0

1.1.0.0

Laravel package for Linode V4 Api

  Sources   Download

MIT

The Requires

  • php >=7.0.0

 

by Trevor Sewell
by Edison Costa

16/10 2017

v1.0.0

1.0.0.0

Laravel package for Linode V4 Api

  Sources   Download

MIT

The Requires

  • php >=7.0.0

 

by Trevor Sewell