Giter VIP home page Giter VIP logo

jwt-codeigniter's Introduction

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>) 验证token
  • jwt_helper::decode(<token>) 解码token
  • jwt_helper::create(<userId>) 创建token userId 为你要存放的字段

How to Use ?

  1. 复制 helperslibraries 里面的文件到相应的目录
  2. 按照说明引入

Donate

如果我的付出能够帮助到你,我也乐于接受你的帮助,小小的赞赏是我们持续进步的动力。

支付宝支付 微信支付

Thanks

JWT for CodeIgniter: https://github.com/b3457m0d3/JWT-CodeIgniter

jwt-codeigniter's People

Contributors

52admln avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.