helllomatt/aspen-user-api
Composer 安装命令:
composer require helllomatt/aspen-user-api
包简介
API module for the ASPEN framework to manage users and authentication.
README 文档
README
This is an API used to allow for user management using the ASPEN framework. Users can:
- Register new accounts
- Activate accounts
- Reset passwords via request
- Log in via OAuth2 or Session
- Update information (when logged in)
- Change their password (when logged in)
How to install
There's two parts: firstly install the package, secondly set up the database.
Installing the package:
composer require helllomatt/aspen-user-api
Setting up the database:
- Navigate to the package
.../vendor/helllomatt/aspen-user-api - In the root folder you'll find
db.sql - Import
db.sqlinto your database
Code updates
In your index.php file there are two changes that need to be made.
- Add
session_start()underrequire 'vendor/autoload.php'(if you plan to use session based auth) - Add
vendor/helllomatt/aspen-user-apito the manager'sload()array
After that, you're ready to use the API.
Running tests
Tests require an actual database connection.
Modify the phpunit.xml file to reflect your database setup for running tests.
统计信息
- 总下载量: 28
- 月度下载量: 0
- 日度下载量: 0
- 收藏数: 0
- 点击次数: 0
- 依赖项目数: 0
- 推荐数: 0
其他信息
- 授权协议: MIT
- 更新时间: 2017-02-09