Releases: simivar/Genius-PHP
Releases · simivar/Genius-PHP
Refactoring is cool! 😎
Added
- Introduced
Genius\Exception\ApiResponseErrorException
- PHP-CS-Fixer with PSR12 configuration
- Enum
Genius\Enum\Scope
Genius\HttpClient\ClientConfiguration
Genius\HttpClient\Requester
Genius\HttpClient\RequestBuilder
Changed
- Marked
Genius\Genius
as final - All classes properties now have type-hints
- Object returned by and Exceptions thrown by
Genius\Resources\AbstractResource::sendRequest
changed
now onsuccess
it returns data fromresult
object preperty
and onerror
it throwsGenius\Exception\ApiResponseErrorException
.
This means that return value and exceptions of everyResource
has changed! - Moved
Genius\GeniusException
toGenius\Exception\GeniusException
- Moved
Genius\ConnectGeniusException
toGenius\Exception\ConnectGeniusException
- Moved
Genius\Resources\ResourceException
toGenius\Exception\ResourceException
- Marked all
*Resource
classes asfinal
- Renamed
OAuth2::getAuthUrl()
toOAuth2::getAuthorizeUrl()
- Renamed
Scope
toScopeList
Removed
- Support for PHP lower than 7.4
- Public methods
OAuth2::hasValidAccessToken()
,OAuth2::getAccessToken()
,OAuth2::setRedirectUri()
,OAuth2::setClientId()
,OAuth2::setScope()
- Scope constants from
ScopeList
class, useGenius\Enum\Scope
instead Genius\Genius::getRequestFactory
Genius\ConnectGenius::setUriFactory
Genius\ConnectGenius::getUriFactory
Genius\ConnectGenius
Genius\Authentication\ScopeList
constants, useEnum\Scope
instead
Prepare release 3.0.0
Added
- Introduced
Genius\Exception\ApiResponseErrorException
- PHP-CS-Fixer with PSR12 configuration
- Enum
Genius\Enum\Scope
Genius\HttpClient\ClientConfiguration
Genius\HttpClient\Requester
Genius\HttpClient\RequestBuilder
Changed
- Marked
Genius\Genius
as final - All classes properties now have type-hints
- Object returned by and Exceptions thrown by
Genius\Resources\AbstractResource::sendRequest
changed
now onsuccess
it returns data fromresult
object preperty
and onerror
it throwsGenius\Exception\ApiResponseErrorException
.
This means that return value and exceptions of everyResource
has changed! - Moved
Genius\GeniusException
toGenius\Exception\GeniusException
- Moved
Genius\ConnectGeniusException
toGenius\Exception\ConnectGeniusException
- Moved
Genius\Resources\ResourceException
toGenius\Exception\ResourceException
- Marked all
*Resource
classes asfinal
- Renamed
OAuth2::getAuthUrl()
toOAuth2::getAuthorizeUrl()
- Renamed
Scope
toScopeList
Removed
- Support for PHP lower than 7.4
- Public methods
OAuth2::hasValidAccessToken()
,OAuth2::getAccessToken()
,OAuth2::setRedirectUri()
,OAuth2::setClientId()
,OAuth2::setScope()
- Scope constants from
ScopeList
class, useGenius\Enum\Scope
instead Genius\Genius::getRequestFactory
Genius\ConnectGenius::setUriFactory
Genius\ConnectGenius::getUriFactory
Genius\ConnectGenius
Genius\Authentication\ScopeList
constants, useEnum\Scope
instead
🗑️ Remove "version" from composer.json
Removed
- "version" from composer.json
PHP 8 support is here! 🥳
PHP 7 support is here! 🥳
Added
- Support for HTTPlug 2.0
- Type-hints everywhere
- Introduced
Genius\GeniusException
Changed
- Signature of
Genius\Resources\ArtistsResource::getSongs
changed from array as second argument
togetSongs(int $id, string $sort = 'title', ?int $per_page = null, ?int $page = null)
- Signature of
Genius\Resources\WebPagesResource::get
changed from array as first argument
toget(string $raw_annotatable_url, ?string $canonical_url = null, ?string $og_url = null)
- Signature of
Genius\Resources\AnnotationsResource::post
changed from array as first argument
topost(array $annotation, array $referent, array $web_page)
- Signature of
Genius\Resources\AnnotationsResource::put
changed from array as first argument
toput(int $id, array $annotation, array $referent, array $web_page)
- Signature of
Genius\Resources\ReferentsResource::put
changed from array as first argument
toget(?int $created_by_id = null, ?int $song_id = null, ?int $web_page_id = null, string $text_format = 'dom', ?int $per_page = null, ?int $page = null)
Genius\Authentication\OAuth2::getAccessToken
returnsnull
instead offalse
Genius\Authentication\OAuth2::refreshToken
returnsnull
instead offalse
- All Exceptions thrown by library are children of
Genius\GeniusException
- Resources throw
Genius\Resources\ResourceException
when calling a method that requires
scope
andBearer
authentication is used - Exception messages in
Genius\Resources namespace
are now more developer-friendly contain
called method name and class
Removed
- Support for PHP <7.1
Introduce function get all available scopes
Introduce function get all available scopes
Introduce HTTPlug and oAuth2
Merge pull request #6 from simivar/dev Introduce version 1.0: HTTPlug and oAuth2
First composer-compatibile beta release
First composer-compatibile beta release.