Example starter project for ublaboo/api-router

v1.1.0 2017-07-20 09:34 UTC

This package is not auto-updated.

Last update: 2021-04-17 09:35:21 UTC


Latest Stable Version License Total Downloads Gitter

ApiRouter Example Project

This repository is meant as a starter project for ublaboo/api-router.


PHP 7.1 or higher.

ublaboo/api-router-project usage

composer create-project ublaboo/api-router-project

Long Story Short

  • Using ublaboo/api-router for routing
  • Implementing IPresenter in endpoints (App\Controllers\LoginController) instead of extending UI\Presenter
  • Extending ApiResponse from Nette JsonResponse, just to make it more simple to add more custom headers and so on
  • LoginController and ErrorController is using ApiResponseFormatter for formatting succes message, payload data or and exception