erdiko/users
最新稳定版本:1.0.0
Composer 安装命令:
composer require erdiko/users
包简介
User model standard
关键字:
README 文档
README
Erdiko Users
The erdiko/users is a package adding Service Models and AJAX endpoints for user management in a Erdiko application or your custom application. It will allow you to authenticate and authorize your users as well as create a user entity stored in a database.
Erdiko users leverages our authenticate and authorization packages.
Installation
Install the package via Composer
Add package using composer
composer require erdiko/users
Create & Install the DB
This package relies upon a number of database tables to store user records. You must create the database & tables before you can use this package.
We highly recomend installing the DB and tables with our install scripts found in the erdiko/user-admin repo (scripts/install-db.sh). More information can be found on the erdiko/user-admin README file.
If you would like to install the database manually, please use the users\sql\dumps\user-admin.sql to create the database defintion.
Add the required routes to your Erdiko application
Below are examples of the minimum required routes to interact with the users package:
- Login Controller OR UserAuthenticationAjax Controller Route
- The Login Controller exposes self-contained login/logout actions and views, these methods expose an HTML form to allow users to login
"/[ROUTE NAME]/:action": "\erdiko\users\controllers\admin\UserAjax"
- The UserAuthenticationAjax controller provides actions to manage login/logout and password related situations as forgotPass and changePassword. This route is for AJAX login & logout.
"/[ROUTE NAME]/:action": "\erdiko\users\controllers\UserAuthenticationAjax"
- The Login Controller exposes self-contained login/logout actions and views, these methods expose an HTML form to allow users to login
- Userajax Controller Route
- Provides actions relative to manage users without privileges, to have it accessible.
"/[ROUTE NAME]]/:action": "\erdiko\users\controllers\UserAjax"
- Provides actions relative to manage users without privileges, to have it accessible.
- admin\Userajax Controller Route
- Provides actions relative to manage users as admin level
"/ROUTE NAME]/:action": "\erdiko\users\controllers\admin\Userajax"
- Provides actions relative to manage users as admin level
Example Route Config
Below is an example config containing all the AJAX endpoints exposed by the package:
{
"routes": {
"/ajax/users/admin/:action": "\erdiko\users\controllers\admin\UserAjax",
"/ajax/users/:action": "\erdiko\users\controllers\UserAjax",
"/ajax/roles/:action": "\erdiko\users\controllers\RoleAjax",
"/ajax/auth/:action": "\erdiko\users\controllers\UserAuthenticationAjax",
"/users/:action": "\erdiko\users\controllers\Login"
}
}
Project Documentation
Complete project documentation can be found on our Erdiko documentation site (coming soon).
Special Thanks
Arroyo Labs - For sponsoring development, http://arroyolabs.com
erdiko/users 适用场景与选型建议
erdiko/users 是一款 基于 PHP 开发的 Composer 扩展包,目前已累计 1.25k 次下载、GitHub Stars 达 7, 最近一次更新时间为 2016 年 11 月 28 日, 在 PHP 生态内属于活跃度较高的组件。
它主要适用于以下技术方向: 「user」 「erdiko」 「erdiko-user」 等业务场景。在实际项目中,围绕这些方向常见需要落地的问题包括:接口对接、性能调优、并发安全、与既有框架(Laravel / ThinkPHP / Yii / Webman 等)的兼容适配,以及生产环境的日志埋点与稳定性保障。
我们在过去多个企业项目中使用过 erdiko/users 或与其功能相近的方案,如果你在选型或落地过程中遇到问题,例如 版本兼容、二次改造、私有化封装、与内部系统对接、生产 BUG 排查,欢迎联系我们协助评估。
基于 erdiko/users 在你已有业务上做功能扩展、字段裁剪、UI 适配、与内部账号 / 权限 / 日志系统的深度对接。
线上偶发问题、内存泄漏、慢查询、并发异常等排查修复;针对高流量场景做缓存、队列、索引层面的调优。
承接完整的项目从需求 → 设计 → 开发 → 上线 → 长期运维;也可按月提供技术保姆服务。
与 erdiko/users 相关的其它包
同方向 / 同关键字的高下载量 PHP Composer 包推荐,方便对比选型:
Erdiko micro MVC core libraries
Erdiko Wordpress package
Authentication module
Erdiko Shopify Package
Standalone replacement for php's native get_browser() function
User component for Yii2
统计信息
- 总下载量: 1.25k
- 月度下载量: 0
- 日度下载量: 0
- 收藏数: 7
- 点击次数: 10
- 依赖项目数: 1
- 推荐数: 0
其他信息
- 授权协议: MIT
- 更新时间: 2016-11-28