Verify Symfony project configuration including .env, services.yaml, doctrine settings, and framework requirements
This skill inherits all available tools. When active, it can use any tool Claude has access to.
Verify your Symfony project is properly configured before starting development.
# Required files
.env # Base environment variables
.env.local # Local overrides (not committed)
.env.test # Test environment
# Check .env exists
ls -la .env*
# Framework configuration
config/packages/framework.yaml
config/packages/doctrine.yaml
config/packages/security.yaml
config/services.yaml
# Routes
config/routes.yaml
config/routes/annotations.yaml # or attributes.yaml
your-project/
├── bin/
│ └── console
├── config/
│ ├── packages/
│ ├── routes/
│ └── services.yaml
├── public/
│ └── index.php
├── src/
│ ├── Controller/
│ ├── Entity/
│ └── Kernel.php
├── var/
│ ├── cache/
│ └── log/
├── vendor/
├── composer.json
└── composer.lock
# Check Symfony requirements
bin/console about
# Verify services are wired correctly
bin/console debug:autowiring
# Check routes
bin/console debug:router
# Verify Doctrine configuration
bin/console doctrine:mapping:info
# Check container compilation
bin/console cache:clear
# .env
APP_SECRET=your-secret-here
# Generate new secret
php -r "echo bin2hex(random_bytes(16));"
# .env
DATABASE_URL="postgresql://user:pass@127.0.0.1:5432/db?serverVersion=15"
# or
DATABASE_URL="mysql://user:pass@127.0.0.1:3306/db?serverVersion=8.0"
# Clear and warm cache
bin/console cache:clear
bin/console cache:warmup
# Fix permissions
chmod -R 777 var/cache var/log
# Or better, use ACL
setfacl -R -m u:www-data:rwX var
setfacl -dR -m u:www-data:rwX var
composer install
# Check differences
bin/console doctrine:schema:validate
# Generate migration
bin/console make:migration
# Run migrations
bin/console doctrine:migrations:migrate
If using API Platform:
# Verify API Platform is working
bin/console debug:router | grep api
# Check API resources
bin/console api:openapi:export
# Verify serialization groups
bin/console debug:serializer
If using Messenger:
# Verify transports
bin/console debug:messenger
# Check routing
bin/console debug:config framework messenger
.env file exists with required variablescomposer install executedbin/console cache:clear succeedsbin/console debug:autowiring shows services