photogabble/laravel-registration-validator
Composer 安装命令:
composer require photogabble/laravel-registration-validator
包简介
Solid credential validation for Laravel.
README 文档
README
Solid credential validation for Laravel >= 5.5
About this package
An all-Latin username containing confusables is probably fine, and an all-Cyrillic username containing confusables is probably fine, but a username containing mostly Latin plus one Cyrillic code point which happens to be confusable with a Latin one… is not. - James Bennet
This package is a Laravel validation wrapper around the PHP Confusable Homoglyphs library to provide your application the ability to validate user input as not containing dangerous confusables.
I began writing this package soon after reading the above quote from this article by James Bennett on registration credential validation that referenced how Django’s auth system validates new users credentials.
In addition to unicode confusables validation this package also includes a PHP port of the reserved name validation that Django's auth system uses.
This is a PHP7 project built for use with Laravel versions 5.5 and above.
Install
Install this library with composer: composer require photogabble/laravel-registration-validator.
Usage
This package provides three validators: not-reserved-name, not-confusable-string and not-confusable-email.
Not Reserved Name Validator
This validator checks the input to ensure it does not contain any strings listed within config key registration-validation.reserved_list. To extend this list use the php artisan vendor:publish command to copy this config to your project.
Not Confusable String Validator
This validator checks the input using the PHP Confusable Homoglyphs library to ensure it does not contain any confusable unicode characters.
Not Confusable Email Validator
This validator does not validate that the input is a valid email address, instead it validates that a string containing an @ does not contain any confusable unicode characters for each part either side of the @ symbol.
photogabble/laravel-registration-validator 适用场景与选型建议
photogabble/laravel-registration-validator 是一款 基于 PHP 开发的 Composer 扩展包,目前已累计 13 次下载、GitHub Stars 达 1, 最近一次更新时间为 2018 年 02 月 14 日, 在 PHP 生态内属于活跃度较高的组件。
它主要适用于以下技术方向: 「email」 「registration」 「validation」 「auth」 「username」 「laravel」 等业务场景。在实际项目中,围绕这些方向常见需要落地的问题包括:接口对接、性能调优、并发安全、与既有框架(Laravel / ThinkPHP / Yii / Webman 等)的兼容适配,以及生产环境的日志埋点与稳定性保障。
我们在过去多个企业项目中使用过 photogabble/laravel-registration-validator 或与其功能相近的方案,如果你在选型或落地过程中遇到问题,例如 版本兼容、二次改造、私有化封装、与内部系统对接、生产 BUG 排查,欢迎联系我们协助评估。
基于 photogabble/laravel-registration-validator 在你已有业务上做功能扩展、字段裁剪、UI 适配、与内部账号 / 权限 / 日志系统的深度对接。
线上偶发问题、内存泄漏、慢查询、并发异常等排查修复;针对高流量场景做缓存、队列、索引层面的调优。
承接完整的项目从需求 → 设计 → 开发 → 上线 → 长期运维;也可按月提供技术保姆服务。
与 photogabble/laravel-registration-validator 相关的其它包
同方向 / 同关键字的高下载量 PHP Composer 包推荐,方便对比选型:
User handling for PHP applications.
Users management for Symfony projects.
Laravel Authentication package with built-in two-factor (Authy) and social authentication (Socialite).
Remove personal team forcing from Laravel Jetstream
Adds request-parameter validation to the SLIM 3.x PHP framework
Extensible library for building notifications and sending them via different delivery channels.
统计信息
- 总下载量: 13
- 月度下载量: 0
- 日度下载量: 0
- 收藏数: 1
- 点击次数: 5
- 依赖项目数: 0
- 推荐数: 0
其他信息
- 授权协议: MIT
- 更新时间: 2018-02-14