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

ActiveLibrary

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

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

0175PHP

Since Oct 1Pushed 5mo 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 today

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

20

—

LowBetter than 16% of packages

Maintenance48

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)
```

PHPackages © 2026

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