2017 © Pedro Peláez
 

library api-framework

Basic light weight framework for external or internal APIs

image

czahoo/api-framework

Basic light weight framework for external or internal APIs

  • Friday, June 23, 2017
  • by Czahoo
  • Repository
  • 2 Watchers
  • 0 Stars
  • 154 Installations
  • PHP
  • 0 Dependents
  • 0 Suggesters
  • 0 Forks
  • 0 Open issues
  • 39 Versions
  • 0 % Grown

The README.md

Framework for API

After installing module using composer, you need to follow steps below:, (*1)

  1. Add content of src/.htaccess to your .htaccess file or just copy it to your root directory if u don't have one
  2. Create basic folder for your API (by default it should be named 'Api')
  3. Create application folder inside your Api (by default it should be named 'App')
  4. Create Routing.php file where you put your routing config with basic structure as defined below:
  5. Implement 'show' method in your basic controller which will be called by default if no other method is passed
  6. Create index.php file with code as presented below
  7. To call default method in your basic controller type yoursitename.com/api/ (for external api) or yoursitename.com/internal_api/ (for internal api)
  8. To call method 'test' in your custom controller for internal api type yoursitename.com/api/custom_route/test

File: index.php, (*2)

// Register vendor autoloader
require_once '../vendor/autoload.php';

// Start application
session_start();
Framework::detectContext($_GET['API_TYPE']);
Framework::translateUrl($_GET['URL']);
Framework::run();

File: Routing.php, (*3)

$FRAMEWORK_ROUTING = array(
    Framework::API_TYPE_EXTERNAL => array(
        Framework::DEFAULT_CONTROLLER_ROUTE_NAME => 'Api\App\Basic\Controller\BasicControllerName',
        'custom_route' => 'Api\App\Path\To\Your\Controller',
    ),
    Framework::API_TYPE_INTERNAL => array(
        Framework::DEFAULT_CONTROLLER_ROUTE_NAME => 'Api\App\Basic\Controller\BasicControllerName',
    ),
);

The Versions

23/06 2017

dev-master

9999999-dev https://github.com/Czahoo/api-framework

Basic light weight framework for external or internal APIs

  Sources   Download

MIT

The Requires

  • php >=5.4.0

 

The Development Requires

api framework light czahoo

23/06 2017

v1.1.12

1.1.12.0 https://github.com/Czahoo/api-framework

Basic light weight framework for external or internal APIs

  Sources   Download

MIT

The Requires

  • php >=5.4.0

 

The Development Requires

api framework light czahoo

23/06 2017

dev-fixForEmptyResponseFlag

dev-fixForEmptyResponseFlag https://github.com/Czahoo/api-framework

Basic light weight framework for external or internal APIs

  Sources   Download

MIT

The Requires

  • php >=5.4.0

 

The Development Requires

api framework light czahoo

20/11 2015

v1.1.11

1.1.11.0 https://github.com/Czahoo/api-framework

Basic light weight framework for external or internal APIs

  Sources   Download

MIT

The Requires

  • php >=5.4.0

 

The Development Requires

api framework light czahoo

16/11 2015

v1.1.10

1.1.10.0 https://github.com/Czahoo/api-framework

Basic light weight framework for external or internal APIs

  Sources   Download

MIT

The Requires

  • php >=5.4.0

 

The Development Requires

api framework light czahoo

16/11 2015

v1.1.9

1.1.9.0 https://github.com/Czahoo/api-framework

Basic light weight framework for external or internal APIs

  Sources   Download

MIT

The Requires

  • php >=5.4.0

 

The Development Requires

api framework light czahoo

09/11 2015

v1.1.8

1.1.8.0 https://github.com/Czahoo/api-framework

Basic light weight framework for external or internal APIs

  Sources   Download

MIT

The Requires

  • php >=5.4.0

 

The Development Requires

api framework light czahoo

09/11 2015

v1.1.7

