PHPackages                             repat/censor-text - 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. [Mail &amp; Notifications](/categories/mail)
4. /
5. repat/censor-text

ActiveLibrary[Mail &amp; Notifications](/categories/mail)

repat/censor-text
=================

Help search and replace specific texts, such as email address(es).

0.1(6y ago)11.8kMITPHPPHP &gt;=5.6

Since May 19Pushed 6y ago1 watchersCompare

[ Source](https://github.com/repat/censor-text)[ Packagist](https://packagist.org/packages/repat/censor-text)[ Docs](https://repat.de)[ RSS](/packages/repat-censor-text/feed)WikiDiscussions master Synced 1mo ago

READMEChangelog (1)DependenciesVersions (2)Used By (0)

censor-text
===========

[](#censor-text)

[![Latest Version on Packagist](https://camo.githubusercontent.com/4cddf3bca9bbbc504a4b82308df4e4faedf18483d09492b797d8894d28f3c7fb/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f762f72657061742f63656e736f722d746578742e7376673f7374796c653d666c61742d737175617265)](https://packagist.org/packages/repat/censor-text)[![Total Downloads](https://camo.githubusercontent.com/94f4d86ef12625e06f0136b7d154f645414e30def840adcdb5d11270a362fc64/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f64742f72657061742f63656e736f722d746578742e7376673f7374796c653d666c61742d737175617265)](https://packagist.org/packages/repat/censor-text)

**censor-text** is a package to help search and replace specific texts, such as email address(es).

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

[](#installation)

`$ composer require repat/censor-text`

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

[](#documentation)

```
// Init
$text = new \Repat\Text();

// With Setter
$text->setText('My email address is foobar@example.com');
$text->censorEmail();
// returns: 'My email address is ******************'

// Chain
$text->setText('My email address is foobar@example.com')->censorEmail();

// In Constructor
$text = new \Repat\Text('My email address is foobar@example.com');

// Exchange censoring character
$text->censorEmail("❚");
// returns: My email address is ❚❚❚❚❚❚❚❚❚❚❚❚❚❚❚❚❚❚❚❚❚❚

// Laravel
$text = resolve(\Repat\Text::class);
$text->setText('My email address is foobar@example.com')->censorEmail();

// Helper function
censor_email('My email address is foobar@example.com');
censor_email('My email address is foobar@example.com', "❚");
```

License
-------

[](#license)

- MIT, see [LICENSE](https://github.com/repat/censor-text/blob/master/LICENSE)

Version
-------

[](#version)

- Version 0.1

Contact
-------

[](#contact)

#### repat

[](#repat)

- Homepage:
- e-mail:
- Twitter: [@repat123](https://twitter.com/repat123 "repat123 on twitter")

[![Flattr this git repo](https://camo.githubusercontent.com/7e3f46a36526479d701ef7f90a0f8c3ac2fbab3087446e2a9fceed75cd1ab802/687474703a2f2f6170692e666c617474722e636f6d2f627574746f6e2f666c617474722d62616467652d6c617267652e706e67)](https://flattr.com/submit/auto?user_id=repat&url=https://github.com/repat/censor-text&title=censor-text&language=&tags=github&category=software)

###  Health Score

25

—

LowBetter than 37% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity19

Limited adoption so far

Community7

Small or concentrated contributor base

Maturity44

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

Unknown

Total

1

Last Release

2546d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/405dab243007488e7e7851422e5864a9312aee36058d60f1e6d623232c4d3131?d=identicon)[repat](/maintainers/repat)

---

Top Contributors

[![repat](https://avatars.githubusercontent.com/u/516807?v=4)](https://github.com/repat "repat (1 commits)")

---

Tags

laraveladdressemailexpressionregexregulartextaddressescensor

### Embed Badge

![Health badge](/badges/repat-censor-text/health.svg)

```
[![Health](https://phpackages.com/badges/repat-censor-text/health.svg)](https://phpackages.com/packages/repat-censor-text)
```

###  Alternatives

[movemoveapp/laravel-dadata

Laravel SDK for working with the DaData.RU service API

45209.8k](/packages/movemoveapp-laravel-dadata)[erag/laravel-disposable-email

A Laravel package to detect and block disposable email addresses.

226102.4k](/packages/erag-laravel-disposable-email)[hafael/azure-mailer-driver

Supercharge your Laravel or Symfony app with Microsoft Azure Communication Services (ACS)! Effortlessly add email, chat, voice, video, and telephony-over-IP for next-level communication. 🚀

14109.2k](/packages/hafael-azure-mailer-driver)[ashallendesign/laravel-mailboxlayer

A lightweight Laravel package for validating emails using the Mailbox Layer API.

762.0k](/packages/ashallendesign-laravel-mailboxlayer)[kozz/email-address-parser

Simply parses and autocompletes email addresses

1219.9k](/packages/kozz-email-address-parser)

PHPackages © 2026

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