Download the PHP package andersundsehr/unleash without Composer
On this page you can find all versions of the php package andersundsehr/unleash. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Download andersundsehr/unleash
More information about andersundsehr/unleash
Files in andersundsehr/unleash
Package unleash
Short Description TYPO3 extension to integrate the getunleash.io feature toggle service.
License GPL-2.0-or-later
Informations about the package unleash
EXT:unleash
TYPO3 extension to integrate the Unleash feature toggle service.
installation
composer require andersundsehr/unleash
Set configuration in the extension settings:
Configuration
Required are the appUrl
and in most cases authorization
(if you use the hosted unleash service)
Usage
TypoScript Condition
you can use the custom TypoScript condition unleash
to check if a feature is enabled.
`
if you want to check A/B/n flags, you can use the unleashVariant
condition.
`
Fluid ViewHelper
if you want to check if a feature is enabled in your Fluid templates, you can use the unleash:isEnabled
ViewHelper.
`
if you want to check A/B/n flags, you can use the unleash:getVariant
ViewHelper.
`
PHP
you can inject the Unleash
service into your classes and use it like this:
The configuration and Context will already be set up for you.
for more detailed usage information, please refer to the Unleash PHP SDK Documentation
``
or you can use GeneralUtility to get the Unleash instance
``
CustomContext
with this extension you have the possiblity to constrain the feature toggles to specific users, or admins, or logged in users.
backend and frontend:
backendUser.isLoggedIn
backendUser.id
backendUser.username
backendUser.isAdmin
frontendUser.isLoggedIn
frontendUser.id
frontendUser.username
frontendUser.isAdmin
Extending with Events
you can extend the functionality of the Extension by using the following events.
UnleashBuilderBeforeBuildEvent
Event that is dispatched right before the UnleashBuilder is built (->build()
).
``
UnleashCustomContextEvent
This event is dispatched when the Unleash context is created.
use this if you only want to overwrite or add customContext data
if you want to change anything else, use the UnleashContextCreatedEvent
``
UnleashContextCreatedEvent
Event that is dispatched right after the UnleashContext is created with all the default values.
Will be called multiple times, once per ->isEnabled
or ->getVariant
call.
``
with ♥️ from anders und sehr GmbH
If something did not work 😮
or you appreciate this Extension 🥰 let us know.We are hiring https://www.andersundsehr.com/karriere/
All versions of unleash with dependencies
typo3/cms-core Version ^11.5 || ^12.4 || ^13.4
typo3/cms-lowlevel Version ^11.5 || ^12.4 || ^13.4
unleash/client Version ^2.5