Skip to content

marselsampe/PHP-REST-native

Repository files navigation

PHP-REST-native

Sample of REST API build with native PHP.
Use PDO to manipulate MySQL database.
There also sample of client that access the API.

setting

.htaccess

Configure url in .htaccess based with your path

RewriteRule ^(.*)$ /nativerest/api/index.php

client

Configure url in the client code based with API url

$url = 'http://localhost:8080/NativeREST/api/barang';

screenshot

####1. API alt tag

alt tag ####2. Client alt tag

alt tag ####3. Sample Client App alt tag

About

Sample of REST API build with native PHP. There also sample of client that access the API

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published