PHP code example of mensbeam / filesystem

1. Go to this page and download the library: Download mensbeam/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/ */

    

mensbeam / filesystem example snippets


use Symfony\Component\Filesystem;
$fs = new Filesystem();
$fs->chmod('/path/to/file', 0600);

use MensBeam\Filesystem as Fs;
Fs::chmod('/path/to/file', 0600);