Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/52admln/jwt-codeigniter
JSON Web Token native library for PHP
https://github.com/52admln/jwt-codeigniter
codeigniter jsonwebtoken jwt php
Last synced: 3 months ago
JSON representation
JSON Web Token native library for PHP
- Host: GitHub
- URL: https://github.com/52admln/jwt-codeigniter
- Owner: 52admln
- Created: 2017-08-01T03:41:13.000Z (over 7 years ago)
- Default Branch: master
- Last Pushed: 2018-04-20T02:02:35.000Z (over 6 years ago)
- Last Synced: 2024-10-14T00:20:13.426Z (3 months ago)
- Topics: codeigniter, jsonwebtoken, jwt, php
- Language: PHP
- Size: 3.91 KB
- Stars: 49
- Watchers: 9
- Forks: 16
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# JWT-CodeIgniter
JSON Web Token native library for PHP## Introduction
`jwt_helper.php` 文件为封装好的一个类,可直接使用,使用方法如下:配置 `application/config/autoload.php` 中,修改 `$autoload['helper'] = array()` 为 `$autoload['helper'] = array('jwt');`
调用方法:
- `jwt_helper::validate()` 验证token
- `jwt_helper::decode()` 解码token
- `jwt_helper::create()` 创建token userId 为你要存放的字段## How to Use ?
1. 复制 `helpers`、`libraries` 里面的文件到相应的目录
2. 按照说明引入## Donate
如果我的付出能够帮助到你,我也乐于接受你的帮助,小小的赞赏是我们持续进步的动力。![支付宝支付](http://o99llmab0.bkt.clouddn.com/alipay.png)
![微信支付](http://o99llmab0.bkt.clouddn.com/wechat.png)## Thanks
JWT for CodeIgniter: https://github.com/b3457m0d3/JWT-CodeIgniter