Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/lyra/rest-php-examples
https://github.com/lyra/rest-php-examples
Last synced: 4 days ago
JSON representation
- Host: GitHub
- URL: https://github.com/lyra/rest-php-examples
- Owner: lyra
- Created: 2018-09-25T09:01:19.000Z (about 6 years ago)
- Default Branch: master
- Last Pushed: 2023-09-27T09:26:15.000Z (about 1 year ago)
- Last Synced: 2023-09-27T19:36:31.390Z (about 1 year ago)
- Language: PHP
- Size: 259 KB
- Stars: 4
- Watchers: 9
- Forks: 23
- Open Issues: 4
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# REST API with javascript client code samples
Lyra REST API code examples using [our PHP SDK](https://github.com/lyra/rest-php-sdk).
## Configure your keys
All authentication information are defined in [keys.php](https://github.com/lyra/rest-php-examples/blob/master/www/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:
* [docker engine](https://docs.docker.com/engine/installation/)
* and [docker-compose](https://docs.docker.com/compose/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:
- a valid account, see https://www.heroku.com
- keroky cli installed locally: https://devcenter.heroku.com/articles/getting-started-with-php#set-upNext, to deploy php examples, do:
- heroku create
- git subtree push --prefix www heroku masterStart the container and open it in your web-browser:
- heroku ps:scale web=1
- heroku openIf you do some updates and you want to publish it, do:
- git commit -am"some updates"
- git push heroku master
- heroku openand see your changes on the web-browser.