prophp/packagist-api

v0.0.3 2023-01-29 21:00 UTC

This package is not auto-updated.

Last update: 2024-05-21 02:01:46 UTC


README

NB! Excluded from the vendor package

docker/run

Use docker/stop-all if required

◦ Usage

▸ Terminal

bin/create-package <username> <repository url>
bin/create-package prophp https://gitlab.com/prophp/packagist-api.git

▸ Code

use ProPhp\PackagistApi\ApiClient;

$username = 'prophp';
$apiToken = 'a-valid-token-here';
$repoUrl = 'https://gitlab.com/prophp/packagist-api.git';

(new ApiClient($username, $apiToken))->createPackage($repoUrl);