Skip to content

Releases: simivar/Genius-PHP

Refactoring is cool! 😎

03 Jun 17:23
Compare
Choose a tag to compare

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 on success it returns data from result object preperty
    and on error it throws Genius\Exception\ApiResponseErrorException.
    This means that return value and exceptions of every Resource has changed!
  • Moved Genius\GeniusException to Genius\Exception\GeniusException
  • Moved Genius\ConnectGeniusException to Genius\Exception\ConnectGeniusException
  • Moved Genius\Resources\ResourceException to Genius\Exception\ResourceException
  • Marked all *Resource classes as final
  • Renamed OAuth2::getAuthUrl() to OAuth2::getAuthorizeUrl()
  • Renamed Scope to ScopeList

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, use Genius\Enum\Scope instead
  • Genius\Genius::getRequestFactory
  • Genius\ConnectGenius::setUriFactory
  • Genius\ConnectGenius::getUriFactory
  • Genius\ConnectGenius
  • Genius\Authentication\ScopeList constants, use Enum\Scope instead

Prepare release 3.0.0

12 May 16:45
7d8fbba
Compare
Choose a tag to compare
Prepare release 3.0.0 Pre-release
Pre-release

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 on success it returns data from result object preperty
    and on error it throws Genius\Exception\ApiResponseErrorException.
    This means that return value and exceptions of every Resource has changed!
  • Moved Genius\GeniusException to Genius\Exception\GeniusException
  • Moved Genius\ConnectGeniusException to Genius\Exception\ConnectGeniusException
  • Moved Genius\Resources\ResourceException to Genius\Exception\ResourceException
  • Marked all *Resource classes as final
  • Renamed OAuth2::getAuthUrl() to OAuth2::getAuthorizeUrl()
  • Renamed Scope to ScopeList

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, use Genius\Enum\Scope instead
  • Genius\Genius::getRequestFactory
  • Genius\ConnectGenius::setUriFactory
  • Genius\ConnectGenius::getUriFactory
  • Genius\ConnectGenius
  • Genius\Authentication\ScopeList constants, use Enum\Scope instead

🗑️ Remove "version" from composer.json

05 May 12:56
eb7a4e6
Compare
Choose a tag to compare

Removed

  • "version" from composer.json

PHP 8 support is here! 🥳

05 May 12:52
5af2f01
Compare
Choose a tag to compare

Added

  • Allow installation on PHP8 (#26, credits: @Ximich)

PHP 7 support is here! 🥳

27 Dec 18:45
497f9cd
Compare
Choose a tag to compare

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
    to getSongs(int $id, string $sort = 'title', ?int $per_page = null, ?int $page = null)
  • Signature of Genius\Resources\WebPagesResource::get changed from array as first argument
    to get(string $raw_annotatable_url, ?string $canonical_url = null, ?string $og_url = null)
  • Signature of Genius\Resources\AnnotationsResource::post changed from array as first argument
    to post(array $annotation, array $referent, array $web_page)
  • Signature of Genius\Resources\AnnotationsResource::put changed from array as first argument
    to put(int $id, array $annotation, array $referent, array $web_page)
  • Signature of Genius\Resources\ReferentsResource::put changed from array as first argument
    to get(?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 returns null instead of false
  • Genius\Authentication\OAuth2::refreshToken returns null instead of false
  • All Exceptions thrown by library are children of Genius\GeniusException
  • Resources throw Genius\Resources\ResourceException when calling a method that requires
    scope and Bearer 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

13 Sep 07:12
Compare
Choose a tag to compare

Introduce function get all available scopes

Introduce HTTPlug and oAuth2

11 Jul 21:42
Compare
Choose a tag to compare
Merge pull request #6 from simivar/dev

Introduce version 1.0: HTTPlug and oAuth2

First composer-compatibile beta release

11 Nov 13:12
Compare
Choose a tag to compare

First composer-compatibile beta release.