From 71539f043b3873750b237755b8c87b35899cb98a Mon Sep 17 00:00:00 2001 From: Richard Henkenjohann Date: Fri, 22 Sep 2017 22:10:32 +0200 Subject: [PATCH 1/5] Change namespace Bump dependency --- composer.json | 4 ++-- src/Provider/EPost.php | 15 +++++++++------ 2 files changed, 11 insertions(+), 8 deletions(-) diff --git a/composer.json b/composer.json index c0a7f97..44a098b 100644 --- a/composer.json +++ b/composer.json @@ -14,11 +14,11 @@ }, "require": { "php": "^5.4 || ^7.0", - "league/oauth2-client": "~1.4" + "league/oauth2-client": "^1.4 || ^2.0" }, "autoload": { "psr-4": { - "EPost\\OAuth2\\Client\\": "src/" + "Richardhj\\EPost\\OAuth2\\Client\\": "src/" } } } diff --git a/src/Provider/EPost.php b/src/Provider/EPost.php index f89a011..5d3d664 100644 --- a/src/Provider/EPost.php +++ b/src/Provider/EPost.php @@ -1,14 +1,17 @@ + * @package richardhj/oauth2-epost + * @author Richard Henkenjohann + * @copyright 2015-2017 Richard Henkenjohann + * @license https://github.com/richardhj/oauth2-epost/blob/master/LICENSE LGPL-3.0 */ -namespace EPost\OAuth2\Client\Provider; +namespace Richardhj\EPost\OAuth2\Client\Provider; use League\OAuth2\Client\Provider\AbstractProvider; use League\OAuth2\Client\Provider\Exception\IdentityProviderException; @@ -19,7 +22,7 @@ /** * Class EPost - * @package EPost\OAuth2\Client\Provider + * @package Richardhj\EPost\OAuth2\Client\Provider */ class EPost extends AbstractProvider { From 0b93eb00c5ff5c601ac54dd4c1d3de219b9ed052 Mon Sep 17 00:00:00 2001 From: Richard Henkenjohann Date: Mon, 2 Oct 2017 01:26:00 +0200 Subject: [PATCH 2/5] Add travis badge --- README.md | 3 +++ 1 file changed, 3 insertions(+) diff --git a/README.md b/README.md index 8aed800..579aed7 100644 --- a/README.md +++ b/README.md @@ -1,5 +1,6 @@ # E-POSTBUSINESS Provider for OAuth 2.0 Client +[![Build Status][ico-build]][link-build] [![Latest Version on Packagist][ico-version]][link-packagist] [![Software License][ico-license]]() [![Dependency Status][ico-dependencies]][link-dependencies] @@ -36,9 +37,11 @@ $provider = new EPost\OAuth2\Client\Provider\EPost( The GNU Lesser General Public License (LGPL). +[ico-build]: https://travis-ci.org/richardhj/epost-api.svg?branch=master?style=flat-square [ico-version]: https://img.shields.io/packagist/v/richardhj/oauth2-epost.svg?style=flat-square [ico-license]: https://img.shields.io/badge/license-LGPL-brightgreen.svg?style=flat-square [ico-dependencies]: https://www.versioneye.com/php/richardhj:oauth2-epost/badge.svg?style=flat-square +[link-build]: https://travis-ci.org/richardhj/epost-api [link-packagist]: https://packagist.org/packages/richardhj/oauth2-epost [link-dependencies]: https://www.versioneye.com/php/richardhj:oauth2-epost From f56e365e20d627d2538feb9fceab288004e5d83f Mon Sep 17 00:00:00 2001 From: Richard Henkenjohann Date: Mon, 2 Oct 2017 01:33:08 +0200 Subject: [PATCH 3/5] Add travis badge --- README.md | 3 --- 1 file changed, 3 deletions(-) diff --git a/README.md b/README.md index 579aed7..8aed800 100644 --- a/README.md +++ b/README.md @@ -1,6 +1,5 @@ # E-POSTBUSINESS Provider for OAuth 2.0 Client -[![Build Status][ico-build]][link-build] [![Latest Version on Packagist][ico-version]][link-packagist] [![Software License][ico-license]]() [![Dependency Status][ico-dependencies]][link-dependencies] @@ -37,11 +36,9 @@ $provider = new EPost\OAuth2\Client\Provider\EPost( The GNU Lesser General Public License (LGPL). -[ico-build]: https://travis-ci.org/richardhj/epost-api.svg?branch=master?style=flat-square [ico-version]: https://img.shields.io/packagist/v/richardhj/oauth2-epost.svg?style=flat-square [ico-license]: https://img.shields.io/badge/license-LGPL-brightgreen.svg?style=flat-square [ico-dependencies]: https://www.versioneye.com/php/richardhj:oauth2-epost/badge.svg?style=flat-square -[link-build]: https://travis-ci.org/richardhj/epost-api [link-packagist]: https://packagist.org/packages/richardhj/oauth2-epost [link-dependencies]: https://www.versioneye.com/php/richardhj:oauth2-epost From 2f2d1af393ec198a5ebb3eb7df7795f2ee71091d Mon Sep 17 00:00:00 2001 From: Richard Henkenjohann Date: Fri, 13 Oct 2017 23:22:22 +0200 Subject: [PATCH 4/5] Update README --- README.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/README.md b/README.md index 8aed800..1d86bd5 100644 --- a/README.md +++ b/README.md @@ -21,7 +21,7 @@ But instead of the `GenericProvider` you're going to use this provider. This is how to initiate the provider: ```php -$provider = new EPost\OAuth2\Client\Provider\EPost( +$provider = new Richardhj\EPost\OAuth2\Client\Provider\EPost( [ 'clientId' => sprintf('%s,%s', EPOST_DEV_ID, EPOST_APP_ID), 'redirectUri' => 'http://localhost:8080/oauth2_redirect.php', // Only necessary for the Authorization Code Grant flow From c6feaf018a68c1a601337167e8eecf1f00629898 Mon Sep 17 00:00:00 2001 From: Richard Henkenjohann Date: Fri, 13 Oct 2017 23:23:00 +0200 Subject: [PATCH 5/5] Add CHANGELOG --- CHANGELOG.md | 6 ++++++ 1 file changed, 6 insertions(+) create mode 100644 CHANGELOG.md diff --git a/CHANGELOG.md b/CHANGELOG.md new file mode 100644 index 0000000..4c21c83 --- /dev/null +++ b/CHANGELOG.md @@ -0,0 +1,6 @@ +CHANGELOG +========= + +# v0.10.0 + +* Add vendor prefix `Richardhj\` to namespaces