apolinux/curl

simple curl library

v0.7.6 2023-10-18 15:27 UTC

This package is auto-updated.

Last update: 2024-04-18 16:33:14 UTC


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
// )