phramework / basic-authentication
Phramework 的基本认证实现
0.0.0
2015-11-28 13:04 UTC
Requires
- php: >=5.6
- ext-json: *
- phramework/phramework: ^1.0.0
Requires (Dev)
- phpunit/phpunit: 5.*
- satooshi/php-coveralls: dev-master
- squizlabs/php_codesniffer: *
This package is auto-updated.
Last update: 2024-09-14 21:25:35 UTC
README
Phramework 的基本认证实现
用法
需要包
composer require phramework/basic-authentication
//Set authentication class \Phramework\Authentication\Manager::register( \Phramework\Authentication\BasicAuthentication\BasicAuthentication::class ); //Set method to fetch user object, including password attribute \Phramework\Authentication\Manager::setUserGetByEmailMethod( [\MyApp\API\Models\User::class, 'getByEmailWithPassword'] ); \Phramework\Authentication\Manager::setAttributes( ['user_type', 'email'] );
安装依赖项
composer update
测试和代码检查
composer lint
composer test
许可协议
版权所有 © 2015 Xenofon Spafaridis
本软件基于 Apache 许可协议,版本 2.0 ("许可协议"); 除许可协议书面同意外,本软件不得用于任何用途。您可以在以下位置获得许可协议副本:
https://apache.ac.cn/licenses/LICENSE-2.0
除非适用法律要求或书面同意,否则根据许可协议分发的软件按“原样”提供,不提供任何明示或暗示的保证或条件。有关许可协议中规定的特定语言管理权限和限制,请参阅许可协议。