PHP code example of rest-full / filesystem
1. Go to this page and download the library: Download rest-full/filesystem 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/ */
rest-full / filesystem example snippets
e_once __DIR__.'/../config/pathServer.php';
use Restfull\Filesystem\File;
$file = new File(__DIR__ . '/files/ps4.txt');
$file->write('batman, dragon ball z kakarot e entre outros.');
$file->close();
e_once __DIR__.'/../config/pathServer.php';
use Restfull\Filesystem\Upload;
$upload = new Upload([$_FILE['tmp_name']],500000);
echo $upload->insert('Here the file name.');
e_once __DIR__.'/../config/pathServer.php';
use Restfull\Filesystem\Folder;
$folder = new Folder(__DIR__);
$folder->create('example');