1. Go to this page and download the library: Download sun/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/ */
sun / filesystem example snippets
$filesystem = new Sun\Filesystem;
$filesystem->create(__DIR__.'/filename.txt', 'content');
$filesystem->delete(__DIR__.'/filename.txt');
$filesystem->update(__DIR__.'/filename.txt', ' more content');