Description
The GitLab PHP API Client is a PHP library for the GitLab API v4. It is built on the design of php-github-api from KnpLabs, and the README places it alongside similar clients for Bitbucket and GitHub. This version supports PHP 8.1 to 8.5 and is installed with Composer. Because it uses PSR-7, PSR-17, PSR-18 and HTTPlug, it is not tied to one HTTP client: you also install a package that provides the psr/http-client and psr/http-factory implementations you want. The README includes Laravel and Symfony integration instructions, and the framework integrations themselves come from other authors. Usage examples cover general API calls, connecting to a self-hosted GitLab instance, paging through results with a pager, and customizing the HTTP client through a builder, for example to set the user agent. Contributions are welcome under the project's code of conduct, and security issues should be reported by email as the security policy describes. The project is open source and hosted on GitHub.…
Highlights
- GitLab API v4 client for PHP 8.1 to 8.5
- Installs with Composer
- PSR-7, PSR-18 and HTTPlug based, so the HTTP client is swappable
- Laravel and Symfony integration instructions
- Support for self-hosted GitLab
Ratings & Reviews
No ratings yet
Be the first to rate Client.
People also visit
Client FAQ
What is the GitLab PHP API Client?
A PHP library for calling the GitLab API v4 from your own code.
Which PHP versions does it support?
This version supports PHP 8.1 to 8.5.
How do I install it?
Require the project with Composer, and install a package that provides the PSR HTTP client and factory implementations you want to use.
Does it work with self-hosted GitLab?
Yes. The README has an example for connecting to a self-hosted GitLab instance.
Are there Laravel and Symfony versions?
The README gives instructions for both frameworks. The integration packages are maintained by other authors and linked from the README.
What are the best Client alternatives?
Popular alternatives to Client include Client, Pricore and GitLab. See all Client alternatives






