bendamqui/gitlab-php-api

Wrapper for gitLab API written in php.

This package's canonical repository appears to be gone and the package has been frozen as a result.

v1.0 2019-04-19 21:19 UTC

This package is auto-updated.

Last update: 2023-02-20 08:11:16 UTC


README

Wrapper for gitLab API written in php.

Installation

composer require bendamqui/gitlab-php-api

Container Registry API

use Bendamqui\Gitlab\Api\ContainerRegistry;
$api = ContainerRegistry::factory('PRIVATE-TOKEN');

Get project's container registry's repositories.

$repositories = $api
    ->project('project_id') 
    ->getRepositories();

Get project's container registry's repository's tags.

$tags = $api
    ->project('project_id')
    ->repository('repository_id') 
    ->getTags();

Delete project's container registry's repository's tag.

$api
    ->project('project_id')
    ->repository('repository_id')
    ->deleteTag('tag');