contributte / api-router-skeleton
Nette project example for contributte/api-router library by @f3l1x and @paveljanda
Fund package maintenance!
f3l1x
contributte.org/partners.html
Installs: 110
Dependents: 0
Suggesters: 0
Security: 0
Stars: 6
Watchers: 3
Forks: 4
Open Issues: 0
Type:project
Requires
- php: >= 7.1
- nette/application: ^2.4
- nette/bootstrap: ^2.4.2
- nette/caching: ^2.5
- nette/di: ^2.4
- nette/http: ^2.4
- nette/security: ^2.4
- nette/utils: ^2.4
- tracy/tracy: ^2.4
- ublaboo/api-router: ~2.0.0
Requires (Dev)
- nette/tester: ^1.6
This package is auto-updated.
Last update: 2024-10-10 13:31:35 UTC
README
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
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 extendingUI\Presenter
- Extending
ApiResponse
from NetteJsonResponse
, just to make it more simple to add more custom headers and so on LoginController
andErrorController
is usingApiResponseFormatter
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.
Consider to support contributte development team. Also thank you for using this package.