Skip to content

All templates

ApiSymfony

Start a REST API on Symfony and API Platform, with API keys, problem details, a checked OpenAPI document and every quality gate already passing.

What it is for

Starting an API: delete the example resource and keep the rest.

What it ships

API Platform with an example resource, API tokens with scopes, errors as problem details, an OpenAPI document checked against the contract of an unversioned API, Doctrine with PostgreSQL (MySQL documented), and the tasks, tests and quality gates of MicroSymfony.

What it doesn’t ship

GraphQL (the API is REST only), accounts, an administration and pages beyond the home page, which come from WebSymfony or WebSkeleton, and any deployment file.

Install

composer create-project phil/apisymfony my-project

The template runs on FrankenPHP in worker mode through compose.yaml, or on the Symfony local server; Castor runs its tasks and checks (castor list).

Demo

Demo coming soon

Source code

The ApiSymfony repository on GitHub

The other templates