PHP code example of codingspook / simple-rest-api
1. Go to this page and download the library: Download codingspook/simple-rest-api library. Choose the download type require. 2. Extract the ZIP file and open the index.php. 3. Add this code to the index.php.
<?php
require_once('vendor/autoload.php');
/* Start to develop here. Best regards https://php-download.com/ */
codingspook / simple-rest-api example snippets
bash
# Installa dipendenze
composer install
# Aggiorna autoload dopo aggiunta classi
composer dump-autoload
# Avvia server di sviluppo (PHP built-in)
php -S localhost:8000 -t public