Download the PHP package zulucrypto/mobius-dapp-quickstart without Composer
On this page you can find all versions of the php package zulucrypto/mobius-dapp-quickstart. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Download zulucrypto/mobius-dapp-quickstart
More information about zulucrypto/mobius-dapp-quickstart
Files in zulucrypto/mobius-dapp-quickstart
Package mobius-dapp-quickstart
Short Description Ready-to-run example Mobius DApp
License MIT
Informations about the package mobius-dapp-quickstart
Mobius DApp Quickstart
A ready-to-run Mobius DApp that can be hooked up to the app store. Just bring your Mobius developer account!
This example lets users flip a coin. If they win, they keep their MOBI. If they lose, it goes to the application. This probably won't catch on as a popular application, so it's up to you to write a better one!
Requirements
- PHP with SQLite installed
- Mobius Developer account (sign up here!)
Features
- Working DApp right out of the box
- Includes webhook handler that automatically creates users and syncs their balances
- Helpful commands for testing
Setup
Install with composer:
Enter your API key and App UID when prompted.
Start a web server:
Go to the URL given in the output from the previous command.
For example: http://localhost:8000/
Then, enter the email address you used when signing up for the DApp store. After clicking "Simulate Login" you'll see your credit balance.
Development
App Store Service
The DApp store API is available as a service:
Helpful Commands
To check a user's balance:
To test the webhook that gets called when a user makes a deposit:
Example Code
See src/AppBundle/Controller/CoinFlipController.php
for the code that implements this DApp
All versions of mobius-dapp-quickstart with dependencies
doctrine/doctrine-bundle Version ^1.6
doctrine/orm Version ^2.5
incenteev/composer-parameter-handler Version ^2.0
sensio/distribution-bundle Version ^5.0.19
sensio/framework-extra-bundle Version ^3.0.2
symfony/monolog-bundle Version ^3.1.0
symfony/polyfill-apcu Version ^1.0
symfony/swiftmailer-bundle Version ^2.3.10
symfony/symfony Version 3.3.*
twig/twig Version ^1.0||^2.0
zulucrypto/mobius-php Version ^1.0