Skip to content
This repository has been archived by the owner on Jul 18, 2020. It is now read-only.

awurth/CategoriesGameApi

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

29 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Slim REST base - A Slim 3 skeleton

This is an app skeleton for the Slim PHP Micro-Framework to get started quickly building a REST API

Features

Installation

$ composer create-project awurth/slim-rest-base [app-name]

Features

Create database tables

$ php bin/console db

Create users

$ php bin/console user:create

Use --admin option to set the user as admin

Dump routes

Execute the following command at the project root to print all routes in your terminal

$ php bin/console routes

Use --markdown or -m option to display routes in markdown format

$ php bin/console routes -m > API.md

If you're using Oh My Zsh, you can install the symfony2 plugin, which provides an alias and autocompletion:

# Without Symfony2 plugin
$ php bin/console db

# With Symfony2 plugin
$ sf db

Note

You might want to replace the authentication part with a real OAuth implementation

About

No description, website, or topics provided.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages