PHPackages                             rebelinblue/laravel5-zxcvbn - 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. rebelinblue/laravel5-zxcvbn

Abandoned → [rebelinblue/laravel-zxcvbn](/?search=rebelinblue%2Flaravel-zxcvbn)Library[Validation &amp; Sanitization](/categories/validation)

rebelinblue/laravel5-zxcvbn
===========================

Service provider to use the zxcvbn project by @dropbox in Laravel 5.4 and above

1.6.0(10mo ago)115.8k11[1 issues](https://github.com/REBELinBLUE/laravel-zxcvbn/issues)1MITPHPPHP &gt;=8.0CI failing

Since Oct 28Pushed 10mo ago1 watchersCompare

[ Source](https://github.com/REBELinBLUE/laravel-zxcvbn)[ Packagist](https://packagist.org/packages/rebelinblue/laravel5-zxcvbn)[ Docs](https://github.com/REBELinBLUE/laravel-zxcvbn)[ RSS](/packages/rebelinblue-laravel5-zxcvbn/feed)WikiDiscussions master Synced 2mo ago

READMEChangelog (9)Dependencies (9)Versions (10)Used By (1)

Laravel Zxcvbn validator
========================

[](#laravel-zxcvbn-validator)

[![Build Status](https://camo.githubusercontent.com/8cd4c40b47110f89f16ae209a7eb090e334c7a5755920eb4a4dc0f27b266f3d2/68747470733a2f2f696d672e736869656c64732e696f2f6769746875622f616374696f6e732f776f726b666c6f772f7374617475732f524542454c696e424c55452f6c61726176656c2d7a786376626e2f74657374732e796d6c3f6272616e63683d6d6173746572266c6162656c3d4275696c64267374796c653d666c61742d737175617265)](https://github.com/REBELinBLUE/laravel-zxcvbn/actions?query=workflow%3ATests)[![Code Coverage](https://camo.githubusercontent.com/97514647106195c05bc8fdd1c84de94b0bd2969d7a494d6c9db3e365e589fef7/68747470733a2f2f696d672e736869656c64732e696f2f636f6465636f762f632f6769746875622f524542454c696e424c55452f6c61726176656c2d7a786376626e2f6d61737465722e7376673f7374796c653d666c61742d737175617265266c6162656c3d436f766572616765)](https://codecov.io/gh/REBELinBLUE/laravel-zxcvbn)[![Software License](https://camo.githubusercontent.com/cd834958e6093e02af13430ebe7ce8c5eba3e5d49b6e33c775b5a0deceede9ce/68747470733a2f2f696d672e736869656c64732e696f2f62616467652f6c6963656e73652d4d49542d627269676874677265656e2e7376673f7374796c653d666c61742d737175617265266c6162656c3d4c6963656e7365)](/LICENSE.md)

This package provides a validator which uses Dropbox's [zxcvbn](https://github.com/dropbox/zxcvbn)password strength estimator; it uses the [PHP implementation](https://github.com/bjeavons/zxcvbn-php) from [bjeavons](https://github.com/bjeavons).

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

[](#installation)

This package can be installed through Composer.

```
composer require rebelinblue/laravel-zxcvbn
```

In Laravel 5.5 the package will auto-register the service provider. In Laravel 5.4 you must register this service provider manually in `config/app.php` by adding `REBELinBLUE\Zxcvbn\ZxcvbnServiceProvider::class` to the `providers` array

There is also an optional facade for Zxcvbn; in Laravel 5.5 it will be auto-registered. In Laravel 5.4 you must register the facade manually by adding the following to the `aliases` array in `config/app.php`

```
    'Zxcvbn' => REBELinBLUE\Zxcvbn\ZxcvbnFacade::class,
```

Optionally, you can publish the translations for this package with, however it is only required if you wish to change them

```
php artisan vendor:publish --provider="REBELinBLUE\Zxcvbn\ZxcvbnServiceProvider"
```

Usage
-----

[](#usage)

If you have added the alias you can access Zxcvbn from anywhere in your code using the façade

```
