rest-full / filesystem
They are filesystem that can add to the code.
1.0.0
2024-01-27 08:31 UTC
Requires
- php: >=7.3
- ext-curl: *
- ext-fileinfo: *
- ext-gd: *
- rest-full/container: 1.*
- rest-full/error: 1.*
This package is auto-updated.
Last update: 2024-04-27 12:14:06 UTC
README
About Rest-full Filesystem
Rest-full Filesystem is a small part of the Rest-Full framework.
You can find the application at: rest-full/app and you can also see the framework skeleton at: rest-full/rest-full.
Installation
- Download Composer or update
composer self-update
. - Run
php composer.phar require rest-full/filesystem
or composer installed globallycompser require rest-full/filesystem
or composer.json"rest-full/filesystem": "1.0.0"
and install or update.
Usage
This File
<?php
require_once __DIR__ . '/../vendor/autoload.php';
require_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();
This Upload
<?php
require_once __DIR__ . '/../vendor/autoload.php';
require_once __DIR__.'/../config/pathServer.php';
use Restfull\Filesystem\Upload;
$upload = new Upload([$_FILE['tmp_name']],500000);
echo $upload->insert('Here the file name.');
This Folder
<?php
require_once __DIR__ . '/../vendor/autoload.php';
require_once __DIR__.'/../config/pathServer.php';
use Restfull\Filesystem\Folder;
$folder = new Folder(__DIR__);
$folder->create('example');
License
The rest-full framework is open-sourced software licensed under the MIT license.