A PHP SDK for integrating with DockerHub's API v2.
composer require bkuhl/dockerhub-api-php-sdk
$dockerhub = new \DockerHub\DockerHub($username, $password);
List all repositories in an organization
$dockerhub->repositories($organization);
Delete a repository.
$dockerhub->repository('[namespace]/[name]')->delete(); // bool
List the tags associated with a repository.
$dockerhub->repository('[namespace]/[name]')->tags();