PHPackages                             repat/laravel-validator-emojis - 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. repat/laravel-validator-emojis

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

repat/laravel-validator-emojis
==============================

Laravel Validator for Emojis

0.3(2y ago)329.2k↑64.5%[1 issues](https://github.com/repat/laravel-validator-emojis/issues)MITPHPPHP &gt;=7.4

Since Jul 6Pushed 2y ago1 watchersCompare

[ Source](https://github.com/repat/laravel-validator-emojis)[ Packagist](https://packagist.org/packages/repat/laravel-validator-emojis)[ Docs](https://repat.de)[ RSS](/packages/repat-laravel-validator-emojis/feed)WikiDiscussions main Synced 1mo ago

READMEChangelog (3)Dependencies (5)Versions (4)Used By (0)

laravel-validator-emojis
========================

[](#laravel-validator-emojis)

[![Latest Version on Packagist](https://camo.githubusercontent.com/d8101d3a24862e21f7e92ee65b809c7960f402d0b363ea5ee817b86548920b5c/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f762f72657061742f6c61726176656c2d76616c696461746f722d656d6f6a69732e7376673f7374796c653d666c61742d737175617265)](https://packagist.org/packages/repat/laravel-validator-emojis)[![Total Downloads](https://camo.githubusercontent.com/614bfa326bc2578203f4b9a6bf6c2b2a417f18890b5329ef8a2e67587ad7f6bd/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f64742f72657061742f6c61726176656c2d76616c696461746f722d656d6f6a69732e7376673f7374796c653d666c61742d737175617265)](https://packagist.org/packages/repat/laravel-validator-emojis)

**laravel-validator-emojis** is a [custom Rule Object / Validator](https://laravel.com/docs/8.x/validation#custom-validation-rules) for Laravel that validates emojis using [steppinghat/emoji-detector](https://packagist.org/packages/steppinghat/emoji-detector)

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

[](#installation)

`$ composer require repat/laravel-validator-emojis`

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

[](#documentation)

```
use Illuminate\Http\Request;
use Repat\LaravelRules\ContainsEmojis;
use Repat\LaravelRules\DoesntContainEmojis;

// ...

public function controllerMethod(Request $request) {
    // Contains ANY emoji
    $request->validate([
        'string_to_validate' => new ContainsEmojis(),
    ]);

    // Contains ANY of given emoji
    $request->validate([
        'string_to_validate' => new ContainsEmojis(["🪂", "🤿"]), // $all = false
    ]);

    // Contains ALL given emoji
    $request->validate([
        'string_to_validate' => new ContainsEmojis(emojis: ["🔑", "🟤"], all: true),
    ]);

    // Contains NO emojis at all
    $request->validate([
        'string_to_validate' => new DoesntContainEmojis(),
    ]);
}
```

Tests
-----

[](#tests)

```
vendor/bin/phpunit
```

License
-------

[](#license)

- MIT, see [LICENSE](https://github.com/repat/laravel-validator-emojis/blob/master/LICENSE)

Version
-------

[](#version)

- Version 0.3

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/laravel-validator-emojis&title=laravel-validator-emojis&language=&tags=github&category=software)

###  Health Score

25

—

LowBetter than 37% of packages

Maintenance13

Infrequent updates — may be unmaintained

Popularity31

Limited adoption so far

Community7

Small or concentrated contributor base

Maturity39

Early-stage or recently created project

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

Total

3

Last Release

776d 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 (4 commits)")

---

Tags

laravelvalidatorvalidationemoji

###  Code Quality

TestsPHPUnit

### Embed Badge

![Health badge](/badges/repat-laravel-validator-emojis/health.svg)

```
[![Health](https://phpackages.com/badges/repat-laravel-validator-emojis/health.svg)](https://phpackages.com/packages/repat-laravel-validator-emojis)
```

###  Alternatives

[proengsoft/laravel-jsvalidation

Validate forms transparently with Javascript reusing your Laravel Validation Rules, Messages, and FormRequest

1.1k2.3M49](/packages/proengsoft-laravel-jsvalidation)[laravel-validation-rules/credit-card

Validate credit card number, expiration date, cvc

2412.2M5](/packages/laravel-validation-rules-credit-card)[illuminatech/validation-composite

Allows uniting several validation rules into a single one for easy re-usage

184485.5k](/packages/illuminatech-validation-composite)[stuyam/laravel-phone-validator

A phone validator for Laravel using the free Twilio phone lookup service.

2861.3k](/packages/stuyam-laravel-phone-validator)[laravel-validation-rules/timezone

Validate that a given timezone is valid.

2119.0k](/packages/laravel-validation-rules-timezone)

PHPackages © 2026

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