PHPackages                             hnhdigital-os/php-linode-api - PHPackages - PHPackages  [Skip to content](#main-content)[PHPackages](/)[Directory](/)[Categories](/categories)[Trending](/trending)[Leaderboard](/leaderboard)[Changelog](/changelog)[Analyze](/analyze)[Collections](/collections)[Log in](/login)[Sign up](/register)

1. [Directory](/)
2. /
3. [API Development](/categories/api)
4. /
5. hnhdigital-os/php-linode-api

ActiveLibrary[API Development](/categories/api)

hnhdigital-os/php-linode-api
============================

The v4 Linode API for PHP \[BETA\].

1.0.0-alpha(7y ago)82474[1 issues](https://github.com/hnhdigital-os/php-linode-api/issues)MITPHPPHP &gt;=7.1.0

Since May 20Pushed 7y ago3 watchersCompare

[ Source](https://github.com/hnhdigital-os/php-linode-api)[ Packagist](https://packagist.org/packages/hnhdigital-os/php-linode-api)[ RSS](/packages/hnhdigital-os-php-linode-api/feed)WikiDiscussions master Synced 3d ago

READMEChangelog (1)Dependencies (5)Versions (2)Used By (0)

```
 _     _                 _       ___  ______ _____
| |   (_)               | |     / _ \ | ___ \_   _|
| |    _ _ __   ___   __| | ___/ /_\ \| |_/ / | |
| |   | | '_ \ / _ \ / _` |/ _ \  _  ||  __/  | |
| |___| | | | | (_) | (_| |  __/ | | || |    _| |_
\_____/_|_| |_|\___/ \__,_|\___\_| |_/\_|    \___/

```

The v4.01 Linode API for PHP \[BETA\].

[![#f03c15](https://camo.githubusercontent.com/0f961518a7ec2afddbe358d250696841250391fd10d08f87047ec0e63321be23/68747470733a2f2f706c616365686f6c642e69742f31352f6630336331352f3030303030303f746578743d2b)](https://camo.githubusercontent.com/0f961518a7ec2afddbe358d250696841250391fd10d08f87047ec0e63321be23/68747470733a2f2f706c616365686f6c642e69742f31352f6630336331352f3030303030303f746578743d2b) Definately a work in progress. Do not use.

[![Latest Stable Version](https://camo.githubusercontent.com/d5174a51a3c0eb64adc3b5a08b90a88fa5aeedbf7c1b4690fad665ea1b938495/68747470733a2f2f706f7365722e707567782e6f72672f686e686469676974616c2d6f732f7068702d6c696e6f64652d6170692f762f737461626c652e737667)](https://packagist.org/packages/hnhdigital-os/php-linode-api) [![Total Downloads](https://camo.githubusercontent.com/78983e1cc3eba040ea8928f56ddc53cec00215b4d260f81aab19d8a35612309d/68747470733a2f2f706f7365722e707567782e6f72672f686e686469676974616c2d6f732f7068702d6c696e6f64652d6170692f646f776e6c6f6164732e737667)](https://packagist.org/packages/hnhdigital-os/php-linode-api) [![Latest Unstable Version](https://camo.githubusercontent.com/843cd19bf240c36994775b98ad2afc427184d6079ef80447fb2d1962a06f3080/68747470733a2f2f706f7365722e707567782e6f72672f686e686469676974616c2d6f732f7068702d6c696e6f64652d6170692f762f756e737461626c652e737667)](https://packagist.org/packages/hnhdigital-os/php-linode-api) [![License](https://camo.githubusercontent.com/fce0ce1fc8dbe395718b3be1c2d636cacf30f23b947e741f37f3d9296893d510/68747470733a2f2f706f7365722e707567782e6f72672f686e686469676974616c2d6f732f7068702d6c696e6f64652d6170692f6c6963656e73652e737667)](https://packagist.org/packages/hnhdigital-os/php-linode-api) [![Donate to this project using Patreon](https://camo.githubusercontent.com/f9e075baad95563481d35174d43ef50757281abb6bc795d0f473fad452afa030/68747470733a2f2f696d672e736869656c64732e696f2f62616467652f70617472656f6e2d646f6e6174652d79656c6c6f772e737667)](https://patreon.com/RoccoHoward)

[![Build Status](https://camo.githubusercontent.com/a0efaf7c5a83142dd9829143c59e6ea01a10017d2dd746bab5eac4a5ece2ea53/68747470733a2f2f7472617669732d63692e6f72672f686e686469676974616c2d6f732f7068702d6c696e6f64652d6170692e7376673f6272616e63683d6d6173746572)](https://travis-ci.org/hnhdigital-os/php-linode-api) [![StyleCI](https://camo.githubusercontent.com/36afa20f8f09d2676762024e0266969056392cf7dd53ddee3addc3a019d62452/68747470733a2f2f7374796c6563692e696f2f7265706f732f3131393233343631382f736869656c643f6272616e63683d6d6173746572)](https://styleci.io/repos/119234618) [![Test Coverage](https://camo.githubusercontent.com/0fb8ad26bbfc51eacd305c2c45fa9a5695aae9f0442f59a1124490aa0e7e8572/68747470733a2f2f636f6465636c696d6174652e636f6d2f6769746875622f686e686469676974616c2d6f732f7068702d6c696e6f64652d6170692f6261646765732f636f7665726167652e737667)](https://codeclimate.com/github/hnhdigital-os/php-linode-api/coverage) [![Issue Count](https://camo.githubusercontent.com/4082bbe985a7c88f06ce240484f4af587c2d03bd3e9c193ed576a9d36a074a61/68747470733a2f2f636f6465636c696d6174652e636f6d2f6769746875622f686e686469676974616c2d6f732f7068702d6c696e6f64652d6170692f6261646765732f69737375655f636f756e742e737667)](https://codeclimate.com/github/hnhdigital-os/php-linode-api) [![Code Climate](https://camo.githubusercontent.com/ef1a99589408bc571faffdf22c6d1d4baf2da44c0d8d520fc90a64fc8d3a0af9/68747470733a2f2f636f6465636c696d6174652e636f6d2f6769746875622f686e686469676974616c2d6f732f7068702d6c696e6f64652d6170692f6261646765732f6770612e737667)](https://codeclimate.com/github/hnhdigital-os/php-linode-api)

This package has been developed by H&amp;H|Digital, an Australian botique developer. Visit us at [hnh.digital](http://hnh.digital).

This package is built automatically using the OpenAPI specification for the Linode v4 API.

Documentation
-------------

[](#documentation)

- [Requirements](#requirements)
- [Installation](#install)
- [Examples](#examples)
- [Contributing](#contributing)
- [Credits](#credits)
- [License](#license)

Requirements
------------

[](#requirements)

- PHP 7.1+

Install
-------

[](#install)

Via composer:

`$ composer require hnhdigital-os/php-linode-api dev-master`

Examples
--------

[](#examples)

### Regions

[](#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.

```
foreach ((new Regions())->get() as $region) {
    // Do something with the region data (returned as an instance of Region)
}
```

Calling the `all` method automatically loads every page of results.

```
$regions = (new Regions())->get()->all();
```

### Region

[](#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.

```
$region = new Region('us-east-1a', true);

echo $region->id.' ('.$region->country.')';
```

```
us-east-1a (US)

```

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).

```
$result = (new Region('us-east-1a'))->get();

print_r($result);
```

```
Array
(
    [id] => us-east-1a
    [country] => US
)

```

Contributing
------------

[](#contributing)

Please see [CONTRIBUTING](https://github.com/hnhdigital-os/php-linode-api/blob/master/CONTRIBUTING.md) for details.

Credits
-------

[](#credits)

- [Rocco Howard](https://github.com/RoccoHoward)
- [All Contributors](https://github.com/hnhdigital-os/php-linode-api/contributors)

License
-------

[](#license)

The MIT License (MIT). Please see [License File](https://github.com/hnhdigital-os/php-linode-api/blob/master/LICENSE) for more information.

###  Health Score

25

—

LowBetter than 37% of packages

Maintenance18

Infrequent updates — may be unmaintained

Popularity19

Limited adoption so far

Community11

Small or concentrated contributor base

Maturity44

Maturing project, gaining track record

 Bus Factor1

Top contributor holds 100% of commits — single point of failure

How is this calculated?**Maintenance (25%)** — Last commit recency, latest release date, and issue-to-star ratio. Uses a 2-year decay window.

**Popularity (30%)** — Total and monthly downloads, GitHub stars, and forks. Logarithmic scaling prevents top-heavy scores.

**Community (15%)** — Contributors, dependents, forks, watchers, and maintainers. Measures real ecosystem engagement.

**Maturity (30%)** — Project age, version count, PHP version support, and release stability.

###  Release Activity

Cadence

Unknown

Total

1

Last Release

2917d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/5270e3a3d1add4e39f12dfde3ce549999a26f759d7128056083ab07f475259f2?d=identicon)[bluora](/maintainers/bluora)

---

Top Contributors

[![RoccoHoward](https://avatars.githubusercontent.com/u/227896?v=4)](https://github.com/RoccoHoward "RoccoHoward (156 commits)")

---

Tags

apilinodephpv4

###  Code Quality

TestsPHPUnit

### Embed Badge

![Health badge](/badges/hnhdigital-os-php-linode-api/health.svg)

```
[![Health](https://phpackages.com/badges/hnhdigital-os-php-linode-api/health.svg)](https://phpackages.com/packages/hnhdigital-os-php-linode-api)
```

###  Alternatives

[tencentcloud/tencentcloud-sdk-php

TencentCloudApi php sdk

3731.2M42](/packages/tencentcloud-tencentcloud-sdk-php)[convertkit/convertkitapi

Kit PHP SDK for the Kit API

2167.1k1](/packages/convertkit-convertkitapi)[mapado/rest-client-sdk

Rest Client SDK for hydra API

1125.9k2](/packages/mapado-rest-client-sdk)

PHPackages © 2026

[Directory](/)[Categories](/categories)[Trending](/trending)[Changelog](/changelog)[Analyze](/analyze)
