akartis / curl-plugin
There is no license information available for the latest version (dev-main) of this package.
Curl plugin
dev-main
2021-04-18 08:51 UTC
This package is auto-updated.
Last update: 2024-05-18 15:20:23 UTC
README
##GET
$curl = new CurlOperation('https://jsonplaceholder.typicode.com'); $curl->json(); $result = $curl->get('posts/1');
Result:
string(292) "{
"userId": 1,
"id": 1,
"title": "sunt aut facere repellat provident occaecati excepturi optio reprehenderit",
"body": "quia et suscipit\nsuscipit recusandae consequuntur expedita et cum\nreprehenderit molestiae ut ut quas totam\nnostrum rerum est autem sunt rem eveniet architecto"
}"