1. Go to this page and download the library: Download weblabnl/curl library. Choose the download type require.
2. Extract the ZIP file and open the index.php.
3. Add this code to the index.php.
<?php
require_once('vendor/autoload.php');
/* Start to develop here. Best regards https://php-download.com/ */
weblabnl / curl example snippets
$params = [
first_name => 'Ankie',
last_name => 'Visser'
];
$url = 'https://api.weblab.nl/users';
$result = Weblab\CURL\CURL::setBearer('some_access_token')
->post($url, $params);
if ($result->getStatus() === 201) {
// User created
}