PHPackages                             noorani-mm/secure-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. noorani-mm/secure-image

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

noorani-mm/secure-image
=======================

Make your image files secure by encoding and decoding

v1.1.1(1y ago)28MITPHP

Since Aug 22Pushed 1y ago1 watchersCompare

[ Source](https://github.com/Noorani-MM/SecureImage)[ Packagist](https://packagist.org/packages/noorani-mm/secure-image)[ RSS](/packages/noorani-mm-secure-image/feed)WikiDiscussions main Synced 1mo ago

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

Secure picture 🔐
================

[](#secure-picture-)

Make your image files secure by this package.

Install package
---------------

[](#install-package)

```
composer require noorani-mm/secure-image
```

### Laravel 11, installation

[](#laravel-11-installation)

In `bootstrap\providers.php` file add line below.

```
return [
    // Other providers...
    \NooraniMm\SecurePicture\Providers\SecureImageProvider::class,
];
```

### Older Laravel installation

[](#older-laravel-installation)

in `config/app.php` find `providers` and add line below.

```
'providers' => [
    // Other providers...
    \NooraniMm\SecurePicture\Providers\SecureImageProvider::class,
    ]
```

How to use 🛠
============

[](#how-to-use-)

### Encryption

[](#encryption)

```
use \NooraniMm\SecurePicture\Facades\SecureImage;

$encrypted_content = SecureImage::encrypt('picture.jpg');
```

- If you want to encrypt and store file you should use

```
use NooraniMm\SecurePicture\Facades\SecureImage;

SecureImage::storeAsEncrypted('picture.jpg', 'encrypted.jpg');
```

### Decryption

[](#decryption)

```
use \NooraniMm\SecurePicture\Facades\SecureImage;
$encrypted_data = file_get_contents('encrypted.jpg');
$decrypted_content = SecureImage::decrypt($encrypted_data);
```

- If you want to store decrypted file you should use

```
use \NooraniMm\SecurePicture\Facades\SecureImage;

$encrypted_content = file_get_contents('encrypted.jpg');
SecureImage::storeAsDecrypted($encrypted_content, 'output.jpg');
```

- If you want to decrypt file by path you should use

```
use NooraniMm\SecurePicture\Facades\SecureImage;

$decrypted_data = SecureImage::decryptByPath('encrypted.jpg');
```

- If you want to decrypt and store it by path you should use

```
use \NooraniMm\SecurePicture\Facades\SecureImage;

SecureImage::decryptedByPathAndStore('encrypted.jpg', 'output.jpg');
```

###  Health Score

24

—

LowBetter than 32% of packages

Maintenance34

Infrequent updates — may be unmaintained

Popularity7

Limited adoption so far

Community7

Small or concentrated contributor base

Maturity41

Maturing project, gaining track record

 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.

###  Release Activity

Cadence

Every ~0 days

Total

3

Last Release

627d ago

### Community

Maintainers

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

---

Top Contributors

[![Noorani-MM](https://avatars.githubusercontent.com/u/74505328?v=4)](https://github.com/Noorani-MM "Noorani-MM (18 commits)")

---

Tags

decodingencodingimage-encryptionlaravel-packagephpsecurity-toolsphpimage encryptionsecure imageimage decryption

### Embed Badge

![Health badge](/badges/noorani-mm-secure-image/health.svg)

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

###  Alternatives

[dereuromark/media-embed

A PHP library to deal with all those media services around, parsing their URLs and embedding their audio/video content in websites.

182530.3k11](/packages/dereuromark-media-embed)[nikkanetiya/laravel-color-palette

Laravel Wrapper for `ksubileau/color-thief-php`. Grabs the dominant color or a representative color palette from an image. Uses PHP and GD or Imagick.

3312.6k](/packages/nikkanetiya-laravel-color-palette)[kiwilan/php-audio

PHP package to parse and update audio files metadata, with `JamesHeinrich/getID3`.

3012.6k1](/packages/kiwilan-php-audio)[bjthecod3r/laravel-cloudflare-stream

A Laravel package for Cloudflare Stream.

203.4k](/packages/bjthecod3r-laravel-cloudflare-stream)[automattic/wistia-php

PHP wrapper for Wistia API

1431.9k](/packages/automattic-wistia-php)

PHPackages © 2026

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