kura-lab / cose-php
Json Web Token (JWT) Library
1.1.2
2017-01-22 10:52 UTC
Requires
- php: >=5.4.0
- 2tvenom/cborencode: dev-master
Requires (Dev)
- fabpot/php-cs-fixer: 1.7.*
- phpunit/phpunit: 4.6.*
- squizlabs/php_codesniffer: 2.*
This package is not auto-updated.
Last update: 2024-11-09 20:28:17 UTC
README
Constrained Object Signing and Encryption for PHP
Specification
Requirements
- PHP 5.4.0 or higher.
Installation
At first, install composer.
$ mkdir workspace
$ cd workspace
$ curl -s http://getcomposer.org/installer | php
Create composer.json.
{
"minimum-stability": "dev",
"require": {
"kura-lab/cose-php": "1.*"
}
}
Install cose library.
$ php composer.phar install
Development
Check coding style with CodeSniffer.
$ vendor/bin/phpcs --standard=PSR2 src/
Execute unit test with PHPUnit.
$ vendor/bin/phpunit
Fix source code with 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