PHPackages                             mcpuishor/linode-laravel - 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. [Utility &amp; Helpers](/categories/utility)
4. /
5. mcpuishor/linode-laravel

ActiveLibrary[Utility &amp; Helpers](/categories/utility)

mcpuishor/linode-laravel
========================

A Laravel 12 package for Linode integration

v0.2.1(1y ago)037MITPHPPHP ^8.3CI failing

Since Jun 13Pushed 7mo agoCompare

[ Source](https://github.com/mcpuishor/linode-laravel)[ Packagist](https://packagist.org/packages/mcpuishor/linode-laravel)[ RSS](/packages/mcpuishor-linode-laravel/feed)WikiDiscussions main Synced 3w ago

READMEChangelog (5)Dependencies (4)Versions (11)Used By (0)

Linode Laravel
==============

[](#linode-laravel)

A Laravel 12 package for Linode integration. For now, only Compute Instances and Managed Databases are supported.

Other features may be added in the future.

[![Tests](https://github.com/mcpuishor/linode-laravel/actions/workflows/tests.yml/badge.svg)](https://github.com/mcpuishor/linode-laravel/actions/workflows/tests.yml)

Installation
------------

[](#installation)

You can install the package via composer:

```
composer require mcpuishor/linode-laravel
```

Configuration
-------------

[](#configuration)

Publish the configuration file:

```
php artisan vendor:publish --tag="linode-config"
```

This will publish a `linode.php` configuration file to your config directory.

Add your Linode API key to your `.env` file:

```
LINODE_API_KEY=your-api-key

```

Usage
-----

[](#usage)

There are three ways to get the LinodeClient instance:

```
// Method 1: Using the static make() method
$linode = \Mcpuishor\LinodeLaravel\LinodeClient::make();

// Method 2: Resolving from the container
$linode = app(\Mcpuishor\LinodeLaravel\LinodeClient::class);

// Method 3: Using the static service methods directly
// This leverages the __callStatic magic method
$instances = \Mcpuishor\LinodeLaravel\LinodeClient::instances()->all();
$databases = \Mcpuishor\LinodeLaravel\LinodeClient::databases()->mysql()->all();
$regions = \Mcpuishor\LinodeLaravel\LinodeClient::regions()->all();
```

### Working with Instances

[](#working-with-instances)

```
// Method 1: Using a LinodeClient instance
$instances = $linode->instances()->all();

// Method 2: Using the static method directly
$instances = \Mcpuishor\LinodeLaravel\LinodeClient::instances()->all();

// Get a specific instance by ID
$instance = $linode->instances()->get(123);

// Create a new instance
$newInstance = $linode->instances()->create([
    'label' => 'my-new-instance',
    'region' => 'us-east',
    'type' => 'g6-standard-1',
    'image' => 'linode/ubuntu22.04',
]);

// Update an instance
$updatedInstance = $linode->instances()->update(123, [
    'label' => 'updated-instance',
    'region' => 'us-west',
]);

// Delete an instance
$result = $linode->instances()->delete(123);
```

### Database Support

[](#database-support)

```
// Method 1: Using a LinodeClient instance
$databases = $linode->databases()->all();

// Method 2: Using the static method directly
$databases = \Mcpuishor\LinodeLaravel\LinodeClient::databases()->all();

// You must select a database engine (MySQL or PostgreSQL) before performing operations
// Get a specific MySQL database by ID
$database = $linode->databases()->mysql()->get(123);

// Get a specific PostgreSQL database by ID
$database = $linode->databases()->postgresql()->get(123);

// Create a new MySQL database
$newDatabase = $linode->databases()->mysql()->create([
    'label' => 'my-new-database',
    'region' => 'us-east',
    'type' => 'g6-standard-1',
    'engine_version' => '8.0.26',
    'cluster_size' => 3,
    'encrypted' => true,
]);

// Update a MySQL database
$updatedDatabase = $linode->databases()->mysql()->update(123, [
    'label' => 'updated-database',
    'allow_list' => ['192.0.2.1/32'],
]);

// Delete a MySQL database
$result = $linode->databases()->mysql()->delete(123);

// Suspend a MySQL database
$result = $linode->databases()->mysql()->suspend(123);

// Resume a suspended MySQL database
$result = $linode->databases()->mysql()->resume(123);
```

> **Note:** You must select a database engine (mysql or postgresql) before performing operations. Attempting operations without selecting an engine will throw an exception.

### Advanced Usage

[](#advanced-usage)

If you need more direct access to the Linode API, you can use the Transport class:

```
// Get the Transport instance
$transport = app(\Mcpuishor\LinodeLaravel\Transport::class);

// Make a custom API request
$result = $transport->get('some/endpoint');
```

Testing
-------

[](#testing)

Run the tests:

```
composer test
```

Run the tests with coverage report:

```
composer test:coverage
```

License
-------

[](#license)

The MIT License (MIT). Please see [License File](LICENSE.md) for more information.

###  Health Score

32

—

LowBetter than 69% of packages

Maintenance58

Moderate activity, may be stable

Popularity7

Limited adoption so far

Community6

Small or concentrated contributor base

Maturity48

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

Every ~2 days

Total

4

Last Release

370d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/f68447628fda07406fb838fc490d8935d415088a93ec70584f59db2f719637c4?d=identicon)[mcpuishor](/maintainers/mcpuishor)

---

Top Contributors

[![mcpuishor](https://avatars.githubusercontent.com/u/40750444?v=4)](https://github.com/mcpuishor "mcpuishor (27 commits)")

###  Code Quality

TestsPest

### Embed Badge

![Health badge](/badges/mcpuishor-linode-laravel/health.svg)

```
[![Health](https://phpackages.com/badges/mcpuishor-linode-laravel/health.svg)](https://phpackages.com/packages/mcpuishor-linode-laravel)
```

###  Alternatives

[psalm/plugin-laravel

Psalm plugin for Laravel

3345.1M337](/packages/psalm-plugin-laravel)[illuminate/pipeline

The Illuminate Pipeline package.

9348.3M267](/packages/illuminate-pipeline)[illuminate/pagination

The Illuminate Pagination package.

10533.5M991](/packages/illuminate-pagination)[illuminate/redis

The Illuminate Redis package.

8314.4M362](/packages/illuminate-redis)[illuminate/cookie

The Illuminate Cookie package.

224.5M132](/packages/illuminate-cookie)[aedart/athenaeum

Athenaeum is a mono repository; a collection of various PHP packages

245.2k](/packages/aedart-athenaeum)

PHPackages © 2026

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