PHP code example of grinderspro / directory-manipulator
1. Go to this page and download the library: Download grinderspro/directory-manipulator 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/ */
grinderspro / directory-manipulator example snippets
use Grinderspro\DirectoryManipulator\DirectoryManipulator;
(new DirectoryManipulator())->create();
$dm = (new DirectoryManipulator())->location('/var/tmp/')->clear();
for ($i=1; $i<=10; ++$i) {
$dm->name('gm'.$i)->create();
}
(new DirectoryManipulator())->location('/var/tmp/')->name()->create();
(new DirectoryManipulator())->location('/var/tmp/')->name('grinderspro')->create();
(new DirectoryManipulator())->location('/var/tmp/grinderspro')->create();