1.1.7.0 https://github.com/Czahoo/api-framework

Basic light weight framework for external or internal APIs

  Sources   Download

MIT

The Requires

  • php >=5.4.0

 

The Development Requires

api framework light czahoo

09/11 2015

v1.1.6

1.1.6.0 https://github.com/Czahoo/api-framework

Basic light weight framework for external or internal APIs

  Sources   Download

MIT

The Requires

  • php >=5.4.0

 

The Development Requires

api framework light czahoo

09/11 2015

v1.1.5

1.1.5.0 https://github.com/Czahoo/api-framework

Basic light weight framework for external or internal APIs

  Sources   Download

MIT

The Requires

  • php >=5.4.0

 

The Development Requires

api framework light czahoo

06/11 2015

v1.1.4

1.1.4.0 https://github.com/Czahoo/api-framework

Basic light weight framework for external or internal APIs

  Sources   Download

MIT

The Requires

  • php >=5.4.0

 

The Development Requires

api framework light czahoo

05/11 2015

v1.1.3

1.1.3.0 https://github.com/Czahoo/api-framework

Basic light weight framework for external or internal APIs

  Sources   Download

MIT

The Requires

  • php >=5.4.0

 

The Development Requires

api framework light czahoo

05/11 2015

v1.1.2

1.1.2.0 https://github.com/Czahoo/api-framework

Basic light weight framework for external or internal APIs

  Sources   Download

MIT

The Requires

  • php >=5.4.0

 

The Development Requires

api framework light czahoo

05/11 2015

v1.1.1

1.1.1.0 https://github.com/Czahoo/api-framework

Basic light weight framework for external or internal APIs

  Sources   Download

MIT

The Requires

  • php >=5.4.0

 

The Development Requires

api framework light czahoo

05/11 2015

v1.1.0

1.1.0.0 https://github.com/Czahoo/api-framework

Basic light weight framework for external or internal APIs

  Sources   Download

MIT

The Requires

  • php >=5.4.0

 

The Development Requires

api framework light czahoo

04/11 2015

v1.0.20

1.0.20.0 https://github.com/Czahoo/api-framework

Basic light weight framework for external or internal APIs

  Sources   Download

MIT

The Requires

  • php >=5.4.0

 

api framework light czahoo

23/10 2015

v1.0.19

1.0.19.0 https://github.com/Czahoo/api-framework

Basic light weight framework for external or internal APIs

  Sources   Download

MIT

The Requires

  • php >=5.4.0

 

api framework light czahoo

16/10 2015

v1.0.18

1.0.18.0 https://github.com/Czahoo/api-framework

Basic light weight framework for external or internal APIs

  Sources   Download

MIT

The Requires

  • php >=5.4.0

 

api framework light czahoo

29/09 2015

v1.0.17

1.0.17.0 https://github.com/Czahoo/api-framework

Basic light weight framework for external or internal APIs

  Sources   Download

MIT

The Requires

  • php >=5.4.0

 

api framework light czahoo

29/09 2015

v1.0.16

1.0.16.0 https://github.com/Czahoo/api-framework

Basic light weight framework for external or internal APIs

  Sources   Download

MIT

The Requires

  • php >=5.4.0

 

api framework light czahoo

28/08 2015

v1.0.15

1.0.15.0 https://github.com/Czahoo/api-framework

Basic light weight framework for external or internal APIs

  Sources   Download

MIT

The Requires

  • php >=5.4.0

 

api framework light czahoo

28/08 2015

v1.0.13

1.0.13.0 https://github.com/Czahoo/api-framework

Basic light weight framework for external or internal APIs

  Sources   Download

MIT

The Requires

  • php >=5.4.0

 

api framework light czahoo

28/08 2015

v1.0.14

1.0.14.0 https://github.com/Czahoo/api-framework

Basic light weight framework for external or internal APIs

  Sources   Download

MIT

The Requires

  • php >=5.4.0

 

