PHPackages                             anekdotes/manager - 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. [File &amp; Storage](/categories/file-storage)
4. /
5. anekdotes/manager

ActiveLibrary[File &amp; Storage](/categories/file-storage)

anekdotes/manager
=================

Provides an easier way to upload images with configurations

2.0.1(3y ago)0722MITPHPPHP &gt;=7.4.0

Since Mar 17Pushed 3y ago2 watchersCompare

[ Source](https://github.com/anekdotes/manager)[ Packagist](https://packagist.org/packages/anekdotes/manager)[ RSS](/packages/anekdotes-manager/feed)WikiDiscussions master Synced 2mo ago

READMEChangelogDependencies (3)Versions (15)Used By (0)

Anekdotes Manager
=================

[](#anekdotes-manager)

[![Latest Stable Version](https://camo.githubusercontent.com/4fee432fceb3ad55e16bd95a0939346622edfa2fefd0026ea44bbb56d50e9f2c/687474703a2f2f706f7365722e707567782e6f72672f616e656b646f7465732f6d616e616765722f76)](https://packagist.org/packages/anekdotes/manager)[![Total Downloads](https://camo.githubusercontent.com/2c1e2582944e7474ebc3b0bc951767b926813eaec97b428fe9089210887cc970/687474703a2f2f706f7365722e707567782e6f72672f616e656b646f7465732f6d616e616765722f646f776e6c6f616473)](https://packagist.org/packages/anekdotes/manager)[![License](https://camo.githubusercontent.com/fd459494baaa34f47d1b1b08ff68a7c9b8bbd81f46ac7f0e16669c77bc987471/687474703a2f2f706f7365722e707567782e6f72672f616e656b646f7465732f6d616e616765722f6c6963656e7365)](https://packagist.org/packages/anekdotes/manager)[![PHP Version Require](https://camo.githubusercontent.com/9085cd219ffbd70f402c2aad608673ae350805f3b78dad4a9191944c36b1b493/687474703a2f2f706f7365722e707567782e6f72672f616e656b646f7465732f6d616e616765722f726571756972652f706870)](https://packagist.org/packages/anekdotes/manager)

A library that provides an easy way to upload files to the server simply by using configurations.

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

[](#installation)

Install via composer into your project:

```
composer require anekdotes/manager

```

Usage
-----

[](#usage)

Use the class where ever you need it:

```
use Anekdotes\Manager\Manager;
```

**See configuration section below for more information**

With **Laravel**:

```
$manager = new Manager(array);
$manager->manage(Input::file('nameOfInput'));
```

Without **Laravel**:

```
$manager = new Manager(array);
$manager->manage($_FILES['nameOfInput']);
```

Catch errors/exceptions:

```
try {
    $manager = new Manager(array);
    $manager->manage($_FILES['nameOfInput']);
} catch (\Exception $e) {
    //do something
}
```

Configurations
--------------

[](#configurations)

### Instantiation

[](#instantiation)

You can pass a config array to the Manager's constructor.

```
    new Manager(array());
```

Available properties:

**prefix** : type *string*. Path's prefix to upload file **(default: `/public`)**

```
    'prefix' => '/public',
```

**path** : type *string*. Path to upload file **(default: `/uploads`)**

```
    'path' => 'uploads/',
```

**exts** : type *array*. Array of all supported file extensions **(default: `jpg, jpeg, png`)**

```
    'exts' => array('jpeg', 'jpg', 'png),
```

**weight** : type *integer*. Maximum file size in bytes **(default: `3 mbs`)**

```
    'weight' => 3000000,
```

**size** : type *array*. Array containing as many sizes as needed **(default: `null`)**

```
    'size' => array(
    ),
```

Put together:

```
    $manager = new Manager(array(
        'prefix' => '/public',
        'path' => 'uploads/',
        'exts' => array('jpeg', 'jpg', 'png),
        'weight' => 3000000
    ));
```

### Manage method's callback

[](#manage-methods-callback)

You may pass a closure to the **manage** method to execute special code before uploading file such as creating an entry in the database or simply changing name.

```
    $manager->manage($_FILES['nameOfInput'], function($fi){
        //do something fancy
        return "potato.jpg";
    });
```

With the above example and default configurations, the new file will be located at **/public/uploads** as **potato.jpg**.

###  Health Score

32

—

LowBetter than 72% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity13

Limited adoption so far

Community10

Small or concentrated contributor base

Maturity71

Established project with proven stability

 Bus Factor1

Top contributor holds 91.9% 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

Every ~181 days

Recently: every ~492 days

Total

14

Last Release

1356d ago

Major Versions

1.4.0 → 2.0.02021-11-24

PHP version history (2 changes)1.0.0PHP &gt;=5.3.0

2.0.0PHP &gt;=7.4.0

### Community

Maintainers

![](https://www.gravatar.com/avatar/c0c01657f2fe3df0d9bcc9c813d95e422a8afad61a298654d595be447dc86c58?d=identicon)[anekdotes](/maintainers/anekdotes)

---

Top Contributors

[![franatieu](https://avatars.githubusercontent.com/u/4522233?v=4)](https://github.com/franatieu "franatieu (34 commits)")[![Grasseh](https://avatars.githubusercontent.com/u/2159610?v=4)](https://github.com/Grasseh "Grasseh (3 commits)")

---

Tags

imagefilemanagerupload

###  Code Quality

TestsPHPUnit

### Embed Badge

![Health badge](/badges/anekdotes-manager/health.svg)

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

###  Alternatives

[unisharp/laravel-filemanager

A file upload/editor intended for use with Laravel 5 to 10 and CKEditor / TinyMCE

2.2k3.3M74](/packages/unisharp-laravel-filemanager)[edsdk/flmngr-server-php

Flmngr file manager PHP backend

20279.5k3](/packages/edsdk-flmngr-server-php)[itskodinger/midia

Simple Media manager for your Laravel project

1415.8k](/packages/itskodinger-midia)

PHPackages © 2026

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