Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

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

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();
```