2017 © Pedro Peláez
 

library api-json

Views helper to create REST APIs with JSON and CORS

image

photon/api-json

Views helper to create REST APIs with JSON and CORS

  • Wednesday, January 24, 2018
  • by delkia
  • Repository
  • 2 Watchers
  • 0 Stars
  • 154 Installations
  • PHP
  • 0 Dependents
  • 0 Suggesters
  • 0 Forks
  • 0 Open issues
  • 6 Versions
  • 4 % Grown

The README.md

api-json

Views helper to create REST APIs, (*1)

Quick start

1) Add the module, (*2)

Use composer to add the module in your project, (*3)

composer require "photon/api-json:dev-master"

or for a specific version, (*4)

composer require "photon/api-json:1.0.0"

2) Create an API Endpoint, (*5)

Each class will handle all HTTP methods for an URL, (*6)

class MyAPIEndpoint extends \photon\views\APIJson\Rest
{
  public function GET($request, $match)
  {
    return array(
      'ok' => true,
      'method' => $request->method
    );
  }
}

3) Enjoy !, (*7)

The Versions

24/01 2018

dev-master

9999999-dev http://www.photon-project.com/

Views helper to create REST APIs with JSON and CORS

  Sources   Download

LGPL-2.1 LGPL-2.1-or-later

The Requires

 

The Development Requires

by William MARTIN

api cors json photon

24/01 2018

v1.1.1

1.1.1.0 http://www.photon-project.com/

Views helper to create REST APIs with JSON and CORS

  Sources   Download

LGPL-2.1-or-later

The Requires

 

The Development Requires

by William MARTIN

api cors json photon

24/01 2018

v1.1.0

1.1.0.0 http://www.photon-project.com/

Views helper to create REST APIs with JSON and CORS

  Sources   Download

LGPL-2.1

The Requires

 

The Development Requires

by William MARTIN

api cors json photon

16/10 2017

v1.0.2

1.0.2.0 http://www.photon-project.com/

Views helper to create REST APIs with JSON and CORS

  Sources   Download

LGPL-2.1

The Requires

 

The Development Requires

by William MARTIN

api cors json photon

16/10 2017

v1.0.1

1.0.1.0 http://www.photon-project.com/

Views helper to create REST APIs with JSON and CORS

  Sources   Download

LGPL-2.1

The Requires

 

The Development Requires

by William MARTIN

api cors json photon

13/10 2017

v1.0.0

1.0.0.0 http://www.photon-project.com/

Views helper to create REST APIs with JSON and CORS

  Sources   Download

LGPL-2.1

The Requires

 

The Development Requires

by William MARTIN

api cors json photon