PHPackages                             fandom/docker-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. fandom/docker-php

ActiveLibrary[API Development](/categories/api)

fandom/docker-php
=================

PHP client for Docker API generated from Docker's OpenAPI spec

115.8k↓21.4%2PHP

Since Aug 6Pushed 4y ago3 watchersCompare

[ Source](https://github.com/Wikia/docker-php)[ Packagist](https://packagist.org/packages/fandom/docker-php)[ RSS](/packages/fandom-docker-php/feed)WikiDiscussions main Synced 1w ago

READMEChangelogDependenciesVersions (3)Used By (0)

Docker PHP
==========

[](#docker-php)

This is an autogenerated PHP client for the [Docker Engine API](https://docs.docker.com/engine/api/), built using the [Jane](https://jane.readthedocs.io/en/latest/) generator.

It aims to replace the abandoned [docker-php/docker-php](https://packagist.org/packages/docker-php/docker-php) package.

Usage
-----

[](#usage)

Pass a configured [PSR-18](https://www.php-fig.org/psr/psr-18/) HTTP client to the main entry point. Example for a local Docker instance running on a Unix-like OS, using [php-http/socket-client](https://packagist.org/packages/php-http/socket-client):

```
$httpClient = new Http\Client\Socket\Client( [
    'remote_socket' => 'unix:///var/run/docker.sock'
] );
$pluginClientFactory = new \Http\Client\Common\PluginClientFactory();
$httpClient = $pluginClientFactory->createClient( $httpClient, [
    new \Http\Client\Common\Plugin\ContentLengthPlugin(),
    new \Http\Client\Common\Plugin\DecoderPlugin(),
    new \Http\Client\Common\Plugin\AddHostPlugin( new \GuzzleHttp\Psr7\Uri( 'http://localhost' ) )
] );

$docker = Docker\Api\Client::create( $httpClient );
```

Updating the code
-----------------

[](#updating-the-code)

Fetch the new OpenAPI specification YAML from [Docker API docs](https://docs.docker.com/engine/api/v1.40/) and run `composer generate`.

License
-------

[](#license)

Copyright 2020 Fandom, Inc.

Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at

Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License.

###  Health Score

26

—

LowBetter than 40% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity28

Limited adoption so far

Community13

Small or concentrated contributor base

Maturity37

Early-stage or recently created project

 Bus Factor1

Top contributor holds 66.7% 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://avatars.githubusercontent.com/u/248632?v=4)[Alexia](/maintainers/Alexia)[@Alexia](https://github.com/Alexia)

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

---

Top Contributors

[![mszabo-wikia](https://avatars.githubusercontent.com/u/2721291?v=4)](https://github.com/mszabo-wikia "mszabo-wikia (6 commits)")[![Alexia](https://avatars.githubusercontent.com/u/248632?v=4)](https://github.com/Alexia "Alexia (3 commits)")

### Embed Badge

![Health badge](/badges/fandom-docker-php/health.svg)

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

###  Alternatives

[exsyst/swagger

A php library to manipulate Swagger specifications

35816.5M7](/packages/exsyst-swagger)[lucasdotvin/laravel-soulbscription

A straightforward interface to handle subscriptions and features consumption.

709209.3k](/packages/lucasdotvin-laravel-soulbscription)[pimax/fb-messenger-php

Facebook Messenger Bot PHP API

313188.5k2](/packages/pimax-fb-messenger-php)

PHPackages © 2026

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