PHPackages                             akira/laravel-crypto - 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. [Utility &amp; Helpers](/categories/utility)
4. /
5. akira/laravel-crypto

ActiveLibrary[Utility &amp; Helpers](/categories/utility)

akira/laravel-crypto
====================

This is my package laravel-crypto

0.3.0(4mo ago)81.3k↓84.8%[1 issues](https://github.com/akira-io/laravel-crypto/issues)[1 PRs](https://github.com/akira-io/laravel-crypto/pulls)MITPHPPHP ^8.2CI passing

Since Nov 30Pushed 1mo ago1 watchersCompare

[ Source](https://github.com/akira-io/laravel-crypto)[ Packagist](https://packagist.org/packages/akira/laravel-crypto)[ Docs](https://github.com/akira/laravel-crypto)[ GitHub Sponsors](https://github.com/akira)[ RSS](/packages/akira-laravel-crypto/feed)WikiDiscussions 1.x Synced today

READMEChangelog (5)Dependencies (14)Versions (13)Used By (0)

[![img.png](img.png)](img.png)

 [![Latest Version on Packagist](https://camo.githubusercontent.com/fdd189a6cbaa29a4833019aa40963d1262655f113cad6979f3f7ca309bdd4b13/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f762f616b6972612f6c61726176656c2d63727970746f2e7376673f7374796c653d666c61742d737175617265)](https://packagist.org/packages/akira/laravel-crypto) [![GitHub Tests](https://camo.githubusercontent.com/5296f7aa2f7155ca84f89daa9e1b7daff5acbe6481a013c8129e42297f0aad0b/68747470733a2f2f696d672e736869656c64732e696f2f6769746875622f616374696f6e732f776f726b666c6f772f7374617475732f616b6972612d696f2f6c61726176656c2d63727970746f2f72756e2d74657374732e796d6c3f6272616e63683d312e78266c6162656c3d7465737473267374796c653d666c61742d737175617265)](https://github.com/akira-io/laravel-crypto/actions?query=workflow%3Arun-tests+branch%3A1.x) [![Total Downloads](https://camo.githubusercontent.com/b8cf8cf638187c3236cf98c0a9b08b069e46b6a3b8006097a0ac780569bd5fd2/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f64742f616b6972612f6c61726176656c2d63727970746f2e7376673f7374796c653d666c61742d737175617265)](https://packagist.org/packages/akira/laravel-crypto) [![PHP Version](https://camo.githubusercontent.com/cfa3fdcac83c6166c7a196b01d0fa1f2c8373de2139e370f61ec919bf813fdc7/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f7068702d762f616b6972612f6c61726176656c2d63727970746f2e7376673f7374796c653d666c61742d737175617265)](https://packagist.org/packages/akira/laravel-crypto) [![License](https://camo.githubusercontent.com/ae039fd185293afa94ee927936339c57d56262ce2dc6f8a39679c43335a6baef/68747470733a2f2f696d672e736869656c64732e696f2f6769746875622f6c6963656e73652f616b6972612d696f2f6c61726176656c2d63727970746f2e7376673f7374796c653d666c61742d737175617265)](https://github.com/akira-io/laravel-crypto/blob/1.x/LICENSE.md)

`Laravel Crypto` is a Laravel package designed to make encryption and decryption straightforward. It supports:

- **Secure encryption** using modern algorithms such as `AES-256-CBC`.
- **Customizable configuration**, allowing you to define key sizes, algorithms, iterations, and more.
- **Effortless integration** with Laravel's configuration and service container.
- **Randomized Initialization Vectors (IVs)** for enhanced encryption security.

Whether you're building an application that requires secure data storage, transmitting sensitive information, or complying with data protection regulations, Laravel Crypto has you covered.

Quick Start
-----------

[](#quick-start)

### Installation

[](#installation)

```
composer require akira/laravel-crypto
```

### Generate Key

[](#generate-key)

```
php artisan crypto:generate-key
```

Add to your `.env`:

```
CRYPTO_ENCRYPTION_KEY=your-generated-key-here
```

### Usage

[](#usage)

```
// Using helper function (recommended - has IDE autocomplete ⭐)
$encrypted = crypto()->encrypt('Hello World');
$decrypted = crypto()->decrypt($encrypted);

// Or using facade
use Akira\LaravelCrypto\Facades\Crypto;
$encrypted = Crypto::encrypt('Hello World');
$decrypted = Crypto::decrypt($encrypted);
```

Documentation
-------------

[](#documentation)

- 📖 [Complete Documentation](docs/00-index.md)
- ⭐ [Helper Function Usage](docs/11-helper-usage.md) - **Recommended with IDE autocomplete**
- 🚀 [Quick Start Guide](docs/01-introduction.md)
- 📝 [API Reference](docs/07-api-reference.md)
- 💡 [Examples](docs/06-examples.md)
- 🔒 [Security Best Practices](docs/08-security-best-practices.md)

Changelog
---------

[](#changelog)

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

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

[](#contributing)

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

Security Vulnerabilities
------------------------

[](#security-vulnerabilities)

Please review [our security policy](../../security/policy) on how to report security vulnerabilities.

Credits
-------

[](#credits)

- [kidiatoliny](https://github.com/kidiatoliny)
- [All Contributors](../../contributors)

License
-------

[](#license)

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

###  Health Score

44

—

FairBetter than 90% of packages

Maintenance81

Actively maintained with recent releases

Popularity25

Limited adoption so far

Community10

Small or concentrated contributor base

Maturity49

Maturing project, gaining track record

 Bus Factor1

Top contributor holds 63.4% 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 ~105 days

Recently: every ~96 days

Total

6

Last Release

56d ago

Major Versions

0.3.0 → 1.x-dev2026-05-08

PHP version history (2 changes)0.1.0PHP ^8.1

0.1.1PHP ^8.2

### Community

Maintainers

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

---

Top Contributors

[![kidiatoliny](https://avatars.githubusercontent.com/u/48266788?v=4)](https://github.com/kidiatoliny "kidiatoliny (52 commits)")[![dependabot[bot]](https://avatars.githubusercontent.com/in/29110?v=4)](https://github.com/dependabot[bot] "dependabot[bot] (16 commits)")[![github-actions[bot]](https://avatars.githubusercontent.com/in/15368?v=4)](https://github.com/github-actions[bot] "github-actions[bot] (14 commits)")

---

Tags

laravelakiralaravel-crypto

###  Code Quality

TestsPest

Static AnalysisPHPStan, Rector

Code StyleLaravel Pint

### Embed Badge

![Health badge](/badges/akira-laravel-crypto/health.svg)

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

###  Alternatives

[spatie/laravel-pdf

Create PDFs in Laravel apps

1.0k4.8M47](/packages/spatie-laravel-pdf)[codewithdennis/filament-select-tree

The multi-level select field enables you to make single selections from a predefined list of options that are organized into multiple levels or depths.

329530.5k29](/packages/codewithdennis-filament-select-tree)[rawilk/profile-filament-plugin

Profile &amp; MFA starter kit for filament.

3914.6k](/packages/rawilk-profile-filament-plugin)[worksome/exchange

Check Exchange Rates for any currency in Laravel.

124603.0k](/packages/worksome-exchange)[tarfin-labs/event-machine

Event-driven state machines for Laravel with event sourcing, type-safe context, and full audit trail.

199.4k](/packages/tarfin-labs-event-machine)

PHPackages © 2026

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