atefrihane/livewire-password-meter
最新稳定版本:1.0.1
Composer 安装命令:
composer require atefrihane/livewire-password-meter
包简介
A package dedicated to check password strength
README 文档
README
This repo can be used to easily integrate password strength feature to your livewire application
Installation
You can install the package via composer:
composer require atefrihane/livewire-password-meter
This package also depends on Alpine.js
Install it from here.
<script src="//unpkg.com/alpinejs" defer></script>
Screenshot
Usage
<livewire:password-field :wireKey="'password'" :class="'your-css-class'" :styles="'inline css styles'" :placeholder="'placeholder'" :eyeIcon="true" :showStrength="true" />
Props
| Prop | Description |
|---|---|
| wireKey | Key passed from the main livewire component (e.g., password) |
| placeholder | Input's placeholder |
| eyeIcon | Toggle the display of the password text between masked (hidden) and visible. |
| showStrength | Provides feedback to the user on the strength or security of the password they have entered (default = false) |
| class | Pass CSS classes to the component |
| styles | Pass inline CSS to the component |
Config
Optionally you can publish config files which can be used to override feedback messages
php artisan vendor:publish --provider="Atef\LivewirePasswordMeter\LivewirePasswordMeterServiceProvider" --tag="livewire-password-config"
Testing
composer test
Credits
License
The MIT License (MIT). Please see License File for more information.m
统计信息
- 总下载量: 11
- 月度下载量: 0
- 日度下载量: 0
- 收藏数: 11
- 点击次数: 1
- 依赖项目数: 0
- 推荐数: 0
其他信息
- 授权协议: MIT
- 更新时间: 2023-02-05
