Skip to content

Commit 401c2fa

Browse files
authored
Merge pull request #266 from Art4/release-1-8-0
Release 1.8.0
2 parents 8eda134 + 47e5c52 commit 401c2fa

File tree

2 files changed

+11
-7
lines changed

2 files changed

+11
-7
lines changed

CHANGELOG.md

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,9 @@ All notable changes to this project will be documented in this file.
55
The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/),
66
and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html).
77

8-
## [Unreleased](https://github.com/kbsali/php-redmine-api/compare/v1.7.0...master)
8+
## [Unreleased](https://github.com/kbsali/php-redmine-api/compare/v1.8.0...master)
9+
10+
## [v1.8.0](https://github.com/kbsali/php-redmine-api/compare/v1.7.0...v1.8.0) - 2021-04-19
911

1012
### Added
1113

README.md

Lines changed: 8 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -183,29 +183,31 @@ require_once 'vendor/autoload.php';
183183

184184
> :bulb: For security reason it is recommended that you use an ApiKey rather than your username/password.
185185
186-
After you instantiate a client you can set some optional settings.
186+
##### cURL configuration
187+
188+
After you instantiate a client you can set some optional `cURL` settings.
187189

188190
```diff
189191
<?php
190192

191193
require_once 'vendor/autoload.php';
192194

193195
// Instantiate with ApiKey
194-
$client = new Redmine\Client('https://redmine.example.com', '1234567890abcdfgh');
196+
$client = new Redmine\Client\NativeCurlClient('https://redmine.example.com', '1234567890abcdfgh');
195197
+
196198
+// [OPTIONAL] if you want to check the servers' SSL certificate on Curl call
197-
+$client->setCheckSslCertificate(true);
199+
+$client->setCurlOption(CURLOPT_SSL_VERIFYPEER, true);
198200
+
199201
+// [OPTIONAL] set the port (it will try to guess it from the url)
200-
+$client->setPort(8080);
202+
+$client->setCurlOption(CURLOPT_PORT, 8080);
201203
+
202204
+// [OPTIONAL] set a custom host
203-
+$client->setCustomHost('https://localhost:8080');
205+
+$client->setCurlOption(CURLOPT_HTTPHEADER, ['Host: http://custom.example.com']);
204206

205207
```
206208
#### 2. Psr-18 compatible Client `Redmine\Client\Psr18Client`
207209

208-
> :bulb: This client was introduced in `v1.7.0` of this library. If you are using the old `Redmine\Client` please [follow this migration guide](docs/migrate-to-psr18client.md).
210+
> :bulb: This client was introduced in `v1.7.0` of this library. If you are using the old `Redmine\Client` please [follow this migration guide](docs/migrate-to-psr18client.md).
209211
210212
The `Psr18Client` requires
211213

0 commit comments

Comments
 (0)