OpenXE/vendor/datto/json-rpc-http/examples/README.md

25 lines
451 B
Markdown
Raw Normal View History

2021-05-21 08:49:41 +02:00
# Examples
## Run the examples
Start in the project directory. Make sure you install the Composer dependencies:
```bash
composer install
```
Then, in a new terminal, start the example server (and leave it running):
```bash
php -S localhost:8080 examples/server.php
```
Now run the examples!
```bash
php examples/client.php
```
## Extend the examples
Start by looking in the "examples/src" directory. Then replace it all with your
project code.