prophp/packagist-api

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

This package is not auto-updated.

Last update: 2024-09-24 03:38:58 UTC


README

注意! 已从 vendor 包中排除

docker/run

如有需要,请使用 docker/stop-all

◦ 用法

▸ 终端

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

▸ 代码

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