Releases: frontegg/php-sdk
Releases · frontegg/php-sdk
0.2.3: Add config option for "authentication base url" (#18)
* 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)
* composer.json: add PHP 8 support * Test on PHP 7 and PHP 8
v0.2.1
v0.2
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
Fronteggclass - added new constantTENANT_ID_ENV_NAMEto get the tenant ID from the env, cleanups were made.
Updates in Frontegg\Authenticator
- Adjusted the
Authenticator class - added usage of theApiJsonTrait` trait, cleanups were made. - Moved the
Frontegg\Authenticator\ApiErrorclass toFrontegg\Error\ApiError.
Updates in Frontegg\Audits
- Adjusted the
Auditsclient class - added usage of theApiJsonTraittrait, cleanups were made.
Updates in Frontegg\Events
- Adjusted the
Eventsclient class - added usage of theApiJsonTraittrait, 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
FronteggResponseErrorResolverto useFrontegg\Http\Responseconstants and methods. - Adjusted the
FronteggSendRequestResolverto useFrontegg\Http\Responseconstants and methods.
Updates in Frontegg\Http
- Removed the
ResponseInterfacebecause all constants had been migrated to the newResponseclass. - Added the
Responseclass instead of the removedResponseInterface.
Updates in Frontegg\Error
- Added the
ApiErrorTraittrait to provide API error handling logic.
Updates in Frontegg\Json
- Added the
ApiJsonTraittrait to provide JSON data manipulations logic.
Github Actions
- Added Github Actions config for running Unit tests on push action.
- Added
phpunit.xmlfor running Unit tests with Github Actions.
Demo
- Added demo integration for Vanilla (raw) PHP with a Docker environment.
Tests
- Updated tests.