Symfony with API Platform
Please check the projects section for more details.
Branch | API Platform Version | Symfony Version | PHP Version |
---|---|---|---|
v2-extending | ^2.7 |
^5.4 |
^8.0 |
v2-security | ^2.7 |
^5.4 |
^8.0 |
v2 | ^2.7 |
^5.4 |
^8.0 |
Sample application using API Platform V2 Custom Resources
Code: https://github.com/habibun/symfony-api-platform/tree/v2-extending
Resources:
- Symfony CLI, PHP, Composer, Git, Node.js
# Clone the repository using the command
git clone [email protected]:habibun/symfony-api-platform.git
# Navigate into the cloned directory
cd symfony-api-platform
# Checkout to project branch
git checkout v2-extending
# Create .env.local file
make init
In the .env.local file, configure the environment variables for docker compose
# Start docker compose services
make up
Configure the database connection in the .env.local file
# Install project
make install
# Start the local development server
make start
Please check more rules in Makefile.
Sample application using API Platform V2 Security
Code: https://github.com/habibun/symfony-api-platform/tree/v2-security
Resources:
git clone [email protected]:habibun/symfony-api-platform.git
cd symfony-api-platform
git checkout v2-security
symfony composer install
Sample application using API Platform V2
Code: https://github.com/habibun/symfony-api-platform/tree/v2-security
Resources:
git clone [email protected]:habibun/symfony-api-platform.git
cd symfony-api-platform
git checkout v2
symfony composer install
- API Platform Docs
- Swagger Docs
- Swagger UI
- RDF
- JSON-LD
- OpenAPI Specification
- Hydra
- A simple PHP API extension for DateTime
- The Serializer Component
Distributed under the MIT License. See LICENSE for more information.