Download the PHP package hnhdigital-os/php-linode-api without Composer
On this page you can find all versions of the php package hnhdigital-os/php-linode-api. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Download hnhdigital-os/php-linode-api
More information about hnhdigital-os/php-linode-api
Files in hnhdigital-os/php-linode-api
Package php-linode-api
Short Description The v4 Linode API for PHP [BETA].
License MIT
Informations about the package php-linode-api
The v4.01 Linode API for PHP [BETA].
Definately a work in progress. Do not use.
This package has been developed by H&H|Digital, an Australian botique developer. Visit us at hnh.digital.
This package is built automatically using the OpenAPI specification for the Linode v4 API.
Documentation
- Requirements
- Installation
- Examples
- Contributing
- Credits
- License
Requirements
- PHP 7.1+
Install
Via composer:
$ composer require hnhdigital-os/php-linode-api dev-master
Examples
Regions
Results returned from any search based endpoint are provided as an instance of that type. This allows you to call any endpoints immediately.
Results from the get
method are returned as an object that implements Iterator
and Countable
, allowing you to use this in a foreach
and to use count
. Linode limits search results to 25 records per page - this is overcome by automatically requesting the next page of records when the last record is reached in the current page.
Calling the all
method automatically loads every page of results.
Region
You can get a specific record, simply by creating the object with the required parameters. This will automatically call the endpoint and return the object ready to use. The record will auto-load by setting the last parameter to true.
Calling the get
method directly on this same class will return an array of the values from the same endpoint. This will also auto-fill the object (the same as above, passing the true actually just calls the get method).
Contributing
Please see CONTRIBUTING for details.
Credits
License
The MIT License (MIT). Please see License File for more information.