Download the PHP package emri99/gitlab-generic-api-client without Composer
On this page you can find all versions of the php package emri99/gitlab-generic-api-client. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Download emri99/gitlab-generic-api-client
More information about emri99/gitlab-generic-api-client
Files in emri99/gitlab-generic-api-client
Package gitlab-generic-api-client
Short Description PHP GitLab generic API client (not stick to any version)
License MIT
Homepage https://github.com/emri99/gitlab-generic-api-client
Informations about the package gitlab-generic-api-client
Gitlab-api-generic-client
This library has been built keeping in mind that Gitlab move so fast, that it becomes hard to apply changes and migration guides on complex code base.
How it works
This code is inpired by npm package gitlab-api-client.
Next lines descriptions too.
Main principle: All paths are build generically.
You aren't stick to any specific API version as you will have access to
all the gitlab API endpoints, even for those that haven't been defined yet.
Installation
Usage
Authentication
-
Authenticate using HTTP token ``
- Authenticate using OAUTH token ``
Requesting
- GET request
``
- POST request
``
- PUT request
``
- DELETE request
``
Special case
If an url segment is the same than a public method of GitlabApiClient
, this
remains possible to build to path correctly.
For example, to build path user/1/delete
, use:
IDE Completion depending on gitlab api version (optional)
Empty classes can be used to simulate code completion on retrieved object
by installing emri99/gitlab-generic-api-client-models
.
This optional package is tagged by gitlab API version.
Currently there isn't many versions handled, only the one I'm using. ie: 9.1.4
When using this package, retrieved objects WONT BE instance of models class.
Retrieved objects remainsstdclass
. This is ONLY used for IDE completion.
YOU MUST add phpdoc to use completion like below:
- GET ``
Contributing
Thanks for contributing !
Please follow this rules:
- you MUST apply supplied CS-fixer by running
composer run-script cs
- you MUST write/update the tests
- you SHOULD write documentation
- you MUST write minimum details in pull request description
Squashing many commits to avoid noise on git logs make sense too ;)