sabservis / api
There is no license information available for the latest version (v1.0.2) of this package.
v1.0.2
2024-11-17 21:11 UTC
Requires
- php: >= 8.1
- koriym/attributes: ^1.0
- nette/di: ^3.2
- qa-data/psr7-http-message: ^1.1
- symfony/cache: ^6.4
- zircote/swagger-php: ^4.11
Requires (Dev)
- nette/tester: ^2.5
- nette/utils: ^4.0
- phpstan/phpstan: ^1.12
- slevomat/coding-standard: ^8.15
- tracy/tracy: ^2.10
This package is not auto-updated.
Last update: 2025-01-12 22:07:23 UTC
README
Based on Apitte and Nette Framework.
API
Setup
Register Base API using ApiExtension
to your Nette-based application.
# config.neon extensions: api: Sabservis\Api\DI\ApiExtension
After that, create entrypoint to your Nette-based application. For example www/index.php
looks like that.
// www/index.php use App\Bootstrap; use Sabservis\Api\Application\Application; require __DIR__ . '/../vendor/autoload.php'; Bootstrap::boot() ->createContainer() ->getByType(Application::class) ->run();