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.1.0(4mo ago)06.1k—6.6%MITPHPPHP ^8.5.0CI passing

Since Jan 30Pushed 4mo agoCompare

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

READMEChangelog (9)Dependencies (18)Versions (15)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

45

—

FairBetter than 91% of packages

Maintenance74

Regular maintenance activity

Popularity25

Limited adoption so far

Community6

Small or concentrated contributor base

Maturity60

Established project with proven stability

 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

14

Last Release

140d 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

[psalm/plugin-laravel

Psalm plugin for Laravel

3345.4M354](/packages/psalm-plugin-laravel)[api-platform/laravel

API Platform support for Laravel

58190.1k21](/packages/api-platform-laravel)[defstudio/telegraph

A laravel facade to interact with Telegram Bots

818355.4k3](/packages/defstudio-telegraph)[spatie/laravel-health

Monitor the health of a Laravel application

88212.7M188](/packages/spatie-laravel-health)[harris21/laravel-fuse

Circuit breaker for Laravel queue jobs. Protect your workers from cascading failures.

46273.9k](/packages/harris21-laravel-fuse)[nativephp/mobile

NativePHP for Mobile

1.1k102.1k147](/packages/nativephp-mobile)

PHPackages © 2026

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