Building Modern APIs in Expressive
This tutorial has hands-on components where you can actually code along with me. You will get the most out of the session if you do this.
Firstly download the resources for this tutorial from https://akrabat.com/stuff/2018-02-08-SunshinePHP-API-tutorial.zip
To work with the code, you need:
- PHP 7.1+
If you have these installed on your computer, then you can run:
$ unzip 2018-02-08-SunshinePHP-API-tutorial.zip $ cd api $ php -S 0.0.0.0:8888 -t public/
Alternatively, you can use the supplied Vagrantfile to create a virtual machine that contains all the requirements.
Unzip 2018-02-08-SunshinePHP-API-tutorial.zip to a folder
Using your terminal change directory to the folder you created by unzipping.
Start the VM with
In either case, you will edit the source files on your host machine using your PHP IDE or editor of choice. You may find it helpful to create a project for the