Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Make Guzzle optionnal #221

Open
wants to merge 2 commits into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 5 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -34,6 +34,11 @@ Note that this repository is currently under development, additional classes and

## Getting Started

If you wish to use Guzzle as your Http Client, you may be required to install it via composer, or you can code you own adapter for any Http Client you may use in your project.
```bash
composer require guzzlehttp/guzzle ^7.0
```
Geekimo marked this conversation as resolved.
Show resolved Hide resolved

```php
$key = new Cloudflare\API\Auth\APIKey('[email protected]', 'apiKey');
$adapter = new Cloudflare\API\Adapter\Guzzle($key);
Expand Down
4 changes: 2 additions & 2 deletions composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -3,15 +3,15 @@
"description": "PHP binding for v4 of the Cloudflare Client API.",
"type": "library",
"require": {
"guzzlehttp/guzzle": "^7.0.1",
"php": ">=7.2.5",
"psr/http-message": "~1.0",
"ext-json": "*"
},
"require-dev": {
"phpunit/phpunit": "^5.7",
"phpmd/phpmd" : "@stable",
"friendsofphp/php-cs-fixer": "^2.6"
"friendsofphp/php-cs-fixer": "^2.6",
"guzzlehttp/guzzle": "^7.0.1"
},
"license": "BSD-3-Clause",
"authors": [
Expand Down
Loading