faustbrian/cloudflare-php-client

This package is abandoned and no longer maintained. The author suggests using the plients/cloudflare package instead.

A CloudFlare Client for PHP

dev-master / 1.0.x-dev 2019-06-04 04:21 UTC

README

Build Status PHP from Packagist Latest Version License

Installation

Require this package, with Composer, in the root directory of your project.

$ composer require plients/cloudflare

Usage

$client = new Plients\CloudFlare\Client();
$client->setConfig(['apiKey' => 'YOUR_API_KEY']);

$response = $client->api('File')->scan('infected.rar');

dump($response);

Testing

$ phpunit

Security

If you discover a security vulnerability within this package, please send an e-mail to hello@basecode.sh. All security vulnerabilities will be promptly addressed.

Credits

License

MIT © Brian Faust