Download the PHP package omarabdulwahhab/filemanager without Composer
On this page you can find all versions of the php package omarabdulwahhab/filemanager. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Download omarabdulwahhab/filemanager
More information about omarabdulwahhab/filemanager
Files in omarabdulwahhab/filemanager
Package filemanager
Short Description A simple software package designed to streamline the management of application files, offering efficient storage, deletion, and file handling capabilities.
License MIT
Informations about the package filemanager
# FileManager
FileManager Package
A simple software package designed to streamline the management of application files, deletion, and file handling capabilities.
Table of Contents
- Installation
- Usage
- Storing Files
- Deleting Files
- Contributing
- License
Installation
You can install this package via Composer:
Usage
I will explain all package usages using some examples.
Storing Files
Example 1
- In the previous example, you instantiate an object from the main class then you set the visibility of the file to true, so it the file passed in the store method will be stored in public folder and a symbolic link will be created automatically.
- note that the default value of the visibilty is false, so the file will be stored in storage folder like an example below.
Example 2
A symbolic link in laravel is making a copy of storage folder inside public folder to be visible, read laravel docs
Example 3
- You may need to do the same as above but with creating sub-folders
Deleting Files
Example 4
-
The deleteFileFromPublicPath function accepts two params, the first is the file name to be deleted and the second is the sub folders or path, the second parameter by default is 'storage'.
Example 5
Example 6
-
- The deleteFileFromStoragePath function accepts two params, the first is the file name to be deleted and the second is the sub folders or path, the second parameter by default is 'storage'.
Example 7
Contributing
We welcome contributions from the community! If you'd like to contribute to this project, please follow these guidelines:
- Fork the repository on GitHub.
- Create a new branch for your feature or bug fix:
git checkout -b feature/awesome-feature
. - Make your changes and commit them:
git commit -am 'Add some feature'
. - Push your changes to the branch:
git push origin feature/awesome-feature
. - Create a new Pull Request (PR) on GitHub, describing your changes and why they should be merged.
Thank you for contributing to our project!
License
This project is licensed under the MIT License.
Author
Your support and contributions are greatly appreciated!