prophp / packagist-api
v0.0.3
2023-01-29 21:00 UTC
Requires
- prophp/curl: ^0.0.1
Requires (Dev)
- prophp/docker-bridge: ^0.0.1
- prophp/executable-php: ^0.0.4
This package is not auto-updated.
Last update: 2024-10-22 04:11:09 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);