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
- Provide language hints for bash commands & composer.json instructions
- Format install instructions as a list
- Wrap lines that exceeds 120 chars
- Add links to code when appropriate
- And more!
Add the following to your require block in composer.json config. Note: be careful when using the `dev-master` tag as this may have unexpected results depending on your version of Gitlab. See the Versioning section below for more information.
17
+
2. Add the following to your require block in composer.json config.
18
18
19
-
```
20
-
"m4tthumphrey/php-gitlab-api": "dev-master"
21
-
```
19
+
> Note: be careful when using the `dev-master` tag as this may have unexpected results depending on your version of
20
+
Gitlab. See the Versioning section below for more information.
From the 6.0 stable release of Gitlab, I shall now be matching the client version with the Gitlab version. For example when Gitlab 6.1 is released I will release version 6.1.0 of the API client. If I need to make future updates to the client before the next API version is released. I will simply use a 3th build version. For example `6.1.1`, `6.1.2` etc. It is recommended that you keep your composer file up to date depending on what version of Gitlab you are currently running. So if you are using 6.0, you should required `6.0.*`; 6.1 should be `6.1.*` etc etc.
35
+
From the 6.0 stable release of Gitlab, I shall now be matching the client version with the Gitlab version. For example
36
+
when Gitlab 6.1 is released I will release version 6.1.0 of the API client. If I need to make future updates to the client
37
+
before the next API version is released, I'll simply use a 3rd build version - `6.1.1`, `6.1.2` etc for example.
38
+
39
+
It is recommended that you keep your composer file in sync with whatever version of Gitlab you are currently running:
40
+
if you are using 6.0, you should require `6.0.*`; 6.1 should be `6.1.*`...
34
41
35
42
General API Usage
36
43
-----------------
37
44
38
45
```php
39
-
$client = new \Gitlab\Client('http://git.yourdomain.com/api/v3/'); // change here
46
+
$client = new \Gitlab\Client('http://git.yourdomain.com/api/v3/');// change here
40
47
$client->authenticate('your_gitlab_token_here', \Gitlab\Client::AUTH_URL_TOKEN); // change here
If you have integrated GitLab into a popular PHP framework let us know!
92
+
If you have integrated GitLab into a popular PHP framework, let us know!
94
93
95
94
Contributing
96
95
------------
97
96
98
-
There are many parts of Gitlab that I have not added to this as it was originally created for personal use, hence the lack of tests. Feel free to fork and add new functionality and tests, I'll gladly accept decent pull requests.
97
+
There are many parts of Gitlab that I have not added to this as it was originally created for personal use, hence the
98
+
lack of tests. Feel free to fork and add new functionality and tests, I'll gladly accept decent pull requests.
0 commit comments