PHPackages                             weesee/yii2-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. [API Development](/categories/api)
4. /
5. weesee/yii2-rancher

ActiveYii2-extension[API Development](/categories/api)

weesee/yii2-rancher
===================

Yii2 extension for accessing Rancher API

1.0.0(7y ago)16MITPHPPHP &gt;=7.0.0

Since Aug 6Pushed 7y ago1 watchersCompare

[ Source](https://github.com/WeeSee/yii2-rancher)[ Packagist](https://packagist.org/packages/weesee/yii2-rancher)[ RSS](/packages/weesee-yii2-rancher/feed)WikiDiscussions master Synced yesterday

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

Yii2 extension to access Rancher
================================

[](#yii2-extension-to-access-rancher)

Enables very easy access to Rancher from your Yii2 application.

Supports Rancher V2 beta (Rancher 1.6 API) and a single Rancher environment.

API-Resurces supported (easily expandable, see `Rancher.php`):

- Get a list of stacks
- Deactivate a stack

Accesses Rancher via the fantastic [Rancher API](https://rancher.com/docs/rancher/v1.6/en/api/v2-beta/)

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

[](#installation)

Add System-Info to the require section of your **composer.json** file:

```
{
    "require": {
        "weesee/yii2-rancher": "~1.0.0"
    }
}
```

And run following command to download extension using **composer**:

```
$ php composer.phar update
```

To configure Rancher API access for your Environment:

- In the Rancher UI: Open API-&gt;Keys
- Open "Advanced Options"
- Add an Environment API Key
- Copy Access Key (Username) and Secret Key (Password)
- Copy Endpoint (v2-beta)

Usage
-----

[](#usage)

Get Rancher stacks:

```
use weesee\Rancher;

// Get Rancher stacks
$rancher = new RancherApi([
    'apiEndpointUrl' => '...',  // Rancher Endpoint (v2-beta)
    'apiUsername' => '...', // Rancher Access Key (Username)
    'apiPassword' => '...', // Rancher Secret Key (Password)
]);
// get system details as Yii2 model
$stacks = $rancher->getStacks();
```

Contribution
------------

[](#contribution)

Contributing instructions are located in [CONTRIBUTING.md](CONTRIBUTING.md) file.

Author &amp; Credits
--------------------

[](#author--credits)

Author:

(C) 2018 WeeSee

###  Health Score

25

—

LowBetter than 37% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity6

Limited adoption so far

Community7

Small or concentrated contributor base

Maturity57

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

2836d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/62e4205dd63b1c6eaf80da0387ac1085882620e7830b634dafc42b6b8c1be0a6?d=identicon)[WeeSee](/maintainers/WeeSee)

---

Top Contributors

[![WeeSee](https://avatars.githubusercontent.com/u/3421590?v=4)](https://github.com/WeeSee "WeeSee (2 commits)")

### Embed Badge

![Health badge](/badges/weesee-yii2-rancher/health.svg)

```
[![Health](https://phpackages.com/badges/weesee-yii2-rancher/health.svg)](https://phpackages.com/packages/weesee-yii2-rancher)
```

PHPackages © 2026

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