1. Go to this page and download the library: Download noxterr/spirit 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/ */
noxterr / spirit example snippets
use Noxterr\Spirit\Spirit;
$spirit = new Spirit();
$uploaded_file = $spirit->uploadFile($file);
use Noxterr\Spirit\Spirit;
$spirit = new Spirit();
$file = $spirit->downloadFile($file_name);
// In another class
$response = new \ClassReturn();
return $response;
/** This returns
* {
* errcode: 1 | 0,
* message: string | null (contains the error information if needed)
* data: mixed | null -> contains the data from a response
* }
*/