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 yesterday

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 31% of packages

Maintenance33

Infrequent updates — may be unmaintained

Popularity7

Limited adoption so far

Community7

Small or concentrated contributor base

Maturity42

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

679d ago

### Community

Maintainers

![](https://avatars.githubusercontent.com/u/35069885?v=4)[Noorani](/maintainers/Noorani)[@Noorani](https://github.com/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

[intervention/image-laravel

Laravel Integration of Intervention Image

1588.9M182](/packages/intervention-image-laravel)[glushkovds/phpclickhouse-laravel

Adapter of the most popular library https://github.com/smi2/phpClickHouse to Laravel

2051.5M2](/packages/glushkovds-phpclickhouse-laravel)[bjthecod3r/laravel-cloudflare-stream

A Laravel package for Cloudflare Stream.

203.5k](/packages/bjthecod3r-laravel-cloudflare-stream)

PHPackages © 2026

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