connectholland / docker-api-bundle
Docker API bundle for Symfony 4/5 projects
Installs: 1
Dependents: 0
Suggesters: 0
Security: 0
Stars: 0
Watchers: 3
Forks: 0
Open Issues: 0
Type:symfony-bundle
Requires
- php: ^7.3
- jane-php/open-api-runtime: ^6.0
- php-http/httplug-bundle: ^1.18
- symfony/config: ^4.3 || ^5.0
- symfony/dependency-injection: ^4.3 || ^5.0
- symfony/framework-bundle: ^4.3 || ^5.0
- symfony/http-kernel: ^4.3 || ^5.0
- symfony/translation-contracts: ^2.1
Requires (Dev)
- ergebnis/composer-normalize: ^2.0.1
- friendsofphp/php-cs-fixer: ^2.15
- icanhazstring/composer-unused: ^0.5.6
- jane-php/open-api-3: ^6.0
- maglnet/composer-require-checker: ^2.0
- nyholm/psr7: ^1.3
- nyholm/symfony-bundle-test: ^1.6
- phpstan/phpstan: ^0.11.16
- phpunit/phpunit: ^8.3
- sensiolabs/security-checker: ^6.0
- symfony/var-dumper: ^4.3 || ^5.0
This package is auto-updated.
Last update: 2023-06-13 17:29:16 UTC
README
Docker API bundle to connect to hub.docker.com/v2/ and registry-1.docker.io/v2/ for Symfony 4/5 projects
Incomplete warning
The API support is currently incomplete, see contributing for info on how to help make the API support complete.
Installation
composer require connectholland/docker-api-bundle
Environment
Set the environment variables to authenticate
DOCKER_API_USERNAME=example@example.com DOCKER_API_TOKEN=token
Usage
Autowire the client, e.g.:
<?php declare(strict_types=1); namespace App; use ConnectHolland\DockerApiBundle\Api\Client; class SomeService { private Client $client; public function __construct(Client $client) { $this->client = $client; } public function someMethod() { $query = 'connectholland'; $this->client->findRepositories($query); } }