xdbas/restwork

There is no license information available for the latest version (dev-master) of this package.

PHP RESTFull webservice

dev-master / 0.1.x-dev 2013-05-18 16:20 UTC

This package is not auto-updated.

Last update: 2024-10-26 15:41:11 UTC


README

Simple REST system to build small webservices without a huge framework or system for easy development.

Build Status

SYSTEM

Here is a brief explanation of how certain processes are set-up and called throughout the framework initialization.

  1. Enter framework via .htaccess index.php

Will handle the incoming request and will set up some globals for all paths. It will attempt to call the application.

  1. Application::Run() The main method of the application gets called to intialize and run the system

  2. Check system paths, Setup Error handlers and init autoloader Self explanatory

  3. Initialize the config handler and load config files

  4. Call bootstrap and call all methods prefixed with '_' in standard order

    5a. _beforeRequest gets called Execute user code before the request will be fetched

    5b. _gatherRequest Fetch / Gather the HTTP Request send from browser or other client

     - Initialize URI class to handle the Request URI
    

    5c _beforeRoute Execute user code before the uri will be analysed to fit an added route

    5d _analyzeRoute Matches the uri to a Route and saves the data