Git Product home page Git Product logo

rest-php-examples's Introduction

REST API with javascript client code samples

Lyra REST API code examples using our PHP SDK.

Configure your keys

All authentication information are defined in keys.php. You can use the already defined demo keys or update it with yours.

Available examples

Available examples: see index.html

Try it with docker

To run our examples using docker, you first need to install:

Start the container:

docker-compose up -d

and go to http://localhost:6980

Try it using your favorite web-server

Copy src/ directory content to your PHP server, and go to index.html page.

Try it on Heroku

You can easily install our examples on Heroku for free. First you need:

Next, to deploy php examples, do:

  • heroku create
  • git subtree push --prefix www heroku master

Start the container and open it in your web-browser:

  • heroku ps:scale web=1
  • heroku open

If you do some updates and you want to publish it, do:

  • git commit -am"some updates"
  • git push heroku master
  • heroku open

and see your changes on the web-browser.

rest-php-examples's People

Contributors

s-yagues avatar urodoz avatar yyoyo 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.