# Laravel vs Symfony
⚡️ Tags:
📍Comparison
📍Framework
| Criteria | Laravel | Symfony |
|---|---|---|
| CLI Tool | Artisan | Symfony CLI |
| Template engine | Blade | Twig |
| Request Handling | MVC | MVC |
| ORM | Eloquent | Doctrine |
| Data Source Pattern | Active Record | Data Mapper |
| Entities | plain PHP | inherit Eloquent logic |
| Migration | Migration file | Annotations within the entity |
| Memory Usage | more | less |
| Persistence | instance itself | EntityManager |
| Raw Query | SQL | Doctrine Query Language (DQL) |
| Rate Limiting | Rate Limiting (opens new window) | Rate Limiter (opens new window) |
| Service Container | Service Container (opens new window) | Service Container (opens new window) |
| Routing | Routing (opens new window) | Routing (opens new window) |
# Routing
# Service Container
# Register
# Resolve
...
# Release
...
# Model
# Create new Model
# Entities
Example
Persistence
Query language
http://laraveldoctrine.org/