2017 © Pedro Peláez
 

project skeleton-api

A Slim Framework skeleton for a (almost) REST api that uses JWTs for authentication and Laravel's Eloquent as the ORM

image

gurpreetatwal/skeleton-api

A Slim Framework skeleton for a (almost) REST api that uses JWTs for authentication and Laravel's Eloquent as the ORM

  • Thursday, March 31, 2016
  • by gurpreetatwal
  • Repository
  • 4 Watchers
  • 4 Stars
  • 73 Installations
  • PHP
  • 0 Dependents
  • 0 Suggesters
  • 3 Forks
  • 0 Open issues
  • 1 Versions
  • 0 % Grown

The README.md

Skeleton API

This project is still under development and is not ready for use in production., (*1)

This project helps to cut down on development time for PHP based APIs. Just by cloning the project you can create, update, find and delete users. The application supports JWT-based authentication, CORS for cross-site requests, and resource based urls. Logging is also set up already and application logs will be stored in logs/ directory., (*2)

Installation

It is assumed that composer is installed and available globally, if you need to install composer follow the steps here, (*3)

Run this command from the directory in which you want to develop your new API., (*4)

composer create-project gurpreetatwal/skeleton-api [my-app-name] -s dev

Replace [my-app-name] with the desired directory name for your new API. You'll want to:, (*5)

  • Point your virtual host document root to your new application's public/ directory.
  • Ensure logs/ is web writable.
  • Create your environment.ini by copying the example and replacing the default values.

To run your API locally, you can use PHP's built-in sever by running the following command:, (*6)

 php -S localhost:8888 -t public/ public/index.php

That's it! Now go build something cool., (*7)

Originally a fork of Slim-Skeleton, (*8)

The Versions

31/03 2016

dev-master

9999999-dev https://github.com/gurpreetatwal/Skeleton-API

A Slim Framework skeleton for a (almost) REST api that uses JWTs for authentication and Laravel's Eloquent as the ORM

  Sources   Download

MIT

The Requires

 

rest jwt eloquent psr7 slim microframework router slim3