Skip to content

Commit bb8e7d1

Browse files
Merge branch '9.19' into 10.0
2 parents 723504c + 0ff0516 commit bb8e7d1

File tree

4 files changed

+16
-106
lines changed

4 files changed

+16
-106
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: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -4,13 +4,13 @@ CHANGE LOG
44

55
## 10.0.0 (Upcoming)
66

7-
* Encode URIs according to RFC 3986
8-
* Send request bodies as JSON to GitLab
97
* Removed all deprecated functionality
108
* Switched to PSR-17 and PSR-18
9+
* Encode URIs according to RFC 3986
10+
* Send request bodies as JSON to GitLab
1111

1212

13-
## 9.18.0 (Upcoming)
13+
## 9.18.0 (11/07/2020)
1414

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

README.md

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

2626
This version supports [PHP](https://php.net) 7.1-7.4. To get started, simply require the project using [Composer](https://getcomposer.org). You will also need to install packages that "provide" [`psr/http-client-implementation`](https://packagist.org/providers/psr/http-client-implementation) and [`psr/http-factory-implementation`](https://packagist.org/providers/psr/http-factory-implementation).
2727

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

3032
```
3133
$ composer require m4tthumphrey/php-gitlab-api:^10.0 php-http/guzzle6-adapter:^2.0.1 http-interop/http-factory-guzzle:^1.0
3234
```
3335

34-
### PHP 7.2+:
36+
#### PHP 7.2+:
3537

3638
```
3739
$ composer require m4tthumphrey/php-gitlab-api:^10.0 guzzlehttp/guzzle:^7.0.1 http-interop/http-factory-guzzle:^1.0
3840
```
3941

40-
### Laravel 6+:
42+
### Framework Integration
43+
44+
#### Laravel 6+:
4145

4246
```
4347
$ composer require graham-campbell/gitlab:^4.0 guzzlehttp/guzzle:^7.0.1 http-interop/http-factory-guzzle:^1.0
4448
```
4549

46-
### Symfony 4:
50+
#### Symfony 4:
4751

4852
```
4953
$ composer require zeichen32/gitlabapibundle:^5.0 symfony/http-client:^4.4 nyholm/psr7:^1.3
5054
```
5155

52-
### Symfony 5:
56+
#### Symfony 5:
5357

5458
```
5559
$ composer require zeichen32/gitlabapibundle:^5.0 symfony/http-client:^5.0 nyholm/psr7:^1.3
@@ -75,25 +79,22 @@ $project = $client->projects()->create('My Project', [
7579
]);
7680
```
7781

78-
## Self-Hosted GitLab
82+
### Self-Hosted GitLab
7983

8084
```php
8185
$client = new Gitlab\Client();
8286
$client->setUrl('https://git.yourdomain.com');
8387
$client->authenticate('your_http_token', Gitlab\Client::AUTH_HTTP_TOKEN);
8488
```
8589

86-
## Example with Pager
87-
88-
to fetch all your closed issue with pagination ( on the gitlab api )
90+
### Example with Pager
8991

9092
```php
9193
$pager = new Gitlab\ResultPager($client);
9294
$issues = $pager->fetchAll($client->issues(), 'all', [null, ['state' => 'closed']]);
93-
9495
```
9596

96-
## Model Usage
97+
### Model Usage
9798

9899
You can also use the library in an object oriented manner:
99100

@@ -117,7 +118,7 @@ $issue = $project->createIssue('This does not work.', [
117118
$issue->close();
118119
```
119120

120-
## HTTP Client Builder
121+
### HTTP Client Builder
121122

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

UPGRADE.md

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

0 commit comments

Comments
 (0)