PHPackages                             spatie/email-concealer-cli - 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. [CLI &amp; Console](/categories/cli)
4. /
5. spatie/email-concealer-cli

ActiveLibrary[CLI &amp; Console](/categories/cli)

spatie/email-concealer-cli
==========================

CLI tool for concealing e-mails in a file by replacing their domain

1.0.0(9y ago)3063MITPHPPHP ^7.1

Since Apr 21Pushed 5mo ago2 watchersCompare

[ Source](https://github.com/spatie/email-concealer-cli)[ Packagist](https://packagist.org/packages/spatie/email-concealer-cli)[ Docs](https://github.com/spatie/email-concealer-cli)[ RSS](/packages/spatie-email-concealer-cli/feed)WikiDiscussions master Synced 2w ago

READMEChangelog (1)Dependencies (2)Versions (2)Used By (0)

Conceal e-mail addresses in a file
==================================

[](#conceal-e-mail-addresses-in-a-file)

[![Latest Version on Packagist](https://camo.githubusercontent.com/894e5fdaae75223aff35e3cbf5a29f2fdb4cb52afbc4a9b48c03c73e04b85dd8/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f762f7370617469652f656d61696c2d636f6e6365616c65722d636c692e7376673f7374796c653d666c61742d737175617265)](https://packagist.org/packages/spatie/email-concealer-cli)[![StyleCI](https://camo.githubusercontent.com/ea01a0b2e7e1b95beb236b3eb3758913c24482e55282dfb3ad8e57c53a827ac8/68747470733a2f2f7374796c6563692e696f2f7265706f732f38383937313232302f736869656c643f6272616e63683d6d6173746572)](https://styleci.io/repos/88971220)[![Quality Score](https://camo.githubusercontent.com/610d6b051690b0460cbc46caa520aa77ba7dad667a1d07faef74eb5bd9e6f213/68747470733a2f2f696d672e736869656c64732e696f2f7363727574696e697a65722f672f7370617469652f656d61696c2d636f6e6365616c65722d636c692e7376673f7374796c653d666c61742d737175617265)](https://scrutinizer-ci.com/g/spatie/email-concealer-cli)[![Total Downloads](https://camo.githubusercontent.com/c69a7b3f3a328a6c46de5c4bc20d69f699b59b61b538a621ed9c55f38c0f614d/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f64742f7370617469652f656d61696c2d636f6e6365616c65722d636c692e7376673f7374796c653d666c61742d737175617265)](https://packagist.org/packages/spatie/email-concealer-cli)

CLI tool for concealing e-mails in a file by replacing their domain. Useful for concealing production data—like MySQL dumps—so you can use it locally without worrying about having real addresses on your system.

This package is a CLI app for [spatie/email-concealer](https://github.com/spatie/email-concealer).

Support us
----------

[](#support-us)

[![](https://camo.githubusercontent.com/10d32dbf8ae3dcb78094e74d8df5fb0db4580cf5fdc3569507d81b3d6bbf255d/68747470733a2f2f6769746875622d6164732e73332e65752d63656e7472616c2d312e616d617a6f6e6177732e636f6d2f656d61696c2d636f6e6365616c65722d636c692e6a70673f743d31)](https://spatie.be/github-ad-click/email-concealer-cli)

We invest a lot of resources into creating [best in class open source packages](https://spatie.be/open-source). You can support us by [buying one of our paid products](https://spatie.be/open-source/support-us).

We highly appreciate you sending us a postcard from your hometown, mentioning which of our package(s) you are using. You'll find our address on [our contact page](https://spatie.be/about-us). We publish all received postcards on [our virtual postcard wall](https://spatie.be/open-source/postcards).

Postcardware
------------

[](#postcardware)

You're free to use this package (it's [MIT-licensed](LICENSE.md)), but if it makes it to your production environment we highly appreciate you sending us a postcard from your hometown, mentioning which of our package(s) you are using.

Our address is: Spatie, Kruikstraat 22, 2018 Antwerp, Belgium.

We publish all received postcards [on our company website](https://spatie.be/en/opensource/postcards).

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

[](#installation)

You can install the package via composer:

```
composer global require spatie/email-concealer-cli
```

Usage
-----

[](#usage)

```
# Conceal all e-mail addresses in a file, and print the result
email-concealer conceal path_to_src_file

# Conceal all e-mail addresses in a file, and write the result to a new file
email-concealer conceal path_to_src_file path_to_dest_file

# Conceal all e-mail addresses in a file, and overwrite the existing file
email-concealer conceal path_to_src_file --overwrite

# Conceal all e-mail addresses by replacing them with a "spatie.be" domain
email-concealer conceal path_to_src_file --overwrite --domain="spatie.be"
```

Changelog
---------

[](#changelog)

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

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

[](#contributing)

Please see [CONTRIBUTING](https://github.com/spatie/.github/blob/main/CONTRIBUTING.md) for details.

Security
--------

[](#security)

If you've found a bug regarding security please mail  instead of using the issue tracker.

Credits
-------

[](#credits)

- [Sebastian De Deyne](https://github.com/sebastiandedeyne)
- [All Contributors](../../contributors)

About Spatie
------------

[](#about-spatie)

Spatie is a webdesign agency based in Antwerp, Belgium. You'll find an overview of all our open source projects [on our website](https://spatie.be/opensource).

License
-------

[](#license)

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

###  Health Score

37

—

LowBetter than 81% of packages

Maintenance50

Moderate activity, may be stable

Popularity15

Limited adoption so far

Community14

Small or concentrated contributor base

Maturity58

Maturing project, gaining track record

 Bus Factor2

2 contributors hold 50%+ of commits

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

Unknown

Total

1

Last Release

3357d ago

### Community

Maintainers

![](https://avatars.githubusercontent.com/u/7535935?v=4)[Spatie](/maintainers/spatie)[@spatie](https://github.com/spatie)

---

Top Contributors

[![sebastiandedeyne](https://avatars.githubusercontent.com/u/1561079?v=4)](https://github.com/sebastiandedeyne "sebastiandedeyne (9 commits)")[![AdrianMrn](https://avatars.githubusercontent.com/u/12762044?v=4)](https://github.com/AdrianMrn "AdrianMrn (8 commits)")[![freekmurze](https://avatars.githubusercontent.com/u/483853?v=4)](https://github.com/freekmurze "freekmurze (6 commits)")[![jdanino](https://avatars.githubusercontent.com/u/10063518?v=4)](https://github.com/jdanino "jdanino (1 commits)")

---

Tags

clideveloper-toolsemailobfuscationsecuritytoolspatieemail-concealer-cli

### Embed Badge

![Health badge](/badges/spatie-email-concealer-cli/health.svg)

```
[![Health](https://phpackages.com/badges/spatie-email-concealer-cli/health.svg)](https://phpackages.com/packages/spatie-email-concealer-cli)
```

###  Alternatives

[illuminate/console

The Illuminate Console package.

13045.3M6.2k](/packages/illuminate-console)

PHPackages © 2026

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