Skip to content

voduytuan/php-restful-mockery

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

6 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

php-restful-mockery

Create fake (mockery) Restful API Server in PHP for testing.

Installation

Copy all file to running directory. This project come with sample resource 'User', access via:

(GET) http://your-path-lo-mock-server/v1/user

This will return fake data in JSON.

Classmap

Because our controller (resource) is in OOP style (not plain functional php file), so, we need to create classmap if you want to create classname with Camel case, such as 'User'.

So, you need to declare this class map in file "/includes/classmap.php"

Components

This project is composed from Slim framework 2.0 (for Restfuly API) and Faker (for generate fake data).

About

Create fake (mockery) Restful API Server in PHP for testing.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published