PHPackages                             almazary/laravel-word-censor - 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. [Validation &amp; Sanitization](/categories/validation)
4. /
5. almazary/laravel-word-censor

ActiveLibrary[Validation &amp; Sanitization](/categories/validation)

almazary/laravel-word-censor
============================

dirty word censor

1.0.1(3y ago)0178MITPHPPHP ^7.2|^8.0

Since May 27Pushed 3y ago1 watchersCompare

[ Source](https://github.com/almazary/laravel-word-censor)[ Packagist](https://packagist.org/packages/almazary/laravel-word-censor)[ Docs](https://github.com/almazary/laravel-word-censor)[ RSS](/packages/almazary-laravel-word-censor/feed)WikiDiscussions main Synced 1mo ago

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

Laravel Word Censor
===================

[](#laravel-word-censor)

[![Latest Version on Packagist](https://camo.githubusercontent.com/8f9e9ab83235cca5a3a5f4347ab56bcab980ac347dba7507998be4454261e162/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f762f616c6d617a6172792f6c61726176656c2d776f72642d63656e736f722e7376673f7374796c653d666c61742d737175617265)](https://packagist.org/packages/almazary/laravel-word-censor)[![Total Downloads](https://camo.githubusercontent.com/5896af4f7dbfbd17964d9b047adaed910e1c458a60f4e9b83ac38d8e4f301552/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f64742f616c6d617a6172792f6c61726176656c2d776f72642d63656e736f722e7376673f7374796c653d666c61742d737175617265)](https://packagist.org/packages/almazary/laravel-word-censor)

This package will make it easier when you want to replace certain words with a \*\*\* sign

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

[](#installation)

You can install the package via composer:

```
composer require almazary/laravel-word-censor
```

publish the config file with:

```
php artisan vendor:publish --tag="laravel-word-censor-config"
```

Usage
-----

[](#usage)

Via facade:

```
use Almazary\LaravelWordCensor\LaravelWordCensorFacade;

$a = LaravelWordCensorFacade::replace('bigger boob');
// result: bigger ***
```

Via middleware:

```
protected $middleware = [
    ...,
    ...,
    \Almazary\LaravelWordCensor\Middleware\Replace::class,
];
```

### Testing

[](#testing)

```
composer test
```

### Changelog

[](#changelog)

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

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

[](#contributing)

Please see [CONTRIBUTING](CONTRIBUTING.md) for details.

### Security

[](#security)

If you discover any security related issues, please email  instead of using the issue tracker.

Credits
-------

[](#credits)

- [Almazari](https://github.com/almazary)
- [All Contributors](../../contributors)

License
-------

[](#license)

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

Laravel Package Boilerplate
---------------------------

[](#laravel-package-boilerplate)

This package was generated using the [Laravel Package Boilerplate](https://laravelpackageboilerplate.com).

###  Health Score

25

—

LowBetter than 37% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity10

Limited adoption so far

Community7

Small or concentrated contributor base

Maturity54

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

Total

2

Last Release

1447d ago

PHP version history (2 changes)1.0.0PHP ^7.3|^8.0

1.0.1PHP ^7.2|^8.0

### Community

Maintainers

![](https://www.gravatar.com/avatar/9fa96c4368414f5da33906b6ee97fbd433afdc716c333fa2c298b61c372bc62a?d=identicon)[almazary](/maintainers/almazary)

---

Top Contributors

[![almazary](https://avatars.githubusercontent.com/u/1306831?v=4)](https://github.com/almazary "almazary (3 commits)")

---

Tags

almazarylaravel-word-censor

###  Code Quality

TestsPHPUnit

### Embed Badge

![Health badge](/badges/almazary-laravel-word-censor/health.svg)

```
[![Health](https://phpackages.com/badges/almazary-laravel-word-censor/health.svg)](https://phpackages.com/packages/almazary-laravel-word-censor)
```

###  Alternatives

[webmozart/assert

Assertions to validate method input/output with nice error messages.

7.6k894.0M1.2k](/packages/webmozart-assert)[bensampo/laravel-enum

Simple, extensible and powerful enumeration implementation for Laravel.

2.0k15.9M104](/packages/bensampo-laravel-enum)[swaggest/json-schema

High definition PHP structures with JSON-schema based validation

48612.5M73](/packages/swaggest-json-schema)[stevebauman/purify

An HTML Purifier / Sanitizer for Laravel

5325.6M19](/packages/stevebauman-purify)[ashallendesign/laravel-config-validator

A package for validating your Laravel app's config.

217905.3k5](/packages/ashallendesign-laravel-config-validator)[crazybooot/base64-validation

Laravel validators for base64 encoded files

1341.9M8](/packages/crazybooot-base64-validation)

PHPackages © 2026

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