Skip to content

Commit

Permalink
PSR-0 to PSR-4 Autoloading
Browse files Browse the repository at this point in the history
* PSR-0 => PSR-4
* PHP 5.6 tests added
* PHPUnit 4.x used instead of the version used by Travis-CI
* HHVM test badge added
  • Loading branch information
Spomky committed Oct 31, 2014
1 parent d81337e commit a1ff312
Show file tree
Hide file tree
Showing 33 changed files with 13 additions and 7 deletions.
8 changes: 4 additions & 4 deletions .travis.yml
Expand Up @@ -4,12 +4,12 @@ php:
- 5.3
- 5.4
- 5.5
- 5.6
- hhvm

matrix:
allow_failures:
- php: hhvm

before_script:
- curl -s http://getcomposer.org/installer | php
- php composer.phar --dev install

script:
- vendor/bin/phpunit
3 changes: 2 additions & 1 deletion README.md
Expand Up @@ -2,6 +2,7 @@ OAuth2 Server Implementation
============================

[![Build Status](https://secure.travis-ci.org/FriendsOfSymfony/oauth2-php.png?branch=master)](http://travis-ci.org/FriendsOfSymfony/oauth2-php)
[![HHVM Status](http://hhvm.h4cc.de/badge/FriendsOfSymfony/oauth2-php.svg)](http://hhvm.h4cc.de/package/FriendsOfSymfony/oauth2-php)

This library now implements draft 20 of OAuth 2.0.
The client is still only draft-10.
Expand All @@ -10,7 +11,7 @@ This version of oauth2-php is a fork of https://github.com/quizlet/oauth2-php wi

- Namespaced
- No more require(_once)
- [PSR-0](https://github.com/php-fig/fig-standards/blob/master/accepted/PSR-0.md) autoloading compatible
- [PSR-4](https://github.com/php-fig/fig-standards/blob/master/accepted/PSR-4-autoloader.md) autoloading compatible
- Uses [HttpFoundation](https://github.com/symfony/HttpFoundation) Request and Response for input/output
- More testable design
- Better test coverage
Expand Down
8 changes: 7 additions & 1 deletion composer.json
Expand Up @@ -19,8 +19,14 @@
"php": ">=5.3.2",
"symfony/http-foundation": "~2.0"
},
"require-dev": {
"phpunit/phpunit": "~4.0"
},
"autoload": {
"psr-0": { "OAuth2": "lib/" }
"psr-4": { "OAuth2\\": "lib/" }
},
"autoload-dev": {
"psr-4": { "OAuth2\\Tests\\": "tests/" }
},
"extra": {
"branch-alias": {
Expand Down
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
1 change: 0 additions & 1 deletion tests/bootstrap.php
@@ -1,4 +1,3 @@
<?php

$loader = require __DIR__ . '/../vendor/autoload.php';
$loader->add('OAuth2', __DIR__);

0 comments on commit a1ff312

Please sign in to comment.