Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/sagnikrivud/php-folderaspire
Php dependency library to make Dynamic folder strategy using single method.
https://github.com/sagnikrivud/php-folderaspire
composer directory-listing php wordpress
Last synced: about 2 months ago
JSON representation
Php dependency library to make Dynamic folder strategy using single method.
- Host: GitHub
- URL: https://github.com/sagnikrivud/php-folderaspire
- Owner: sagnikrivud
- License: mit
- Created: 2024-02-12T10:18:51.000Z (11 months ago)
- Default Branch: master
- Last Pushed: 2024-02-28T07:12:59.000Z (10 months ago)
- Last Synced: 2024-08-20T15:21:26.413Z (5 months ago)
- Topics: composer, directory-listing, php, wordpress
- Language: PHP
- Homepage:
- Size: 77.1 KB
- Stars: 2
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE.md
Awesome Lists containing this project
README
# PHP Directory & File Manager
> Automating folder generation in PHP can be done using the mkdir() function, which is used to create directories. Here's a brief example of how you can automatically generate folders:
- Custom PHP
- Wordpress
- Laravel (10.0 or Higher)# Versions and compatibility
- [Php 8.0]() or higher is required
- [Apache 2]()
- [Composer 2.0]()## Status
### Under Development## Installation
>Please follow this steps, and also refer the code blocks for ths setup using php dependency manager (composer).
Open terminal and run this command, but this is need to remember that the user file or folder write permission should be given under same group, like user: sudo and group: www-data>in composer.json under require you can directly write "sagnikrivud/php-folderaspire" under require and run:
```sh
$ composer install
```
OR>You can directly run from terminal
```sh
$ composer require sagnikrivud/php-folderaspire
```Use the Service Provider class at PHP file after auto loading configuration:
```php
require __DIR__ . '/vendor/autoload.php';
```
```php
use Sagnikd\FolderAspire\Classes\Folder;
```
```php
$manageFolder = new Folder();
```
> create a folder with permission
```php
$manageFolder->createDirectory('path/to/directory_name', 775); //Return true/false
```
> Import directory from an existing parent directory
```php
$manageFolder->importDirectory('source/dir','destination/dir');
```> Get proper location or Path of a Folder or File
```php
$manageFolder->getFolderLocation('folderName/fileName'); //Return "/FolderAspire/Config/Label.php"
```> Get a Namespace of Class or Service provider
```php
$manageFolder->recoverNamespace(null,'path/to/class_file'); //Return "App\Http\Controllers"
```
> Lock a directory
```php
$manageFolder->lockDirectory('folder', 'path/to/folder'); //Return true/false
```
> Remove folder or File
```php
$manageFolder->removeFileOrDirectory('patha/to/file_or_direcory_name'); // Return true/false
```> Base/root directory
```php
'Base' => env('BASE_ROOT', __DIR__),
```---
## 💻 Tech Stack
![CSS3](https://img.shields.io/badge/css3-%231572B6.svg?style=plastic&logo=css3&logoColor=white) ![PHP](https://img.shields.io/badge/php-%23777BB4.svg?style=plastic&logo=php&logoColor=white) ![HTML5](https://img.shields.io/badge/html5-%23E34F26.svg?style=plastic&logo=html5&logoColor=white) ![JavaScript](https://img.shields.io/badge/javascript-%23323330.svg?style=plastic&logo=javascript&logoColor=%23F7DF1E) ![AWS](https://img.shields.io/badge/AWS-%23FF9900.svg?style=plastic&logo=amazon-aws&logoColor=white) ![Vue.js](https://img.shields.io/badge/vuejs-%2335495e.svg?style=plastic&logo=vuedotjs&logoColor=%234FC08D) ![Vuetify](https://img.shields.io/badge/Vuetify-1867C0?style=plastic&logo=vuetify&logoColor=AEDDFF) ![NPM](https://img.shields.io/badge/NPM-%23000000.svg?style=plastic&logo=npm&logoColor=white) ![jQuery](https://img.shields.io/badge/jquery-%230769AD.svg?style=plastic&logo=jquery&logoColor=white) ![Express.js](https://img.shields.io/badge/express.js-%23404d59.svg?style=plastic&logo=express&logoColor=%2361DAFB) ![Laravel](https://img.shields.io/badge/laravel-%23FF2D20.svg?style=plastic&logo=laravel&logoColor=white) ![NuxtJS](https://img.shields.io/badge/Nuxt-black?style=plastic&logo=nuxt.js&logoColor=white) ![Socket.io](https://img.shields.io/badge/Socket.io-black?style=plastic&logo=socket.io&badgeColor=010101) ![Apache](https://img.shields.io/badge/apache-%23D42029.svg?style=plastic&logo=apache&logoColor=white) ![MariaDB](https://img.shields.io/badge/MariaDB-003545?style=plastic&logo=mariadb&logoColor=white) ![MongoDB](https://img.shields.io/badge/MongoDB-%234ea94b.svg?style=plastic&logo=mongodb&logoColor=white) ![MySQL](https://img.shields.io/badge/mysql-%2300f.svg?style=plastic&logo=mysql&logoColor=white) ![SQLite](https://img.shields.io/badge/sqlite-%2307405e.svg?style=plastic&logo=sqlite&logoColor=white) ![Inkscape](https://img.shields.io/badge/Inkscape-e0e0e0?style=plastic&logo=inkscape&logoColor=080A13) ![Jira](https://img.shields.io/badge/jira-%230A0FFF.svg?style=plastic&logo=jira&logoColor=white) ![Vagrant](https://img.shields.io/badge/vagrant-%231563FF.svg?style=plastic&logo=vagrant&logoColor=white)
![Shell](https://img.shields.io/badge/shell-%231563FF.svg?style=plastic&logo=shell&logoColor=white) ![Cakephp](https://img.shields.io/badge/cakephp-%23FF2D20.svg?style=plastic&logo=cakephp&logoColor=white) ![Arduino](https://img.shields.io/badge/arduino-%231563FF.svg?style=plastic&logo=arduino&logoColor=white) ![C++](https://img.shields.io/badge/c++-%231563FF.svg?style=plastic&logo=cplusplus&logoColor=white) ![MsSQLServer](https://img.shields.io/badge/mssql-%23FF2D20.svg?style=plastic&logo=microsoft-sql-server&logoColor=white) ![CodeIgniter](https://img.shields.io/badge/CodeIgniter-%23FF2D20.svg?style=plastic&logo=codeigniter&logoColor=white) ![Lumen](https://img.shields.io/badge/Lumen-%23FF2D20.svg?style=plastic&logo=lumen&logoColor=white) ![Node.js](https://img.shields.io/badge/Node.js-%2343853D.svg?style=plastic&logo=node.js&logoColor=white)