1. Go to this page and download the library: Download datrim/http-data 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/ */
datrim / http-data example snippets
use Datrim\HttpData\HttpDataEncoder;
$data = [
'name' => 'MyData',
'value' => 'My data value'
];
$encoder = new HttpDataEncoder($data);
$encoder = new HttpDataEncoder($data, false);
$encoded Data = $encoder->data();
use Datrim\HttpData\HttpDataDecoder;
$decoder = new HttpDataDecoder($encodedData);
$decodedData = $decoder->data();
Loading please wait ...
Before you can download the PHP files, the dependencies should be resolved. This can take some minutes. Please be patient.