This project is a modern API boilerplate based on Symfony and API Platform. It provides a solid foundation for developing REST and GraphQL APIs with best practices, Docker support, and a modular architecture. It is intended as a starting point for new projects.
- Symfony Framework
- API Platform for rapid API development (REST & GraphQL)
- Docker setup for local development and production
- Support for Doctrine ORM
- CSRF protection and security configuration
- Asset management with Asset Mapper
- Migrations with Doctrine Migrations
- Extensive configuration options
- Unit and integration tests with PHPUnit
- Mercure Hub for real-time communication
- Docker & Docker Compose
- PHP >= 8.1 (for local development without Docker)
- Composer
docker compose up --build
The API will be available at http://localhost
.
- Install dependencies:
composer install
- Start the server:
symfony server:start
./bin/phpunit
src/
– Source code (Controller, Entity, Repository, ...)config/
– Configurationspublic/
– Webroot (entry point)assets/
– Frontend assets (JS, CSS)migrations/
– Database migrationstests/
– Testsdocker/
,frankenphp/
– Docker and server configurations
- Create migrations:
bin/console make:migration
- Run migrations:
bin/console doctrine:migrations:migrate
- Clear cache:
bin/console cache:clear
Dieses Projekt ist eine moderne API-Basis auf Basis von Symfony und API Platform. Es bietet eine solide Grundlage für die Entwicklung von REST- und GraphQL-APIs mit Best Practices, Docker-Support und einer modularen Architektur.
- Symfony-Framework
- API Platform für schnelle API-Entwicklung (REST & GraphQL)
- Docker-Setup für lokale Entwicklung und Produktion
- Unterstützung für Doctrine ORM
- CSRF-Schutz und Sicherheitskonfiguration
- Asset-Management mit Asset Mapper
- Migrationen mit Doctrine Migrations
- Umfangreiche Konfigurationsmöglichkeiten
- Unit- und Integrationstests mit PHPUnit
- Mercure Hub für Echtzeit-Kommunikation
- Docker & Docker Compose
- PHP >= 8.1 (bei lokaler Entwicklung ohne Docker)
- Composer
docker compose up --build
Die API ist dann unter http://localhost
erreichbar.
- Abhängigkeiten installieren:
composer install
- Server starten:
symfony server:start
./bin/phpunit
src/
– Quellcode (Controller, Entity, Repository, ...)config/
– Konfigurationenpublic/
– Webroot (Entry-Point)assets/
– Frontend-Assets (JS, CSS)migrations/
– Datenbankmigrationentests/
– Testsdocker/
,frankenphp/
– Docker- und Server-Konfigurationen
- Migrationen erstellen:
bin/console make:migration
- Migrationen ausführen:
bin/console doctrine:migrations:migrate
- Cache leeren:
bin/console cache:clear
Ce projet est une base moderne pour API, basée sur Symfony et API Platform. Il fournit une base solide pour le développement d’API REST et GraphQL avec les meilleures pratiques, le support Docker et une architecture modulaire. Il est destiné à servir de point de départ pour de nouveaux projets.
- Framework Symfony
- API Platform pour un développement rapide d’API (REST & GraphQL)
- Configuration Docker pour le développement local et la production
- Prise en charge de Doctrine ORM
- Protection CSRF et configuration de la sécurité
- Gestion des assets avec Asset Mapper
- Migrations avec Doctrine Migrations
- Nombreuses options de configuration
- Tests unitaires et d’intégration avec PHPUnit
- Mercure Hub pour la communication en temps réel
- Docker & Docker Compose
- PHP >= 8.1 (pour le développement local sans Docker)
- Composer
docker compose up --build
L’API sera disponible sur http://localhost
.
- Installer les dépendances :
composer install
- Démarrer le serveur :
symfony server:start
./bin/phpunit
src/
– Code source (Contrôleur, Entité, Répertoire, ...)config/
– Configurationspublic/
– Webroot (point d’entrée)assets/
– Assets frontend (JS, CSS)migrations/
– Migrations de base de donnéestests/
– Testsdocker/
,frankenphp/
– Configurations Docker et serveur
- Créer des migrations :
bin/console make:migration
- Exécuter les migrations :
bin/console doctrine:migrations:migrate
- Vider le cache :
bin/console cache:clear
© 2025 – Stefan Riedl