Skip to content

imakumar98/php-fast

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

25 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

PHP Fast

PHP Fast is a mini framework use to create REST APIs in minutes.

Folder Structure

PHP Fast provides very easy and simple folder structure to work with, where you will have all basic necessary functions.

  • public
  • config
    • config.dev.php
    • config.php
    • config.prod.php
    • env.php
  • app
    • predefined
      • Database.php
      • Model.php
      • Request.php
      • Response.php
      • Service.php
      • Validate.php
    • user-defined
  • .htaccess
  • index.php
  • init.php
  • models.php
  • setup.php

Covers below endpoints

Example : Lets take an example of entity like Student

  1. /students : GET Returns all students
  2. /student/:id : GET Returns one student
  3. /student : POST Save student
  4. /student/:id : DELETE Delete student by ID
  5. /student/:id : PUT Update student by ID

Define Models

We are using PHP associative arrays to define model

Example : Define Student Model

Define field in this format field | type | is_required

$models['student'] = array( array('name', 'string', true) );

To Be Implemented

  1. Validation
  2. Foreign Key Constraint
  3. Authentication JWT

About

PHP framework to create REST APIs in minutes

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published