1. Go to this page and download the library: Download canaryphp/canaryphpfile 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/ */
canaryphp / canaryphpfile example snippets
$canary = new \CanaryPHPFile\Canary();
$canary->file(__DIR__.DS.'text.txt')->setNewName('new_name.txt')
->setNewDir(__DIR__.DS.'move_to')
->copy();
$canary = new \CanaryPHPFile\Canary();
$canary->file(__DIR__.DS.'text.txt')->setNewName('new_name.txt')
->setNewDir(__DIR__.DS.'move_to')
->move();