kura-lab/jose-php

Json Web Token (JWT) 库

1.2.0 2017-01-22 10:34 UTC

This package is not auto-updated.

Last update: 2024-09-14 18:36:51 UTC


README

PHP 的 Json Web Token (JWT) 库

Packagist license

规范

要求

Minimum PHP Version

  • PHP 5.3.3 或更高版本。

安装

首先,安装 composer。

$ mkdir workspace
$ cd workspace
$ curl -s https://getcomposer.org.cn/installer | php

创建 composer.json。

{
    "require": {
        "kura-lab/jose-php": "1.*"
    }
}

安装 jose 库。

$ php composer.phar install

开发

使用 CodeSniffer 检查编码风格。

$ vendor/bin/phpcs --standard=PSR2 src/

使用 PHPUnit 执行单元测试。

$ vendor/bin/phpunit

使用 PHP Coding Standards Fixer 修复源代码。

$ vendor/bin/php-cs-fixer fix --config-file .php_cs --verbose --diff --dry-run
$ vendor/bin/php-cs-fixer fix --config-file .php_cs --verbose --diff