Skip to content

Commit 0ec0596

Browse files
committed
- bump dependencies - added basicauth support
- bump dependencies - added basicauth support
1 parent a0a5d2f commit 0ec0596

File tree

6 files changed

+969
-1056
lines changed

6 files changed

+969
-1056
lines changed

README.md

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -18,6 +18,8 @@ $ composer require cloudplaydev/confluence-php-client
1818
## Usage
1919

2020
### Authentication
21+
22+
#### Using Personal Access Tokens
2123
```php
2224
use CloudPlayDev\ConfluenceClient\ConfluenceClient;
2325

@@ -27,6 +29,17 @@ $client = new ConfluenceClient('https://url-to-conluence');
2729
//@see https://confluence.atlassian.com/enterprise/using-personal-access-tokens-1026032365.html
2830
$client->authenticate('NjU2OTA4NDI2MTY5OkBznOUO8YjaUF7KoOruZRXhILJ9');
2931
```
32+
#### Using BaseAuth
33+
```php
34+
$client = new ConfluenceClient('https://USERNAME:PASSWORD@url-to-conluence');
35+
```
36+
or
37+
```php
38+
use CloudPlayDev\ConfluenceClient\ConfluenceClient;
39+
40+
$client = new ConfluenceClient('https://url-to-conluence');
41+
$client->authenticateBasicAuth('USERNAME', 'PASSWORD');
42+
```
3043

3144
### Fetch pages, comments and attachments
3245

composer.json

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -43,20 +43,22 @@
4343
"php-http/discovery": "^1.11",
4444
"php-http/promise": "^1.0",
4545
"php-http/client-common": "^2.2",
46-
"webmozart/assert": "^1.10"
46+
"webmozart/assert": "^1.10",
47+
"php-http/message": "^1.10"
4748
},
4849
"require-dev": {
4950
"phpunit/phpunit": "^9.5.5",
5051
"phpstan/phpstan": "^1.0.0",
51-
"vimeo/psalm": "^4.8",
52+
"vimeo/psalm": "^5.1",
5253
"guzzlehttp/guzzle": "^7.2",
5354
"http-interop/http-factory-guzzle": "^1.0",
5455
"phpstan/phpstan-webmozart-assert": "^1.0.0",
5556
"phpstan/extension-installer": "^1.1"
5657
},
5758
"config": {
5859
"allow-plugins": {
59-
"phpstan/extension-installer": true
60+
"phpstan/extension-installer": true,
61+
"php-http/discovery": true
6062
}
6163
}
6264
}

0 commit comments

Comments
 (0)