1. Go to this page and download the library: Download nurmuhammet/php-file 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/ */
nurmuhammet / php-file example snippets
use Nurmuhammet\File;
# Available methods, see example.php for examples.
File::exists('/path/to/file');
File::size('/path/to/file');
File::name('/path/to/file');
File::extension('/path/to/file');
File::delete('/path/to/file');
File::lastUpdated('/path/to/file');
File::get('/path/to/file');
File::put('/path/to/file', 'Content');
File::append('/path/to/file', 'Content');
File::truncate('/path/to/file');
File::copy('/path/to/file', '/path');
File::move('/path/to/file', '/path');
File::rename('/path/to/file', 'name');
File::download('/path/to/file', 'dir');
File::upload('/path/to/file', 'dir');
Loading please wait ...
Before you can download the PHP files, the dependencies should be resolved. This can take some minutes. Please be patient.