PHP code example of opensourcediva / zzcurl
1. Go to this page and download the library: Download opensourcediva/zzcurl 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/ */
opensourcediva / zzcurl example snippets
lity\Data;
use Utility\Post;
try {
$data = new Data([
'test_field' => 'test data',
'test_field_2' => 'test data 2'
]);
$post = new Post('http://www.webomg.com');
$post->setData($data);
$response = $post->send(); // Returns true if successful
} catch(Exception $exception) {
echo $exception->getMessage();
}