Single file PHP script that adds a UI to a PHP-CRUD-API project
- PHP 7.0 or higher with Curl enabled
- An URL of PHP-CRUD-API v2
This is a single file application! Upload "ui.php
" somewhere and enjoy!
For local development you may run PHP's built-in web server:
php -S localhost:8080
Test the script by opening the following URL:
http://localhost:8080/ui.php/
Don't forget to modify the configuration at the bottom of the file.
You can compile all files into a single "ui.php
" file using:
php build.php
You can access the non-compiled code at the URL:
http://localhost:8080/src/records/posts/1
The non-compiled code resides in the "src
" and "vendor
" directories. The "vendor
" directory contains the dependencies.