PHPackages                             th0rn0/laravel-rancher - 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. [DevOps &amp; Deployment](/categories/devops)
4. /
5. th0rn0/laravel-rancher

AbandonedArchivedLibrary[DevOps &amp; Deployment](/categories/devops)

th0rn0/laravel-rancher
======================

Rancher API wrapper for Laravel 6

1.0.7(6y ago)12941MITPHPPHP ~5.5|~7.0

Since Apr 20Pushed 6y agoCompare

[ Source](https://github.com/th0rn0/laravel-rancher)[ Packagist](https://packagist.org/packages/th0rn0/laravel-rancher)[ Docs](https://github.com/th0rn0/laravel-rancher)[ RSS](/packages/th0rn0-laravel-rancher/feed)WikiDiscussions master Synced yesterday

READMEChangelogDependencies (5)Versions (8)Used By (0)

Laravel Rancher
===============

[](#laravel-rancher)

Rancher API wrapper for Laravel. This package provides a simple interface to Rancher's (awesome) API. Orchestrate your private container service with expressive, clean PHP.

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

[](#installation)

Laravel Rancher uses compose to make installation a breeze.

**Install via composer**

```
composer require benmag/laravel-rancher
```

**Register service provider**Add the Laravel Rancher service provider to your `config/app.php` file in the providers key

```
'providers' => [
    // ... other providers
    Benmag\Rancher\RancherServiceProvider::class,
]
```

**Rancher facade alias**Then add the `Rancher` facade to your `aliases` key: `'Rancher' => Benmag\Rancher\Facades\Rancher::class`.

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

[](#configuration)

Configuration can be done via your `.env` file.

```
RANCHER_BASE_URL=http://localhost:8080/v1/
RANCHER_ACCESS_KEY=xxxxxxx
RANCHER_SECRET_KEY=xxxxxxx

```

> You may also publish the config file to `config/rancher.php` for editing: `php artisan vendor:publish --provider="Benmag\Rancher\RancherServiceProvider"`

### Notes

[](#notes)

Make sure you have authentication enabled. Without this, you might experience some weird behaviour. I still need to look into changing Environments/Projects in a slightly more coordinated way but you should just be able to instantiate a new client instance.

Usage
-----

[](#usage)

Laravel Rancher is incredibly intuitive to use.

### Introduction

[](#introduction)

Already configured everything and just want to see it in action? Take a look at the example code below.

```
