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\Configuration
was added. - New interface
Youthweb\Api\Authentication\Authenticator
was added. - New class
Youthweb\Api\Authentication\NativeAuthenticator
was added. - The class
Youthweb\Api\Exception\ErrorResponseException
was 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\UnauthorizedException
was set tofinal
. - Replace
Cache\Adapter\Void\VoidCachePool
with newYouthweb\Api\Cache\NullCacheItemPool
class. - 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_TOKEN
was removed. - BREAKING: The interface
Youthweb\Api\AuthenticatorInterface
was removed, useYouthweb\Api\Authentication\Authenticator
instead. - BREAKING: The class
Youthweb\Api\YouthwebAuthenticator
was removed, useYouthweb\Api\Authentication\NativeAuthenticator
instead. - BREAKING: The interface
Youthweb\Api\RequestFactoryInterface
was removed, usePsr\Http\Message\RequestFactoryInterface
instead. - BREAKING: The class
Youthweb\Api\RequestFactory
was removed, use implementation ofPsr\Http\Message\RequestFactoryInterface
instead. - BREAKING: The interface
Youthweb\Api\HttpClientInterface
was removed, usePsr\Http\Client\ClientInterface
instead. - BREAKING: The class
Youthweb\Api\HttpClient
was removed, use implementation ofPsr\Http\Client\ClientInterface
instead. - BREAKING: The class
Youthweb\Api\JsonObject
was 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\Posts
to get posts. - New method
Youthweb\Api\Resource\Users::showPosts()
to get posts of a user.
- Breaking:
Youthweb\Api\Client::setUserCredentials()
was removed, useYouthweb\Api\AuthenticatorInterface
instead. - Breaking:
Youthweb\Api\Client::getUserCredential()
was removed, useYouthweb\Api\AuthenticatorInterface
instead. - 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\Auth
was removed. - Breaking:
Youthweb\Api\Resource\AuthInterface
was removed.
0.7.0 - 2018-11-07
- Support for PHP 7.3 added
- Breaking: API Resources returning the data as
Art4\JsonApiClient\Accessable
instance 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_DEPRECATED
error if usedYouthweb\Api\Client::setUrl()
is deprecated and triggers anE_USER_DEPRECATED
error if usedYouthweb\Api\Client::setUserCredentials()
is deprecated and triggers anE_USER_DEPRECATED
error if usedYouthweb\Api\Client::getUserCredential()
is deprecated and triggers anE_USER_DEPRECATED
error if usedYouthweb\Api\Client::setHttpClient()
is deprecated and triggers anE_USER_DEPRECATED
error if usedYouthweb\Api\Client::setCacheProvider()
is deprecated and triggers anE_USER_DEPRECATED
error if usedYouthweb\Api\Client::getCacheProvider()
is deprecated and triggers anE_USER_DEPRECATED
error if usedYouthweb\Api\Client::buildCacheKey()
is deprecated and triggers anE_USER_DEPRECATED
error if usedYouthweb\Api\Resource\Auth
is deprecated and triggers anE_USER_DEPRECATED
error if usedYouthweb\Api\Resource\AuthInterface
is deprecated and triggers anE_USER_DEPRECATED
error 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
Resource
and PSR-7Request
creation. - New
Youthweb\Api\Client
methodsgetCacheItem($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
final
and implement interfaces. All protected methods are now private. If you had extend some classes, implement the interface instead. - Breaking:
$data
inYouthweb\Api\Client::getUnauthorized()
,Youthweb\Api\Client::getUnauthorized()
andYouthweb\Api\Client::postUnauthorized()
must be an array. It cannot benull
anymore. - 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\Client
instead.
- 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/token
added
0.3.0 - 2015-11-20
- Youthweb-API 0.3 Support
- Breaking: API Resources return the data as
Art4\JsonApiClient\Document
object 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