PHP code example of sagnikrivud / php-folderaspire

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

    

sagnikrivud / php-folderaspire example snippets




use  Sagnikd\FolderAspire\Classes\Folder;

$manageFolder = new Folder();

$manageFolder->createDirectory('path/to/directory_name', 775); //Return true/false

$manageFolder->importDirectory('source/dir','destination/dir');

$manageFolder->getFolderLocation('folderName/fileName'); //Return "/FolderAspire/Config/Label.php"

$manageFolder->recoverNamespace(null,'path/to/class_file'); //Return "App\Http\Controllers"

$manageFolder->lockDirectory('folder', 'path/to/folder'); //Return true/false

$manageFolder->removeFileOrDirectory('patha/to/file_or_direcory_name'); // Return true/false

'Base' => env('BASE_ROOT', __DIR__),