Skip to content

Commit

Permalink
Merge branch 'release/2.0.0'
Browse files Browse the repository at this point in the history
  • Loading branch information
lcobucci committed Nov 23, 2014
2 parents 28edaa4 + 9ea579f commit 581e70a
Show file tree
Hide file tree
Showing 37 changed files with 2,052 additions and 484 deletions.
18 changes: 13 additions & 5 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,16 +1,24 @@
# JWT

master [![Build Status](https://secure.travis-ci.org/lcobucci/jwt.png?branch=master)](http://travis-ci.org/#!/lcobucci/jwt)
develop [![Build Status](https://secure.travis-ci.org/lcobucci/jwt.png?branch=develop)](http://travis-ci.org/#!/lcobucci/jwt)
master
[![Build Status](https://secure.travis-ci.org/lcobucci/jwt.png?branch=master)](http://travis-ci.org/#!/lcobucci/jwt)
[![Scrutinizer Code Quality](https://scrutinizer-ci.com/g/lcobucci/jwt/badges/quality-score.png?b=master)](https://scrutinizer-ci.com/g/lcobucci/jwt/?branch=master)
[![Code Coverage](https://scrutinizer-ci.com/g/lcobucci/jwt/badges/coverage.png?b=master)](https://scrutinizer-ci.com/g/lcobucci/jwt/?branch=master)

develop
[![Build Status](https://secure.travis-ci.org/lcobucci/jwt.png?branch=develop)](http://travis-ci.org/#!/lcobucci/jwt)
[![Scrutinizer Code Quality](https://scrutinizer-ci.com/g/lcobucci/jwt/badges/quality-score.png?b=develop)](https://scrutinizer-ci.com/g/lcobucci/jwt/?branch=develop)
[![Code Coverage](https://scrutinizer-ci.com/g/lcobucci/jwt/badges/coverage.png?b=develop)](https://scrutinizer-ci.com/g/lcobucci/jwt/?branch=develop)

[![Total Downloads](https://poser.pugx.org/lcobucci/jwt/downloads.png)](https://packagist.org/packages/lcobucci/jwt)
[![Latest Stable Version](https://poser.pugx.org/lcobucci/jwt/v/stable.png)](https://packagist.org/packages/lcobucci/jwt)

A simple library to work with JSON Web Token and JSON Web Signature (requires PHP 5.5+)
A simple library to work with JSON Web Token and JSON Web Signature (requires PHP 5.5+).
The implementation is based on the [current draft](http://tools.ietf.org/html/draft-ietf-oauth-json-web-token-31).

## Instalation

Just add to your composer.json: ```"lcobucci/jwt": "~1.0"```
Just add to your composer.json: ```"lcobucci/jwt": "*"```

## Basic usage

Expand All @@ -21,7 +29,7 @@ Just use the builder to create a new JWT/JWS tokens:
```php
<?php
use Lcobucci\JWT\Builder;
use Lcobucci\JWT\Signer\Sha256;
use Lcobucci\JWT\Signer\Hmac\Sha256;

$token = (new Builder())->setIssuer('http://example.com') // Configures the issuer (iss claim)
->setAudience('http://example.org') // Configures the audience (aud claim)
Expand Down
48 changes: 24 additions & 24 deletions composer.json
Original file line number Diff line number Diff line change
@@ -1,27 +1,27 @@
{
"name" : "lcobucci/jwt",
"description" : "A simple library to work with JSON Web Token and JSON Web Signature",
"type" : "library",
"authors" : [{
"name" : "Luís Otávio Cobucci Oblonczyk",
"email" : "[email protected]",
"name" : "lcobucci/jwt",
"description" : "A simple library to work with JSON Web Token and JSON Web Signature",
"type" : "library",
"authors" : [
{
"name" : "Luís Otávio Cobucci Obloncz",
"email" : "[email protected]",
"role": "Developer"
}
],
"keywords" : ["JWT", "JWS"],
"license" : ["BSD-3-Clause"],
"require" : {
"php" : ">=5.5"
},
"require-dev" : {
"phpunit/phpunit" : "4.0.x",
"squizlabs/php_codesniffer" : "*",
"phpmd/phpmd" : "*"
},
"autoload" : {
"psr-4" : {
"Lcobucci\\JWT\\" : "src",
"Lcobucci\\JWT\\Test\\" : "test"
}
}
}
],
"keywords" : ["JWT", "JWS"],
"license" : ["BSD-3-Clause"],
"require" : {
"php" : ">=5.5"
},
"require-dev" : {
"phpunit/phpunit" : "~4.3",
"squizlabs/php_codesniffer" : "~1.5",
"phpmd/phpmd" : "~2.1"
},
"autoload" : {
"psr-4" : {
"Lcobucci\\JWT\\" : ["src", "test"]
}
}
}
Loading

0 comments on commit 581e70a

Please sign in to comment.