There is no license information available for the latest version (v1.0.1) of this package.

Allows you to easily send post data.

v1.0.1 2015-01-07 18:20 UTC

This package is not auto-updated.

Last update: 2024-04-23 00:49:40 UTC


README

Allows you to easily send post data.

Example

<?php

require 'vendor/autoload.php';

use Utility\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();
}