PHPackages                             alexd/image - 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. [Image &amp; Media](/categories/media)
4. /
5. alexd/image

ActiveLibrary[Image &amp; Media](/categories/media)

alexd/image
===========

Image Manager for using in forms

032JavaScript

Since Aug 3Pushed 8y ago1 watchersCompare

[ Source](https://github.com/Photoshopper/alexd-image)[ Packagist](https://packagist.org/packages/alexd/image)[ RSS](/packages/alexd-image/feed)WikiDiscussions master Synced yesterday

READMEChangelogDependenciesVersions (1)Used By (0)

Vendor package for uploading images in Laravel 5.3
==================================================

[](#vendor-package-for-uploading-images-in-laravel-53)

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

[](#installation)

1. Require the package via Composer in your `composer.json`

```
{
    "require": {
        "alexd/image": "*"
    }
}

```

2. Run Composer update

```
$ composer update

```

3. Add the service providers to your `app/config/app.php` file

```
Bkwld\Croppa\ServiceProvider::class,
Alexd\Image\ImageServiceProvider::class,

```

4. Add the aliases to `app/config/app.php` file

```
'Croppa' => Bkwld\Croppa\Facade::class,
'ImageManager' => Alexd\Image\Facades\Image::class

```

5. Run artisan commands

```
php artisan vendor:publish --provider="Alexd\Image\ImageServiceProvider"
php artisan storage:link

```

6. if you already had `config/croppa.php` change setting values on following:

```
'src_dir' => public_path('storage'),
'crops_dir' => public_path('storage'),
'path' => 'storage/(.*)$',
'signing_key' => false,
'upscale' => true,

```

Usage
-----

[](#usage)

1. On the create form add:

For single image:

```
@include('ImageManager::_scripts')
@include('ImageManager::_image-input', [
    'label' => 'Image',
    'field_name' => 'image',
    'upload_dir' => 'gallery',
    'size' => [100, 100]
])

```

For multiple images:

```
@include('ImageManager::_scripts')
@include('ImageManager::_images-input', [
    'label' => 'Images',
    'field_name' => 'images',
    'upload_dir' => 'gallery',
    'size' => [100, 100]
])

```

2. On the edit form add:

For single image:

```
@include('ImageManager::_scripts')
@include('ImageManager::_image-input', [
    'label' => 'Image',
    'field_name' => 'image',
    'upload_dir' => 'gallery',
    'size' => [100, 100],
    'model' => $model
])

```

For multiple images:

```
@include('ImageManager::_scripts')
@include('ImageManager::_images-input', [
            'label' => 'Images',
            'field_name' => 'images',
            'upload_dir' => 'gallery',
            'size' => [100, 100],
            'model' => $model
        ])

```

Don't forget to add `multipart/form-data` to your forms

3. On the store method you can use:

For single image:

```
$data = $request->all();

$data['image'] = ImageManager::upload($request, 'image', 'gallery');

```

For multiple images:

```
$data = $request->all();

ImageManager::multiupload($request, 'images', 'gallery', $model->id, Gallery::class);

```

4. On the update method you can use:

For single image:

```
$data = $request->all();

$data['image'] = ImageManager::upload($request, 'image', 'gallery', $model->image);

```

For multiple images:

```
$data = $request->all();

ImageManager::multiupload($request, 'images', 'gallery', $model->id, Gallery::class);

```

5. To delete image you should pass filename and upload dir

For single image:

```
ImageManager::delete($model->image, 'gallery');

```

For multiple images:

```
ImageManager::multidelete($model->images, 'gallery');

```

###  Health Score

20

—

LowBetter than 13% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity7

Limited adoption so far

Community4

Small or concentrated contributor base

Maturity41

Maturing project, gaining track record

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.

### Community

Maintainers

![](https://avatars.githubusercontent.com/u/14835282?v=4)[Photoshopper](/maintainers/Photoshopper)[@Photoshopper](https://github.com/Photoshopper)

### Embed Badge

![Health badge](/badges/alexd-image/health.svg)

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

###  Alternatives

[goat1000/svggraph

Generates SVG graphs

133890.0k3](/packages/goat1000-svggraph)[imagekit/imagekit

PHP library for Imagekit

46877.3k10](/packages/imagekit-imagekit)[gravatarphp/gravatar

Gravatar URL builder which is most commonly called as a Gravatar library

12644.1k2](/packages/gravatarphp-gravatar)

PHPackages © 2026

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