johnny13/li3_usermanager
Composer 安装命令:
composer require johnny13/li3_usermanager
包简介
User management for Lithium PHP framework
README 文档
README
[]
(http://stillmaintained.com/djordje/li3_usermanager)
You can find first revision of this plugin under TAG 0.1
User managemant for Lithium PHP framework
li3_usermanager provide:
- User registration
- User activation trough link with token
- Password resets trough link with token
- Updating user data (email, password, about...)
- Log in / log out
- Access control trough AccessController (user auth data inspection and
jails/li3_accesswrapper) - User managemant (allowed for admins)
- Create users
- Promotion (group change)
- Activation / deactivation
- Editing users (email, password, about...)
Instalation
Easiest way to install li3_usermanager is trough composer (you can find documentation here)!
You should require li3_usermanager and li3_migrations to migrate database to desired state:
{
"minimum-stability": "dev",
"require": {
"djordje/li3_usermanager": "dev-master",
"djordje/li3_migrations": "dev-master"
}
}
Then run composer install
Now you have all dependencies for both libraries installed.
Next step is to add libraries to lithium, go to app/config/bootstrap/libraries.php and add next lines:
// li3_migrations Libraries::add('li3_migrations'); Libraries::add('li3_fixtures'); // li3_usermanager Libraries::add('li3_gravatar'); Libraries::add('li3_behaviors'); Libraries::add('li3_tree'); Libraries::add('li3_access'); Libraries::add('li3_validators'); Libraries::add('li3_swiftmailer'); Libraries::add('li3_usermanager'); Libraries::add('li3_backend');
Now open terminal and migrate database (you should have working database connection setup),
assume you have li3 in your path, or use full path to lithium/console/li3 instead:
// Create DB tables needed by `li3_access`
li3 migrate up --library=li3_access
// Create DB tables needed by `li3_usermanager` and populate `li3_access` table with needed rules
li3 migrate up --library=li3_usermanager
Usage
Go to http://your-url/login and login with username: root, password root. This is default user,
and you should change password to something else.
Now yo can go to http://your-url/backend/manage/users creadte, update, delete, promote users.
TODO
- Write unit tests for application
- Finish
ManageUserscontroller (Add abillity to edit user) - Finish console command
- Better documentation (add info about library options)
- Move some logic to models so we can reuse it in console commands
- Adapt library to use
jails/li3_access
johnny13/li3_usermanager 适用场景与选型建议
johnny13/li3_usermanager 是一款 基于 PHP 开发的 Composer 扩展包,目前已累计 8 次下载、GitHub Stars 达 0, 最近一次更新时间为 2015 年 06 月 20 日, 在 PHP 生态内属于活跃度较高的组件。
它主要适用于以下技术方向: 「php」 「user」 「manage」 「lithium」 「li3」 等业务场景。在实际项目中,围绕这些方向常见需要落地的问题包括:接口对接、性能调优、并发安全、与既有框架(Laravel / ThinkPHP / Yii / Webman 等)的兼容适配,以及生产环境的日志埋点与稳定性保障。
我们在过去多个企业项目中使用过 johnny13/li3_usermanager 或与其功能相近的方案,如果你在选型或落地过程中遇到问题,例如 版本兼容、二次改造、私有化封装、与内部系统对接、生产 BUG 排查,欢迎联系我们协助评估。
基于 johnny13/li3_usermanager 在你已有业务上做功能扩展、字段裁剪、UI 适配、与内部账号 / 权限 / 日志系统的深度对接。
线上偶发问题、内存泄漏、慢查询、并发异常等排查修复;针对高流量场景做缓存、队列、索引层面的调优。
承接完整的项目从需求 → 设计 → 开发 → 上线 → 长期运维;也可按月提供技术保姆服务。
与 johnny13/li3_usermanager 相关的其它包
同方向 / 同关键字的高下载量 PHP Composer 包推荐,方便对比选型:
Forked from https://github.com/deltaaskii/lara-pdf-merger. Add condition if(!class_exists('TCPDF')) (depreciated in php 7.2) to foreach.
The library provides a flexible way to add role-based access control management to CakePHP 3.x
Standalone replacement for php's native get_browser() function
User component for Yii2
Forked from https://github.com/rfookune/lara-pdf-merger-php-7-2. Replaced continue to break.
统计信息
- 总下载量: 8
- 月度下载量: 0
- 日度下载量: 0
- 收藏数: 0
- 点击次数: 21
- 依赖项目数: 0
- 推荐数: 0
其他信息
- 授权协议: BSD-3-Clause
- 更新时间: 2015-06-20