Git Product home page Git Product logo

example-php-leaf's Introduction

DevCycle PHP Server SDK Example App

An example app built using the DevCycle PHP Server SDK and the Leaf Framework

Requirements

PHP 7.3+ Composer

Creating a Demo Feature

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.

Installing Composer Locally

  • php -r "copy('https://getcomposer.org/installer', 'composer-setup.php');"
  • php composer-setup.php
  • php -r "unlink('composer-setup.php');"

Running the Example

Setup

  • Run php composer.phar install (local install) or composer install (global install) in the project directory to install dependencies
  • Create a .env file and set DEVCYCLE_SERVER_SDK_KEY to your Environment's SDK Key.
    You can find this under Settings > Environments on the DevCycle dashboard. Learn more about environments.

Development

php -S localhost:8080

Runs the app in the development mode. Requests may be sent to http://localhost:8080

Documentation

For more information about using the DevCycle PHP Server SDK, see the documentation

example-php-leaf's People

Contributors

andrewdmaclean avatar laurawarr avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.