PHPackages                             haswalt/rancher-php - 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. haswalt/rancher-php

ActiveLibrary[API Development](/categories/api)

haswalt/rancher-php
===================

RancherPHP is PHP client library for interacting with the Rancher API

59851PHP

Since Nov 17Pushed 10y agoCompare

[ Source](https://github.com/haswalt/RancherPHP)[ Packagist](https://packagist.org/packages/haswalt/rancher-php)[ RSS](/packages/haswalt-rancher-php/feed)WikiDiscussions master Synced 1mo ago

READMEChangelogDependenciesVersions (1)Used By (0)

Rancher PHP
===========

[](#rancher-php)

RancherPHP is a PHP client for interacting with the [Rancher](http://rancher.com/rancher/) API. Rancher's API provides a traversable tree or resources and RancherPHP exposes these in a simple interface.

```
$client = new Rancher\Client('http://localhost:9000/v1', 'key', 'secret');
$projects = $client->getProjects();

$services = $projects->first()->getServices();
```

Installing RancherPHP
---------------------

[](#installing-rancherphp)

The recommended way to install RancherPHP is through [Composer](http://getcomposer.org).

```
# Install Composer
curl -sS https://getcomposer.org/installer | php
```

Next, run the Composer command to install the latest stable version of RancherPHP:

```
composer.phar require haswalt/rancher-php
```

After installing, you need to require Composer's autoloader:

```
require 'vendor/autoload.php';
```

You can then later update RancherPHP using composer:

```
composer.phar update
```

TODO
----

[](#todo)

- Implement more resource types
- Add tests
- Implement complex actions

###  Health Score

24

—

LowBetter than 32% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity19

Limited adoption so far

Community9

Small or concentrated contributor base

Maturity41

Maturing project, gaining track record

 Bus Factor1

Top contributor holds 97.1% 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.

### Community

Maintainers

![](https://www.gravatar.com/avatar/12cf0da4753a3df370dc9175bff5e188add5640cb1df8cca3b3e4c59af721fca?d=identicon)[haswalt](/maintainers/haswalt)

---

Top Contributors

[![haswalt](https://avatars.githubusercontent.com/u/338588?v=4)](https://github.com/haswalt "haswalt (33 commits)")[![ebuildy](https://avatars.githubusercontent.com/u/1219817?v=4)](https://github.com/ebuildy "ebuildy (1 commits)")

### Embed Badge

![Health badge](/badges/haswalt-rancher-php/health.svg)

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

###  Alternatives

[stripe/stripe-php

Stripe PHP Library

4.0k143.3M480](/packages/stripe-stripe-php)[twilio/sdk

A PHP wrapper for Twilio's API

1.6k92.9M272](/packages/twilio-sdk)[knplabs/github-api

GitHub API v3 client

2.2k15.8M187](/packages/knplabs-github-api)[facebook/php-business-sdk

PHP SDK for Facebook Business

90121.9M34](/packages/facebook-php-business-sdk)[meilisearch/meilisearch-php

PHP wrapper for the Meilisearch API

73813.7M114](/packages/meilisearch-meilisearch-php)[google/gax

Google API Core for PHP

263103.1M454](/packages/google-gax)

PHPackages © 2026

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