All notable changes to this project will be documented in this file.
The format is based on Keep a Changelog, and this project adheres to Semantic Versioning.
- New class
Youthweb\Api\Configurationwas added. - New interface
Youthweb\Api\Authentication\Authenticatorwas added. - New class
Youthweb\Api\Authentication\NativeAuthenticatorwas added. - The class
Youthweb\Api\Exception\ErrorResponseExceptionwas added. - New method
Youthweb\Api\Exception\UnauthorizedException::getAuthorizationUrl()was added. - Add tests for PHP 8.1, 8.2 and 8.3
- Add static code analyze with PHPStan
- BREAKING: The method
Youthweb\Api\Client::__construct()was set to private, useYouthweb\Api\Client::fromConfig()instead. - BREAKING: The class
Youthweb\Api\Exception\UnauthorizedExceptionwas set tofinal. - Replace
Cache\Adapter\Void\VoidCachePoolwith newYouthweb\Api\Cache\NullCacheItemPoolclass. - Add parameter types and return types in nearly all classes
- Change code style to PER coding style
- Declare strict_types=1 in all PHP files
- Move CI tests from Travis-CI to Github Actions
- Move code coverage from Coveralls to Codecov.io
- BREAKING: The method
Youthweb\Api\ClientInterface::__construct()was removed. - BREAKING: The deprecated constant
Youthweb\Api\Client::CACHEKEY_ACCESS_TOKENwas removed. - BREAKING: The interface
Youthweb\Api\AuthenticatorInterfacewas removed, useYouthweb\Api\Authentication\Authenticatorinstead. - BREAKING: The class
Youthweb\Api\YouthwebAuthenticatorwas removed, useYouthweb\Api\Authentication\NativeAuthenticatorinstead. - BREAKING: The interface
Youthweb\Api\RequestFactoryInterfacewas removed, usePsr\Http\Message\RequestFactoryInterfaceinstead. - BREAKING: The class
Youthweb\Api\RequestFactorywas removed, use implementation ofPsr\Http\Message\RequestFactoryInterfaceinstead. - BREAKING: The interface
Youthweb\Api\HttpClientInterfacewas removed, usePsr\Http\Client\ClientInterfaceinstead. - BREAKING: The class
Youthweb\Api\HttpClientwas removed, use implementation ofPsr\Http\Client\ClientInterfaceinstead. - BREAKING: The class
Youthweb\Api\JsonObjectwas removed. - Drop support for PHP 7.4
0.10.0 - 2021-03-05
- Add support for PHP 7.4 and PHP 8.0
- default api version was set to Youthweb-API 0.18
- Drop support for PHP 7.2 and 7.3
0.9.0 - 2019-10-01
- api version will be automatically set into Oauth2Provider
- default api version was set to Youthweb-API 0.15
- Drop support for PHP 5.6, 7.0 and 7.1
0.8.0 - 2019-01-15
- Youthweb-API 0.14 Support
- New class
Youthweb\Api\Resource\Poststo get posts. - New method
Youthweb\Api\Resource\Users::showPosts()to get posts of a user.
- Breaking:
Youthweb\Api\Client::setUserCredentials()was removed, useYouthweb\Api\AuthenticatorInterfaceinstead. - Breaking:
Youthweb\Api\Client::getUserCredential()was removed, useYouthweb\Api\AuthenticatorInterfaceinstead. - Breaking:
Youthweb\Api\Client::setHttpClient()was removed, useYouthweb\Api\Client::__construct()instead. - Breaking:
Youthweb\Api\Client::setCacheProvider()was removed, useYouthweb\Api\Client::__construct()instead. - Breaking:
Youthweb\Api\Client::getCacheProvider()was removed, useYouthweb\Api\Client::getCacheItem($key),Youthweb\Api\Client::saveCacheItem($item)andYouthweb\Api\Client::deleteCacheItem($item)instead. - Breaking:
Youthweb\Api\Client::getUrl()was removed. - Breaking:
Youthweb\Api\Client::setUrl()was removed. - Breaking:
Youthweb\Api\Client::buildCacheKey()was removed. - Breaking:
Youthweb\Api\ClientInterface::getUserCredential()was removed. - Breaking:
Youthweb\Api\ClientInterface::setUserCredentials()was removed. - Breaking:
Youthweb\Api\ClientInterface::getCacheProvider()was removed. - Breaking:
Youthweb\Api\ClientInterface::getUrl()was removed. - Breaking:
Youthweb\Api\ClientInterface::setUrl()was removed. - Breaking:
Youthweb\Api\ClientInterface::buildCacheKey()was removed. - Breaking:
Youthweb\Api\Resource\Authwas removed. - Breaking:
Youthweb\Api\Resource\AuthInterfacewas removed.
0.7.0 - 2018-11-07
- Support for PHP 7.3 added
- Breaking: API Resources returning the data as
Art4\JsonApiClient\Accessableinstance instead ofArt4\JsonApiClient\Document
0.6.1 - 2018-09-20
- Every source file has now a license note
- Allow tests with PHPUnit 7
- Code Style was changed to PSR-2
0.6.0 - 2018-09-19
- Youthweb-API 0.12 support, but there is still code missing for accessing the new resources
- Update tests for PHPUnit 6
Youthweb\Api\Client::getUrl()is deprecated and triggers anE_USER_DEPRECATEDerror if usedYouthweb\Api\Client::setUrl()is deprecated and triggers anE_USER_DEPRECATEDerror if usedYouthweb\Api\Client::setUserCredentials()is deprecated and triggers anE_USER_DEPRECATEDerror if usedYouthweb\Api\Client::getUserCredential()is deprecated and triggers anE_USER_DEPRECATEDerror if usedYouthweb\Api\Client::setHttpClient()is deprecated and triggers anE_USER_DEPRECATEDerror if usedYouthweb\Api\Client::setCacheProvider()is deprecated and triggers anE_USER_DEPRECATEDerror if usedYouthweb\Api\Client::getCacheProvider()is deprecated and triggers anE_USER_DEPRECATEDerror if usedYouthweb\Api\Client::buildCacheKey()is deprecated and triggers anE_USER_DEPRECATEDerror if usedYouthweb\Api\Resource\Authis deprecated and triggers anE_USER_DEPRECATEDerror if usedYouthweb\Api\Resource\AuthInterfaceis deprecated and triggers anE_USER_DEPRECATEDerror if used
0.5.0 - 2016-11-01
- Implementation for OAuth2 Authorization Code Grant was added.
- New setting for config and collaborators through
Youthweb\Api\Client::__construct($config, $collaborators). - New method
Youthweb\Api\Resource\Users::showMe()for new API endpoint/me. - New factories for
Resourceand PSR-7Requestcreation. - New
Youthweb\Api\ClientmethodsgetCacheItem($key),saveCacheItem($item)anddeleteCacheItem($item)in replace for deprecatedYouthweb\Api\Client::setCacheProvider(). - New method
Youthweb\Api\Client::isAuthorized()to check if the client has a valid access_token. - New method
Youthweb\Api\Client::authorize()to authorize a grant. - New method
Youthweb\Api\Client::getAuthorizationUrl()to get an authorization url. - New method
Youthweb\Api\Client::getState()to get a random state.
- Youthweb-API 0.6 Support.
- Breaking: All classes are set to
finaland implement interfaces. All protected methods are now private. If you had extend some classes, implement the interface instead. - Breaking:
$datainYouthweb\Api\Client::getUnauthorized(),Youthweb\Api\Client::getUnauthorized()andYouthweb\Api\Client::postUnauthorized()must be an array. It cannot benullanymore. - Switch LICENSE from GPLv2 to GPLv3.
Youthweb\Api\Client::setUserCredentials()is deprecated and will be replaced with OAuth2 client.Youthweb\Api\Client::getUserCredential()is deprecated and will be replaced with OAuth2 client.Youthweb\Api\Client::setHttpClient()is deprecated. UseYouthweb\Api\Client::__construct()instead.Youthweb\Api\Client::setCacheProvider()is deprecated. UseYouthweb\Api\Client::__construct()instead.Youthweb\Api\Client::getCacheProvider()is deprecated. Use the new cache methods inYouthweb\Api\Clientinstead.
- Support for PHP 5.5 was dropped. Minimum requirement is now PHP 5.6.
0.4.0 - 2016-08-01
- Youthweb-API 0.5 Support
- set user credentials with
setUserCredentials('Username', 'User-Token') - new resources
users/<user_id>andauth/tokenadded
0.3.0 - 2015-11-20
- Youthweb-API 0.3 Support
- Breaking: API Resources return the data as
Art4\JsonApiClient\Documentobject instead ofstdClass
- Breaking: Manuel installation via
autoload.php. Use composer instead - Drop support for PHP 5.4
0.2.0 - 2015-06-21
- Youthweb-API 0.2 Support
- phpunit tests
- Travis-CI Support
- this CHANGELOG.md
0.1.0 - 2015-04-20
- First workable client for Youthweb-API Version 0.1
- Http client based on guzzlehttp/guzzle ~5.0