1. Go to this page and download the library: Download anekdotes/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/ */
anekdotes / file example snippets
use Anekdotes\File\File;
File::get($path, $default = null);
File::exists($path)
File::put($path, $contents)
File::size($path)
File::delete($path)
File::move($path, $target)
File::copy($path, $target)
#### isDirectory
Check if path is a directory.
* **$path**: path of the directory