https://github.com/bkuhl/dockerhub-api-php-sdk
A PHP SDK for interacting with Dockerhub
https://github.com/bkuhl/dockerhub-api-php-sdk
Last synced: 5 months ago
JSON representation
A PHP SDK for interacting with Dockerhub
- Host: GitHub
- URL: https://github.com/bkuhl/dockerhub-api-php-sdk
- Owner: bkuhl
- Created: 2017-05-21T20:04:10.000Z (about 8 years ago)
- Default Branch: master
- Last Pushed: 2017-05-22T14:13:53.000Z (about 8 years ago)
- Last Synced: 2024-12-27T13:09:16.474Z (7 months ago)
- Language: PHP
- Size: 11.7 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# DockerHub-API-PHP-SDK [](https://packagist.org/packages/bkuhl/dockerhub-api-php-sdk) [](https://packagist.org/packages/bkuhl/dockerhub-api-php-sdk) [](https://coveralls.io/github/bkuhl/dockerhub-api-php-sdk)
A PHP SDK for integrating with DockerHub's API v2.
* [Installation](#installation)
* [Usage](#usage)
* [Organizations](#organizations)
* [Repositories](#repositories)# Installation
```
composer require bkuhl/dockerhub-api-php-sdk
```# Usage
```
$dockerhub = new \DockerHub\DockerHub($username, $password);
```## Organizations
List all repositories in an organization
```
$dockerhub->repositories($organization);
```## Repositories
Delete a repository.
```
$dockerhub->repository('[namespace]/[name]')->delete(); // bool
```List the tags associated with a repository.
```
$dockerhub->repository('[namespace]/[name]')->tags();
```