You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
This is strongly based on [php-github-api](https://github.com/KnpLabs/php-github-api) by [KnpLabs](https://github.com/KnpLabs). With this in mind, we now have **very similar** clients for:
14
16
15
17
*[Bitbucket](https://bitbucket.org/) - [bitbucket/client](https://packagist.org/packages/bitbucket/client) by [Graham Campbell](https://github.com/GrahamCampbell).
16
18
*[GitHub](https://github.com/) - [knplabs/github-api](https://packagist.org/packages/knplabs/github-api) by [KnpLabs](https://github.com/KnpLabs/php-github-api).
17
19
*[GitLab](https://gitlab.com/) - [m4tthumphrey/php-gitlab-api](https://packagist.org/packages/m4tthumphrey/php-gitlab-api) which is this package!
18
20
19
-
Installation
20
-
------------
21
+
Feel free to check out the [change log](CHANGELOG.md), [releases](https://github.com/GitLabPHP/Client/releases), [security policy](https://github.com/GitLabPHP/Client/security/policy), [license](LICENSE), [code of conduct](.github/CODE_OF_CONDUCT.md), and [contribution guidelines](.github/CONTRIBUTING.md).
22
+
23
+
24
+
## Installation
21
25
22
26
This version supports [PHP](https://php.net) 5.6-7.4. To get started, simply require the project using [Composer](https://getcomposer.org). You will also need to install any package that "provides" [`php-http/client-implementation`](https://packagist.org/providers/php-http/client-implementation).
We are decoupled from any HTTP messaging client with help by [HTTPlug](http://httplug.io). You can visit [HTTPlug for library users](https://docs.php-http.org/en/latest/httplug/users.html) to get more information about installing HTTPlug related packages. [graham-campbell/gitlab](https://github.com/GrahamCampbell/Laravel-GitLab) is by [Graham Campbell](https://github.com/GrahamCampbell) and [zeichen32/gitlabapibundle](https://github.com/Zeichen32/GitLabApiBundle) is by [Jens Averkamp](https://github.com/Zeichen32).
You can also use the library in an object oriented manner:
84
85
@@ -106,8 +107,7 @@ $issue = $project->createIssue('This does not work.', [
106
107
$issue->close();
107
108
```
108
109
109
-
The HTTP Client Builder
110
-
-----------------------
110
+
## HTTP Client Builder
111
111
112
112
By providing a `Gitlab\HttpClient\Builder` to the `Gitlab\Client` constructor, you can customize the HTTP client. For example, to customize the user agent:
113
113
@@ -124,8 +124,8 @@ $client = new Gitlab\Client($builder);
124
124
125
125
One can read more about HTTPlug plugins [here](https://docs.php-http.org/en/latest/plugins/introduction.html#how-it-works). Take a look around ([API methods](https://github.com/GitLabPHP/Client/tree/9.18/lib/Gitlab/Api), [models](https://github.com/GitLabPHP/Client/tree/9.18/lib/Gitlab/Model)) and please feel free to report any bugs, noting our [code of conduct](.github/CODE_OF_CONDUCT.md).
126
126
127
-
Contributing
128
-
------------
127
+
128
+
## Contributing
129
129
130
130
Not all endpoints of the API are implemented yet. We will gladly review and accept pull requests, in accordance with our [contribution guidelines](.github/CONTRIBUTING.md)!
131
131
@@ -134,12 +134,12 @@ $ make install
134
134
$ make test
135
135
```
136
136
137
-
Security
138
-
--------
137
+
138
+
## Security
139
139
140
140
If you discover a security vulnerability within this package, please send an email to Graham Campbell at [email protected] or Miguel Piedrafita at [email protected]. All security vulnerabilities will be promptly addressed. You may view our full security policy [here](https://github.com/GitLabPHP/Client/security/policy).
141
141
142
-
License
143
-
-------
144
142
145
-
PHP GitLab API is licensed under [The MIT License (MIT)](LICENSE).
143
+
## License
144
+
145
+
GitLab PHP API Client is licensed under [The MIT License (MIT)](LICENSE).
0 commit comments