Skip to content

edoriansyah/rest-api

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

8 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Simple REST API

Create simple REST API using PHP Native

Getting Started

Prerequisite please install composer on your system.

Before we using this API, please run command below under rest-api directory

composer install

We now have a /vendor directory, and the DotEnv dependency is installed (we can also use our autoloader to load our classes from /src with no include() calls).

Create our local credentials in the .env file

.env

DB_HOST=localhost
DB_PORT=5432
DB_DATABASE=api_example
DB_USERNAME=api_user
DB_PASSWORD=api_password

About

Create simple REST API using PHP Native

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages