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(2mo ago)8915↓37.5%[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 1mo ago

READMEChangelog (5)Dependencies (14)Versions (10)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

45

—

FairBetter than 93% of packages

Maintenance87

Actively maintained with recent releases

Popularity25

Limited adoption so far

Community10

Small or concentrated contributor base

Maturity47

Maturing project, gaining track record

 Bus Factor1

Top contributor holds 70.3% 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 ~96 days

Recently: every ~85 days

Total

6

Last Release

53d ago

Major Versions

0.3.0 → 1.x-dev2026-03-27

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] (12 commits)")[![github-actions[bot]](https://avatars.githubusercontent.com/in/15368?v=4)](https://github.com/github-actions[bot] "github-actions[bot] (10 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-data

Create unified resources and data transfer objects

1.8k28.9M627](/packages/spatie-laravel-data)[spatie/laravel-livewire-wizard

Build wizards using Livewire

4061.0M4](/packages/spatie-laravel-livewire-wizard)[hirethunk/verbs

An event sourcing package that feels nice.

513162.9k6](/packages/hirethunk-verbs)[worksome/exchange

Check Exchange Rates for any currency in Laravel.

123544.7k](/packages/worksome-exchange)[ralphjsmit/livewire-urls

Get the previous and current url in Livewire.

82270.3k4](/packages/ralphjsmit-livewire-urls)[hydrat/filament-table-layout-toggle

Filament plugin adding a toggle button to tables, allowing user to switch between Grid and Table layouts.

6292.3k1](/packages/hydrat-filament-table-layout-toggle)

PHPackages © 2026

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