1. Go to this page and download the library: Download ali-eltaweel/files 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/ */
ali-eltaweel / files example snippets
use Files\{ Directory, File, RegularFile };
$file = File::make('path/to/file');
$file = new RegularFile('path/to/file');
$dir = File::make('path/to/dir');
$dir = new Directory('path/to/dir');