PHPackages                             ballyhoo-technic/openshift-client - 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. [HTTP &amp; Networking](/categories/http)
4. /
5. ballyhoo-technic/openshift-client

ActiveLibrary[HTTP &amp; Networking](/categories/http)

ballyhoo-technic/openshift-client
=================================

Simple OpenShift client for PHP. Fork of: https://github.com/universityofadelaide/openshift-client

0.3.2(9mo ago)0112MITPHPPHP &gt;=8CI failing

Since Jun 30Pushed 9mo agoCompare

[ Source](https://github.com/ballyhoo-technic/openshift-client)[ Packagist](https://packagist.org/packages/ballyhoo-technic/openshift-client)[ RSS](/packages/ballyhoo-technic-openshift-client/feed)WikiDiscussions develop Synced 6d ago

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

Simple OpenShift PHP Client
===========================

[](#simple-openshift-php-client)

Provides a simple standalone client and a wrapper for the rather verbose [universityofadelaide/openshift-restclient-php](https://github.com/universityofadelaide/openshift-restclient-php) generated by [Swagger codegen](https://github.com/swagger-api/swagger-codegen).

Getting started
---------------

[](#getting-started)

Require the client using composer:

```
composer require universityofadelaide/openshift-client dev-master

```

Usage
-----

[](#usage)

Create an instance of the `Client` class by providing an OpenShift API URL and authentication token:

```
use UniversityOfAdelaide\OpenShift\Client;

...

$client = new Client('https://192.168.64.2:8443/api/v1/', 'big_secret_token_hash', 'project');
```

How to Test
-----------

[](#how-to-test)

Create a `test.php` or similar file in the root of the project.

Add the following to this file:

```
require_once __DIR__ . './../../autoload.php';

use UniversityOfAdelaide\OpenShift\Client;

$host = 'https://pathToOpenshift.host';
$token = 'yourOpenShiftToken';
$namespace = 'project';

// Get the arguments required
$client = new Client($host, $token, $namespace, TRUE);

// Attempt to create a secret.
$response = $client->createSecret('superSecret', ['username' => 'pied_piper', 'pass', 'middleout']);
```

How to test with phpunit and minishift
--------------------------------------

[](#how-to-test-with-phpunit-and-minishift)

Ensure that you have the oc command available.

The token will expire every 24 hours, if the token is expired you will need to login again.

```
oc login -u developer -p developer
```

```
# Assumes myproject (default) is available.
# From the /vendor/universityofadelaide/openshift-client directory
../../bin/phpunit tests/ClientTest.php $(minishift console --url) $(oc whoami -t) myproject client_test.json
```

Actual deployment
-----------------

[](#actual-deployment)

Manually create a mysql container in OpenShift, make note of the db name, username and password, and put those into the client\_test.json envVars section.

### Test clean up scripts

[](#test-clean-up-scripts)

Remove all objects created during tests :

```
# Assuming all the names for items created contain 'pied'
name=pied; for type in dc bc is svc pvc route pods job cronjob secrets; do for item in $(oc get "${type}" | grep ${name} | awk '{ print $1 }'); do oc delete ${type} ${item}; done; done
```

Todo
----

[](#todo)

- Complete implementation of interface.
- Improve test coverage, test the response json object rather that just the status code.

###  Health Score

37

—

LowBetter than 83% of packages

Maintenance55

Moderate activity, may be stable

Popularity10

Limited adoption so far

Community11

Small or concentrated contributor base

Maturity61

Established project with proven stability

 Bus Factor2

2 contributors hold 50%+ of commits

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 ~208 days

Recently: every ~241 days

Total

12

Last Release

299d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/433f082ba319521c024c40bb88fca7c2c922d43919692ab3e401a8427fc239b2?d=identicon)[ballyhooTech](/maintainers/ballyhooTech)

---

Top Contributors

[![pingers](https://avatars.githubusercontent.com/u/1512865?v=4)](https://github.com/pingers "pingers (59 commits)")[![bart88](https://avatars.githubusercontent.com/u/2253412?v=4)](https://github.com/bart88 "bart88 (31 commits)")[![rmertins](https://avatars.githubusercontent.com/u/5141216?v=4)](https://github.com/rmertins "rmertins (18 commits)")[![acbramley](https://avatars.githubusercontent.com/u/569927?v=4)](https://github.com/acbramley "acbramley (14 commits)")[![caseyfw](https://avatars.githubusercontent.com/u/248665?v=4)](https://github.com/caseyfw "caseyfw (2 commits)")

###  Code Quality

TestsPHPUnit

### Embed Badge

![Health badge](/badges/ballyhoo-technic-openshift-client/health.svg)

```
[![Health](https://phpackages.com/badges/ballyhoo-technic-openshift-client/health.svg)](https://phpackages.com/packages/ballyhoo-technic-openshift-client)
```

###  Alternatives

[spatie/crawler

Crawl all internal links found on a website

2.8k16.3M52](/packages/spatie-crawler)[api-platform/symfony

Symfony API Platform integration

323.2M67](/packages/api-platform-symfony)[api-platform/state

API Platform state interfaces

223.4M57](/packages/api-platform-state)[api-platform/serializer

API Platform core Serializer

223.4M31](/packages/api-platform-serializer)[api-platform/validator

API Platform validator component

223.2M10](/packages/api-platform-validator)[muhammadhuzaifa/telescope-guzzle-watcher

Telescope Guzzle Watcher provide a custom watcher for intercepting http requests made via guzzlehttp/guzzle php library. The package uses the on\_stats request option for extracting the request/response data. The watcher intercept and log the request into the Laravel Telescope HTTP Client Watcher.

98239.8k1](/packages/muhammadhuzaifa-telescope-guzzle-watcher)

PHPackages © 2026

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