Skip to content

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

16 stars

Watchers

3 watching

Forks

Releases

Packages

Contributors

Languages