Registry / http-client / m4tthumphrey-php-gitlab-api

m4tthumphrey-php-gitlab-api

JSON →
library12.1.0phppackagistunverified

GitLab API v4 client for PHP to interact with GitLab repositories and resources.

composer require m4tthumphrey/php-gitlab-api
INSTALL
IMPORT
SIG · M4TTHUMPHREY-PHP-G
M
m4tthumphrey-php-gitlab-api
http-clientphpv12.1.0
harness data pending
Install & Compatibility
Where this runs

No compatibility data collected yet for this library.

Code
Verified usage

Verified import paths — ran on the pinned version, not inferred.

Client
use Gitlab\Client;

Authenticate and list all projects from GitLab API.

<?php\nuse Gitlab\\Client;\n\n$client = new Client();\n$client->authenticate('your-access-token', Client::AUTH_HTTP_TOKEN);\n$projects = $client->projects()->all();\nprint_r($projects);
Debug
Known issues
breakingAuthentication method changed in v10.0.0 from URL token to HTTP token.
fix
Use Client::AUTH_HTTP_TOKEN instead of deprecated AUTH_URL_TOKEN.
affects: >=10.0.0
Upgrade
Version history
12.1.0latest on Packagist
Audit
Dependencies

No dependency data recorded yet.

Agent activity
16 hits · last 30 days
node
16
Resources
m4tthumphrey-php-gitlab-api — pip install m4tthumphrey-php-gitlab-api · libregistry