Skip to content

mevdschee/php-crud-ui

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

PHP-CRUD-UI

Single file PHP script that adds a UI to a PHP-CRUD-API project

Requirements

  • PHP 7.0 or higher with Curl enabled
  • An URL of PHP-CRUD-API v2

Installation

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.

Compilation

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.

About

Single file PHP script that adds a UI to a PHP-CRUD-API project

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Contributors 5

Languages