PHPackages                             cline/cloak - 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. [Security](/categories/security)
4. /
5. cline/cloak

ActiveLibrary[Security](/categories/security)

cline/cloak
===========

Prevent sensitive exception details from leaking in Laravel applications

2.0.3(2mo ago)01.4k↓20.5%MITPHPPHP ^8.5.0CI passing

Since Jan 30Pushed 2mo agoCompare

[ Source](https://github.com/faustbrian/cloak)[ Packagist](https://packagist.org/packages/cline/cloak)[ RSS](/packages/cline-cloak/feed)WikiDiscussions 2.x Synced 1mo ago

READMEChangelog (8)Dependencies (12)Versions (14)Used By (0)

[![GitHub Workflow Status](https://github.com/faustbrian/cloak/actions/workflows/quality-assurance.yaml/badge.svg)](https://github.com/faustbrian/cloak/actions)[![Latest Version on Packagist](https://camo.githubusercontent.com/ebd3c1a42986d01da3144bae153d192ea0744380f9f09e7d327ed5129d94c053/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f762f636c696e652f636c6f616b2e737667)](https://packagist.org/packages/cline/cloak)[![Software License](https://camo.githubusercontent.com/784362b26e4b3546254f1893e778ba64616e362bd6ac791991d2c9e880a3a64e/68747470733a2f2f696d672e736869656c64732e696f2f62616467652f4c6963656e73652d4d49542d677265656e2e737667)](LICENSE.md)[![Total Downloads](https://camo.githubusercontent.com/2c93a1e68c1fdd92dace8495d1f547eb41e6df1cc9b2afdd1177cdbafbb46ef8/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f64742f636c696e652f636c6f616b2e737667)](https://packagist.org/packages/cline/cloak)

---

Cloak is a security-focused Laravel package that prevents sensitive information from leaking through exception messages and stack traces. It automatically sanitizes database credentials, API keys, tokens, and other sensitive data before they reach your users or logs.

Requirements
------------

[](#requirements)

> **Requires [PHP 8.5+](https://php.net/releases/) and Laravel 11+**

Installation
------------

[](#installation)

```
composer require cline/cloak
```

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

[](#documentation)

- **[Getting Started](https://docs.cline.sh/cloak/getting-started)** - Installation, configuration, and basic usage
- **[Custom Patterns](https://docs.cline.sh/cloak/patterns)** - Configure regex patterns to match your sensitive data
- **[Exception Handling](https://docs.cline.sh/cloak/exception-handling)** - Fine-grained control over exception sanitization
- **[Real-World Examples](https://docs.cline.sh/cloak/examples)** - Practical examples for common scenarios
- **[Security Best Practices](https://docs.cline.sh/cloak/security-best-practices)** - Production configuration and monitoring

Change log
----------

[](#change-log)

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

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

[](#contributing)

Please see [CONTRIBUTING](CONTRIBUTING.md) and [CODE\_OF\_CONDUCT](CODE_OF_CONDUCT.md) for details.

Security
--------

[](#security)

If you discover any security related issues, please use the [GitHub security reporting form](https://github.com/faustbrian/cloak/security) rather than the issue queue.

Credits
-------

[](#credits)

- [Brian Faust](https://github.com/faustbrian)
- [All Contributors](../../contributors)

License
-------

[](#license)

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

###  Health Score

47

—

FairBetter than 94% of packages

Maintenance88

Actively maintained with recent releases

Popularity21

Limited adoption so far

Community6

Small or concentrated contributor base

Maturity59

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 ~8 days

Total

13

Last Release

61d ago

Major Versions

1.x-dev → 2.0.02026-03-04

### Community

Maintainers

![](https://avatars.githubusercontent.com/u/22145591?v=4)[Brian Faust](/maintainers/faustbrian)[@faustbrian](https://github.com/faustbrian)

---

Top Contributors

[![faustbrian](https://avatars.githubusercontent.com/u/22145591?v=4)](https://github.com/faustbrian "faustbrian (12 commits)")

---

Tags

phplaravelsecurityexceptionserror handling

### Embed Badge

![Health badge](/badges/cline-cloak/health.svg)

```
[![Health](https://phpackages.com/badges/cline-cloak/health.svg)](https://phpackages.com/packages/cline-cloak)
```

###  Alternatives

[bezhansalleh/filament-shield

Filament support for `spatie/laravel-permission`.

2.8k2.9M88](/packages/bezhansalleh-filament-shield)[tzsk/otp

A secure, database-free One-Time Password (OTP) generator and verifier for PHP and Laravel.

241641.4k1](/packages/tzsk-otp)[asbiin/laravel-webauthn

Laravel Webauthn support

309574.8k](/packages/asbiin-laravel-webauthn)[ercsctt/laravel-file-encryption

Secure file encryption and decryption for Laravel applications

642.6k](/packages/ercsctt-laravel-file-encryption)

PHPackages © 2026

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