api framework light czahoo

27/08 2015

v1.0.12

1.0.12.0 https://github.com/Czahoo/api-framework

Basic light weight framework for external or internal APIs

  Sources   Download

MIT

The Requires

  • php >=5.4.0

 

api framework light czahoo

27/08 2015

v1.0.11

1.0.11.0 https://github.com/Czahoo/api-framework

Basic light weight framework for external or internal APIs

  Sources   Download

MIT

The Requires

  • php >=5.4.0

 

api framework light czahoo

27/08 2015

v1.0.10

1.0.10.0 https://github.com/Czahoo/api-framework

Basic light weight framework for external or internal APIs

  Sources   Download

MIT

The Requires

  • php >=5.4.0

 

api framework light czahoo

25/08 2015

v1.0.9

1.0.9.0 https://github.com/Czahoo/api-framework

Basic light weight framework for external or internal APIs

  Sources   Download

MIT

The Requires

  • php >=5.4.0

 

api framework light czahoo

25/08 2015

v1.0.8

1.0.8.0 https://github.com/Czahoo/api-framework

Basic light weight framework for external or internal APIs

  Sources   Download

MIT

The Requires

  • php >=5.4.0

 

api framework light czahoo

25/08 2015

v1.0.7

1.0.7.0 https://github.com/Czahoo/api-framework

Basic light weight framework for external or internal APIs

  Sources   Download

MIT

The Requires

  • php >=5.4.0

 

api framework light czahoo

25/08 2015

v1.0.7-alpha

1.0.7.0-alpha https://github.com/Czahoo/api-framework

Basic light weight framework for external or internal APIs

  Sources   Download

MIT

The Requires

  • php >=5.4.0

 

api framework light czahoo

19/08 2015

v1.0.6

1.0.6.0 https://github.com/Czahoo/api-framework

Basic light weight framework for external or internal APIs

  Sources   Download

MIT

The Requires

  • php >=5.4.0

 

api framework light czahoo

18/08 2015

v1.0.5

1.0.5.0 https://github.com/Czahoo/api-framework

Basic light weight framework for external or internal APIs

  Sources   Download

MIT

The Requires

  • php >=5.4.0

 

api framework light czahoo

18/08 2015

v1.0.4

1.0.4.0 https://github.com/Czahoo/api-framework

Basic light weight framework for external or internal APIs

  Sources   Download

MIT

The Requires

  • php >=5.4.0

 

api framework light czahoo

12/08 2015

v1.0.3

1.0.3.0 https://github.com/Czahoo/api-framework

Basic light weight framework for external or internal APIs

  Sources   Download

MIT

The Requires

  • php >=5.4.0

 

api framework light czahoo

12/08 2015

v1.0.2

1.0.2.0 https://github.com/Czahoo/api-framework

Basic light weight framework for external or internal APIs

  Sources   Download

MIT

The Requires

  • php >=5.4.0

 

api framework light czahoo

12/08 2015

v1.0.1

1.0.1.0 https://github.com/Czahoo/api-framework

Basic light weight framework for external or internal APIs

  Sources   Download

MIT

The Requires

  • php >=5.4.0

 

api framework light czahoo

05/08 2015

v1.0

1.0.0.0 https://github.com/Czahoo/api-framework

Basic light weight framework for external or internal APIs

  Sources   Download

MIT

The Requires

  • php >=5.4.0

 

api framework light czahoo

05/08 2015

v1.0-beta

1.0.0.0-beta https://github.com/Czahoo/api-framework

Basic light weight framework for external or internal APIs

  Sources   Download

MIT

The Requires

  • php >=5.4.0

 

api framework light czahoo

05/08 2015

v0.1.0-alpha

0.1.0.0-alpha https://github.com/Czahoo/api-framework

Basic light weight framework for external or internal APIs

  Sources   Download

MIT

The Requires

  • php >=5.4.0

 

api framework light czahoo