Skip to content

๐ŸŽ API router project skeleton based on Nette Framework (@nette) and Contributte (@contributte) libraries by @f3l1x & @paveljanda.

License

Notifications You must be signed in to change notification settings

survik1/api-router-skeleton

ย 
ย 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 

Repository files navigation

Website ๐Ÿš€ contributte.org | Contact ๐Ÿ‘จ๐Ÿปโ€๐Ÿ’ป f3l1x.io | Twitter ๐Ÿฆ @contributte


Goal

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

Focused on:

  • latest PHP 8.0
  • 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 maintaining by these authors.


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

About

๐ŸŽ API router project skeleton based on Nette Framework (@nette) and Contributte (@contributte) libraries by @f3l1x & @paveljanda.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • PHP 87.5%
  • Makefile 12.5%