contributte/api-router-skeleton

Nette project example for contributte/api-router library by @f3l1x and @paveljanda

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

This package is auto-updated.

Last update: 2024-04-10 12:23:59 UTC


README

68747470733a2f2f62616467656e2e6e65742f6769746875622f636865636b732f75626c61626f6f2f6170692d726f757465722d70726f6a6563742f6d6173746572 68747470733a2f2f62616467656e2e6e65742f636f766572616c6c732f632f6769746875622f75626c61626f6f2f6170692d726f757465722d70726f6a656374 68747470733a2f2f62616467656e2e6e65742f7061636b61676973742f646d2f75626c61626f6f2f6170692d726f757465722d70726f6a656374 68747470733a2f2f62616467656e2e6e65742f7061636b61676973742f762f75626c61626f6f2f6170692d726f757465722d70726f6a656374

68747470733a2f2f62616467656e2e6e65742f7061636b61676973742f7068702f75626c61626f6f2f6170692d726f757465722d70726f6a656374 68747470733a2f2f62616467656e2e6e65742f6769746875622f6c6963656e73652f75626c61626f6f2f6170692d726f757465722d70726f6a656374 68747470733a2f2f62616467656e2e6e65742f62616467652f737570706f72742f6769747465722f6379616e 68747470733a2f2f62616467656e2e6e65742f62616467652f737570706f72742f666f72756d2f79656c6c6f77 68747470733a2f2f62616467656e2e6e65742f62616467652f73706f6e736f722f646f6e6174696f6e732f463936383534

Website 🚀 contributte.org | Contact 👨🏻‍💻 f3l1x.io | Twitter 🐦 @contributte

68747470733a2f2f6170692e6d6963726f6c696e6b2e696f3f75726c3d68747470732533412532462532466578616d706c65732e636f6e74726962757474652e6f72672532466170692d726f757465722d736b656c65746f6e253246266f7665726c61792e62726f777365723d6c696768742673637265656e73686f743d74727565266d6574613d66616c736526656d6265643d73637265656e73686f742e75726c

Goal

Main goal is to provide skeleton for contributte/api-router library.

Focused on:

  • latest PHP 8
  • nette/* packages

Demo

https://examples.contributte.org/api-router-skeleton/

Installation

To install latest version of contributte/api-router-skeleton use Composer.

composer create-project -s dev contributte/api-router-skeleton acme

Start PHP development server via make dev.

And take a look at:

Get Started

  • Using contributte/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

Development

See how to contribute to this package.

This package is currently maintained by these authors.

538058?v=3&s=80 1488874?v=3&s=80

Consider to support contributte development team. Also thank you for using this package.