2017 © Pedro Peláez
 

library frest

image

torchline/frest

  • Friday, May 6, 2016
  • by Bramamine
  • Repository
  • 1 Watchers
  • 1 Stars
  • 33 Installations
  • PHP
  • 0 Dependents
  • 0 Suggesters
  • 1 Forks
  • 0 Open issues
  • 2 Versions
  • 0 % Grown

The README.md

Introduction

This framework automatically fits a facade layer around your SQL tables and provides very configurable and powerful API endpoints. Just specify the desired behavior in a json file for each resource and you're ready to go., (*1)

Define what is possible to be read back, what is read back by default, how it will look, etc., (*2)

Features

  • URL routing for resources
  • CRUD operations
  • unlimited related resource nesting in a single request
  • functions on resources for custom behavior
  • type checking
  • pagination
  • conditional searching (>, <, LIKE, etc.)

Installation

Require this package with composer:, (*3)

composer require torchline/frest, (*4)

Querying

Function names: gt, gte, lt, lte, in, like, (*5)

        ?username=like(FullMetal~) - starts with
        ?money=gt(50) - greater than
        ?hair=in(blonde,black,red) - is one of

Partial objects:, (*6)

        ?fields=id,username,email - read only these fields back
        ?fields=* - read all fields back
        (if no fields specified, it goes to default)

        ?fields=name,owner(id, firstName, lastName) - do partial reads on child objects

Miscellaneous:, (*7)

    suppress_http_error_codes=true - make request always return 200 with actual http code embeded in response

The Versions

06/05 2016

dev-master

9999999-dev

  Sources   Download

The Requires

  • php >=5.3.0

 

The Development Requires

16/10 2013

1.0-beta

1.0.0.0-beta

  Sources   Download

The Requires

  • php >=5.3.0

 

The Development Requires