Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
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: 30 days 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 (over 7 years ago)
- Default Branch: master
- Last Pushed: 2017-05-22T14:13:53.000Z (over 7 years ago)
- Last Synced: 2024-11-07T06:46:24.378Z (3 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 [![Latest Stable Version](https://poser.pugx.org/bkuhl/dockerhub-api-php-sdk/v/stable.png)](https://packagist.org/packages/bkuhl/dockerhub-api-php-sdk) [![Total Downloads](https://poser.pugx.org/bkuhl/dockerhub-api-php-sdk/downloads.png)](https://packagist.org/packages/bkuhl/dockerhub-api-php-sdk) [![Coverage Status](https://coveralls.io/repos/github/bkuhl/dockerhub-api-php-sdk/badge.svg)](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();
```