apolinux / curl
simple curl library
v0.7.6
2023-10-18 15:27 UTC
Requires
- php: >=7.4
Requires (Dev)
- phpunit/phpunit: 9.*
README
manage some HTTP methods to make requests using curl library in PHP.
Instalation
compose require apolinux/curl
Examples
<?php
$curl = new Curl();
$payload = ['fin' => 'this is a test','bla' => 'no more'] ;
$response = $curl->postJson('https://httpbin.org',$payload);
print($response->response->toJson());
// prints:
// Array
// (
// [fin] => this is a test
// [bla] => no more
// )