Skip to content

Commit a339ef5

Browse files
Merge branch '9.18' into 9.19
2 parents 9efe834 + aa97665 commit a339ef5

File tree

4 files changed

+25
-103
lines changed

4 files changed

+25
-103
lines changed

.gitattributes

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,4 +14,3 @@
1414
/psalm.xml export-ignore
1515
/CHANGELOG.md export-ignore
1616
/README.md export-ignore
17-
/UPGRADE.md export-ignore

CHANGELOG.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@ CHANGE LOG
22
==========
33

44

5-
## 9.18.0 (Upcoming)
5+
## 9.18.0 (11/07/2020)
66

77
* Deprecated all APIs that are deprecated or removed as of GitLab 13.1
88
* Deprecated old authentication methods and deprecated not specifying an authentication mode

README.md

Lines changed: 24 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -25,22 +25,38 @@ Check out the [change log](CHANGELOG.md), [releases](https://github.com/GitLabPH
2525

2626
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).
2727

28-
### PHP 5.6+:
28+
### Standard Installation
29+
30+
#### PHP 5.6+:
2931

3032
```
3133
$ composer require m4tthumphrey/php-gitlab-api:^9.19 php-http/guzzle6-adapter:^2.0.1
3234
```
3335

34-
### Laravel 5.5+:
36+
### Framework Integration
37+
38+
#### Laravel 5.5+:
3539

3640
```
3741
$ composer require graham-campbell/gitlab:^2.8 php-http/guzzle6-adapter:^2.0.1
3842
```
3943

40-
### Symfony 3+:
44+
#### Laravel 6+:
45+
46+
```
47+
$ composer require graham-campbell/gitlab:^3.2 php-http/guzzle6-adapter:^2.0.1
48+
```
49+
50+
#### Symfony 2.6+:
4151

4252
```
43-
$ composer require zeichen32/gitlabapibundle:^2.6 php-http/guzzle6-adapter:^2.0.1
53+
$ composer require zeichen32/gitlabapibundle:^3.1 php-http/guzzle6-adapter:^2.0.1
54+
```
55+
56+
#### Symfony 5+:
57+
58+
```
59+
$ composer require zeichen32/gitlabapibundle:^4.0 php-http/guzzle6-adapter:^2.0.1
4460
```
4561

4662
We are decoupled from any HTTP messaging client by using [PSR-7](https://www.php-fig.org/psr/psr-7/) and [HTTPlug](https://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. The framework integration [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).
@@ -63,25 +79,22 @@ $project = $client->projects()->create('My Project', [
6379
]);
6480
```
6581

66-
## Self-Hosted GitLab
82+
### Self-Hosted GitLab
6783

6884
```php
6985
$client = new Gitlab\Client();
7086
$client->setUrl('https://git.yourdomain.com');
7187
$client->authenticate('your_http_token', Gitlab\Client::AUTH_HTTP_TOKEN);
7288
```
7389

74-
## Example with Pager
75-
76-
to fetch all your closed issue with pagination ( on the gitlab api )
90+
### Example with Pager
7791

7892
```php
7993
$pager = new Gitlab\ResultPager($client);
8094
$issues = $pager->fetchAll($client->issues(), 'all', [null, ['state' => 'closed']]);
81-
8295
```
8396

84-
## Model Usage
97+
### Model Usage
8598

8699
You can also use the library in an object oriented manner:
87100

@@ -105,7 +118,7 @@ $issue = $project->createIssue('This does not work.', [
105118
$issue->close();
106119
```
107120

108-
## HTTP Client Builder
121+
### HTTP Client Builder
109122

110123
By providing a `Gitlab\HttpClient\Builder` to the `Gitlab\Client` constructor, you can customize the HTTP client. For example, to customize the user agent:
111124

UPGRADE.md

Lines changed: 0 additions & 90 deletions
This file was deleted.

0 commit comments

Comments
 (0)