Skip to content

Releases: frontegg/php-sdk

0.2.3: Add config option for "authentication base url" (#18)

21 May 10:44
dfb6dcc
Compare
Choose a tag to compare
* Add "authenticationBaseUrl" to Frontegg Config

Hybrid mode may require different base urls for authentication and API requests. This
is because hybrid mode requires authentication via Frontegg Cloud but the actual API
endpoints will by hosted by the local hybrid instance. So authentication will go through
api.frontegg.com and other API calls will go to whatever url is defined by the hybrid
installation.

* Use authentication url from config to authenticate instead of service url

* Include "authenticationBaseUrl" in readme

v0.2.2: PHP 8: add official support (#17)

04 May 17:44
97a0905
Compare
Choose a tag to compare
* composer.json: add PHP 8 support

* Test on PHP 7 and PHP 8

v0.2.1

21 Sep 09:39
6a3283f
Compare
Choose a tag to compare

Release Notes

Updated the README.MD file.

Updates in README.MD

  • Added instruction on how to adapt raw PHP request parameters to PSR-7 Request for using the Frontegg Proxy.

v0.2

01 Sep 11:39
18e90cf
Compare
Choose a tag to compare

Release Notes

The stability and durability of the current PHP SDK were increased for Events and Proxy clients.
The code cleaning was made.

Updates in Frontegg

  • Adjusted the Frontegg class - added new constant TENANT_ID_ENV_NAME to get the tenant ID from the env, cleanups were made.

Updates in Frontegg\Authenticator

  • Adjusted the Authenticator class - added usage of the ApiJsonTrait` trait, cleanups were made.
  • Moved the Frontegg\Authenticator\ApiError class to Frontegg\Error\ApiError.

Updates in Frontegg\Audits

  • Adjusted the Audits client class - added usage of the ApiJsonTrait trait, cleanups were made.

Updates in Frontegg\Events

  • Adjusted the Events client class - added usage of the ApiJsonTrait trait, cleanups were made.
  • Adjusted other classes in this namespace.
  • Changed directory structure where Event type classes are stored.

Updates in Frontegg\Proxy\Filters

  • Adjusted the FronteggResponseErrorResolver to use Frontegg\Http\Response constants and methods.
  • Adjusted the FronteggSendRequestResolver to use Frontegg\Http\Response constants and methods.

Updates in Frontegg\Http

  • Removed the ResponseInterface because all constants had been migrated to the new Response class.
  • Added the Response class instead of the removed ResponseInterface.

Updates in Frontegg\Error

  • Added the ApiErrorTrait trait to provide API error handling logic.

Updates in Frontegg\Json

  • Added the ApiJsonTrait trait to provide JSON data manipulations logic.

Github Actions

  • Added Github Actions config for running Unit tests on push action.
  • Added phpunit.xml for running Unit tests with Github Actions.

Demo

  • Added demo integration for Vanilla (raw) PHP with a Docker environment.

Tests

  • Updated tests.