An example app built using the DevCycle PHP Server SDK and the Laravel Framework
PHP 8.2+ Composer
This example app requires that your project has a feature with the expected variables, as well as some simple targeting rules.
⇨ Click here to automatically create the feature in your project ⇦
When you run the example app and switch your identity between users, you'll be able to see the feature's different variations.
php -r "copy('https://getcomposer.org/installer', 'composer-setup.php');"
php composer-setup.php
php -r "unlink('composer-setup.php');"
- Run
php composer.phar install
(local install) orcomposer install
(global install) in the project directory to install dependencies - Update the
.env
file and setDEVCYCLE_SERVER_SDK_KEY
to your Environment's SDK Key.
You can find this under Settings > Environments on the DevCycle dashboard. Learn more about environments.
php artisan serve --port=8000
Runs the app in the development mode. Requests may be sent to http://localhost:8000
For more information about using the DevCycle PHP Server SDK, see the documentation