PHPackages                             omarabdulwahhab/filemanager - PHPackages - PHPackages  [Skip to content](#main-content)[PHPackages](/)[Directory](/)[Categories](/categories)[Trending](/trending)[Leaderboard](/leaderboard)[Changelog](/changelog)[Analyze](/analyze)[Collections](/collections)[Log in](/login)[Sign up](/register)

1. [Directory](/)
2. /
3. omarabdulwahhab/filemanager

ActiveLibrary

omarabdulwahhab/filemanager
===========================

A simple software package designed to streamline the management of application files, offering efficient storage, deletion, and file handling capabilities.

v1.0.1(1y ago)19MITPHP

Since Mar 12Pushed 1y ago1 watchersCompare

[ Source](https://github.com/OmarAbdelwahhab30/FileManager)[ Packagist](https://packagist.org/packages/omarabdulwahhab/filemanager)[ RSS](/packages/omarabdulwahhab-filemanager/feed)WikiDiscussions main Synced 1mo ago

READMEChangelog (1)Dependencies (2)Versions (2)Used By (0)

FileManager
===========

[](#filemanager)

FileManager Package
===================

[](#filemanager-package)

**A simple software package designed to streamline the management of application files, deletion, and file handling capabilities.**

[![License](https://camo.githubusercontent.com/7013272bd27ece47364536a221edb554cd69683b68a46fc0ee96881174c4214c/68747470733a2f2f696d672e736869656c64732e696f2f62616467652f6c6963656e73652d4d49542d626c75652e737667)](LICENSE)

Table of Contents
-----------------

[](#table-of-contents)

- [Installation](#installation)
- [Usage](#usage)
    - [Storing Files](#storing-files)
    - [Deleting Files](#deleting-files)
- [Contributing](#contributing)
- [License](#license)

Installation
------------

[](#installation)

You can install this package via Composer:

```
composer require omarabdulwahhab/filemanager
```

Usage
-----

[](#usage)

#### I will explain all package usages using some examples.

[](#i-will-explain-all-package-usages-using-some-examples)

Storing Files
-------------

[](#storing-files)

**Example 1**

```
/*
* This code returns the name of the stored file.
*/
return FileManager::trigger()
            ->setVisible(true)
            ->store($request->file("file"))
```

- 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**

```
/*
* This code returns the name of the stored file.
*/
return FileManager::trigger()
            ->setVisible(false)
            ->store($request->file("file"))
```

> A symbolic link in laravel is making a copy of storage folder inside public folder to be visible, read laravel [docs](https://laravel.com/docs/9.x/filesystem#the-public-disk)

---

**Example 3**

- You may need to do the same as above but with creating sub-folders

```
/*
* This code returns the name of the stored file.
*/
return FileManager::trigger()
            ->setVisible(false)
            ->storeToFileDirectory($request->file("file"),"FirstSubFolder/SecondSubFolder");
```

---

Deleting Files
--------------

[](#deleting-files)

**Example 4**

```
/*
* This code returns boolean value
*/
FileManager::trigger()
            ->deleteFileFromPublicPath($request->file_name)
```

- 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**

```
/*
* This code returns boolean value
*/
FileManager::trigger()
            ->deleteFileFromPublicPath($request->file_name,"FirstSubFolder/SecondSubFolder")
```

---

**Example 6**

```
/*
* This code returns boolean value
*/
FileManager::trigger()
            ->deleteFileFromStoragePath($request->file_name)
```

- - 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**

```
/*
* This code returns boolean value
*/
FileManager::trigger()
            ->deleteFileFromStoragePath($request->file_name,"FirstSubFolder/SecondSubFolder")
```

Contributing
------------

[](#contributing)

We welcome contributions from the community! If you'd like to contribute to this project, please follow these guidelines:

1. **Fork** the repository on GitHub.
2. Create a new branch for your feature or bug fix: `git checkout -b feature/awesome-feature`.
3. Make your changes and commit them: `git commit -am 'Add some feature'`.
4. Push your changes to the branch: `git push origin feature/awesome-feature`.
5. 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
-------

[](#license)

This project is licensed under the MIT License.

Author
------

[](#author)

- [OmarAbdulwahhab](https://github.com/OmarAbdelwahhab30)

Your support and contributions are greatly appreciated!

###  Health Score

26

—

LowBetter than 43% of packages

Maintenance45

Moderate activity, may be stable

Popularity6

Limited adoption so far

Community9

Small or concentrated contributor base

Maturity37

Early-stage or recently created project

 Bus Factor1

Top contributor holds 75% of commits — single point of failure

How is this calculated?**Maintenance (25%)** — Last commit recency, latest release date, and issue-to-star ratio. Uses a 2-year decay window.

**Popularity (30%)** — Total and monthly downloads, GitHub stars, and forks. Logarithmic scaling prevents top-heavy scores.

**Community (15%)** — Contributors, dependents, forks, watchers, and maintainers. Measures real ecosystem engagement.

**Maturity (30%)** — Project age, version count, PHP version support, and release stability.

###  Release Activity

Cadence

Unknown

Total

1

Last Release

425d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/71d0806f046c7a1ac7ee2194809143c12a297f865e131114db52f9242c1bee33?d=identicon)[OmarAbdelwahhab30](/maintainers/OmarAbdelwahhab30)

---

Top Contributors

[![OmarAbdelwahhab30](https://avatars.githubusercontent.com/u/99689683?v=4)](https://github.com/OmarAbdelwahhab30 "OmarAbdelwahhab30 (12 commits)")[![omarkishk](https://avatars.githubusercontent.com/u/125604976?v=4)](https://github.com/omarkishk "omarkishk (4 commits)")

###  Code Quality

TestsPHPUnit

### Embed Badge

![Health badge](/badges/omarabdulwahhab-filemanager/health.svg)

```
[![Health](https://phpackages.com/badges/omarabdulwahhab-filemanager/health.svg)](https://phpackages.com/packages/omarabdulwahhab-filemanager)
```

PHPackages © 2026

[Directory](/)[Categories](/categories)[Trending](/trending)[Changelog](/changelog)[Analyze](/analyze)
