PHPackages                             legendarydrew/laravel-siteimage - 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. legendarydrew/laravel-siteimage

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

legendarydrew/laravel-siteimage
===============================

Laravel package for local environment friendly managing of cloud-hosted images.

0175PHP

Since Oct 1Pushed 7mo ago1 watchersCompare

[ Source](https://github.com/legendarydrew/laravel-siteimage)[ Packagist](https://packagist.org/packages/legendarydrew/laravel-siteimage)[ RSS](/packages/legendarydrew-laravel-siteimage/feed)WikiDiscussions main Synced 1mo ago

READMEChangelogDependenciesVersions (1)Used By (0)

Site Image package
==================

[](#site-image-package)

[![Latest Version on Packagist](https://camo.githubusercontent.com/2d7a019f68c29812256f3a2791b69e0eba4a35fbddd2103d0371154c2d69cc00/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f762f6c6567656e64617279647265772f6c61726176656c2d73697465696d6167652e7376673f7374796c653d666c61742d737175617265)](https://packagist.org/packages/legendarydrew/laravel-siteimage)[![Total Downloads](https://camo.githubusercontent.com/9dc9d535f2cb8c98de38955b90f3dd3cc7f6c74e58ba303fa30ac873defcfcfe/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f64742f6c6567656e64617279647265772f6c61726176656c2d73697465696d6167652e7376673f7374796c653d666c61742d737175617265)](https://packagist.org/packages/legendarydrew/laravel-siteimage)

A package for managing cloud-hosted images in a Laravel project.

This was developed to allow local mimicking of Cloudinary-hosted images, instead of using precious (and probably expensive) server bandwidth during development.

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

[](#installation)

You can install the package via composer:

```
composer require legendarydrew/laravel-siteimage
```

**Copy configuration file**

```
php artisan vendor:publish --provider="PZL\SiteImage\SiteImageServiceProvider" --tag="config"
```

**Copy placeholder images (for missing images)**

```
php artisan vendor:publish --provider="PZL\SiteImage\SiteImageServiceProvider" --tag="assets"
```

(or create your own!)

**Environment variables**

`SITE_IMAGE_PROVIDER`

LocalImage (default) or CloudinaryImage.

`SITE_IMAGE_LOCAL_FOLDER`

The folder where locally-hosted images are stored, relative to the `public` folder (default 'img').

Usage
-----

[](#usage)

```
SiteImage::get($image_id[, $transformation, $format])
SiteImage::approve($image_id)
SiteImage::reject($image_id)
SiteImage::destroy($image_id)
SiteImage::rename($old_image_id, $new_image_id)
...
```

### Testing

[](#testing)

```
composer test
```

### Changelog

[](#changelog)

Please see [CHANGELOG](CHANGELOG.md) for more information what has changed recently.

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

[](#contributing)

Please see [CONTRIBUTING](CONTRIBUTING.md) for details.

### Security

[](#security)

If you discover any security related issues, please email  instead of using the issue tracker.

Credits
-------

[](#credits)

- [Drew Maughan](https://github.com/legendarydrew)

License
-------

[](#license)

The MIT License (MIT). Please see [License File](LICENSE.md) for more information.

Laravel Package Boilerplate
---------------------------

[](#laravel-package-boilerplate)

This package was generated using the [Laravel Package Boilerplate](https://laravelpackageboilerplate.com).

###  Health Score

19

—

LowBetter than 10% of packages

Maintenance44

Moderate activity, may be stable

Popularity10

Limited adoption so far

Community7

Small or concentrated contributor base

Maturity13

Early-stage or recently created project

 Bus Factor1

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

### Community

Maintainers

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

---

Top Contributors

[![RespectTheCoder](https://avatars.githubusercontent.com/u/16030654?v=4)](https://github.com/RespectTheCoder "RespectTheCoder (2 commits)")

### Embed Badge

![Health badge](/badges/legendarydrew-laravel-siteimage/health.svg)

```
[![Health](https://phpackages.com/badges/legendarydrew-laravel-siteimage/health.svg)](https://phpackages.com/packages/legendarydrew-laravel-siteimage)
```

###  Alternatives

[knplabs/gaufrette

PHP library that provides a filesystem abstraction layer

2.5k39.8M123](/packages/knplabs-gaufrette)[google/cloud-storage

Cloud Storage Client for PHP

34390.8M125](/packages/google-cloud-storage)[illuminate/filesystem

The Illuminate Filesystem package.

15261.6M2.6k](/packages/illuminate-filesystem)[superbalist/flysystem-google-storage

Flysystem adapter for Google Cloud Storage

26320.6M30](/packages/superbalist-flysystem-google-storage)[creocoder/yii2-flysystem

The flysystem extension for the Yii framework

2931.7M62](/packages/creocoder-yii2-flysystem)[flowjs/flow-php-server

PHP library for handling chunk uploads. Works with flow.js html5 file uploads.

2451.6M15](/packages/flowjs-flow-php-server)

PHPackages © 2026

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