master-ghd / symfony7-skeleton-webpack
Installs: 1
Dependents: 0
Suggesters: 0
Security: 0
Stars: 0
Watchers: 0
Forks: 0
Open Issues: 0
Language:Twig
Type:project
pkg:composer/master-ghd/symfony7-skeleton-webpack
Requires
- php: ^8.4
- ext-ctype: *
- ext-iconv: *
- doctrine/dbal: ^3.10.3
- doctrine/doctrine-bundle: ^2.18.1
- doctrine/doctrine-fixtures-bundle: ^4.3
- doctrine/doctrine-migrations-bundle: ^3.6
- doctrine/orm: ^3.5.3
- phpdocumentor/reflection-docblock: ^5.6.3
- phpstan/phpdoc-parser: ^2.3
- phpstan/phpstan-symfony: ^2.0.8
- symfony/console: 7.3.*
- symfony/dotenv: 7.3.*
- symfony/flex: ^2.9
- symfony/framework-bundle: 7.3.*
- symfony/http-client: 7.3.*
- symfony/messenger: 7.3.*
- symfony/property-access: 7.3.*
- symfony/property-info: 7.3.*
- symfony/requirements-checker: ^2.0.3
- symfony/runtime: 7.3.*
- symfony/security-bundle: 7.3.*
- symfony/serializer: 7.3.*
- symfony/twig-bundle: 7.3.*
- symfony/ux-icons: ^2.31
- symfony/validator: 7.3.*
- symfony/webpack-encore-bundle: ^2.3
- symfony/yaml: 7.3.*
Requires (Dev)
- fakerphp/faker: ^1.24.1
- friendsofphp/php-cs-fixer: ^3.89.2
- phpunit/phpunit: ^12.4.2
- rector/rector: ^2.2.7
- symfony/browser-kit: 7.3.*
- symfony/css-selector: 7.3.*
- symfony/debug-bundle: 7.3.*
- symfony/maker-bundle: ^1.64
- symfony/monolog-bundle: ^3.10
- symfony/stopwatch: 7.3.*
- symfony/web-profiler-bundle: 7.3.*
Conflicts
This package is auto-updated.
Last update: 2025-11-10 23:04:05 UTC
README
A modern Symfony 7 application skeleton with Webpack integration for asset management.
Features
- Symfony 7.x framework
- Webpack 5 for asset management
- SASS/SCSS support
- Modern JavaScript (ES6+) support
- Hot Module Replacement (HMR) in development
- Asset versioning and optimization for production
- Docker development environment
- Symfony Debug Toolbar
- Twig templating engine
Requirements
- PHP 8.4 or higher
- Node.js 18.x or higher
- Composer
- Docker and Docker Compose (optional)
Installation
- Clone the repository:
git clone [repository-url]
cd symfony7-skeleton-webpack
- Install PHP dependencies:
composer install
- Install Node.js dependencies:
npm install
- Build assets:
# Development npm run dev # Production npm run build
- Start the Symfony development server:
symfony serve
Development
- Run
npm run watchfor automatic asset rebuilding during development - Use
npm run devfor development builds - Use
npm run buildfor production builds
Directory Structure
├── assets/ # Frontend assets (JS, CSS, images)
├── config/ # Symfony configuration
├── public/ # Web root directory
├── src/ # PHP source code
├── templates/ # Twig templates
└── webpack.config.js # Webpack configuration
Makefile Commands
make start- Start the Docker containersmake stop- Stop the Docker containersmake bash- Enter the PHP container shellmake test- Run PHPUnit testsmake cs-fix- Fix code style issuesmake stan- Run PHPStan static analysismake db-diff- Generate database migrationmake db-migrate- Run database migrations
MDB Bootstrap Integration
This project uses Material Design for Bootstrap (MDB) v5:
- Full Bootstrap 5 compatibility
- Material Design components
- Responsive grid system
- Custom components included
- Dark mode support
- Utility classes available
Docker Configuration
The development environment includes:
- PHP 8.2 FPM
- Nginx web server
- MySQL 8.0
- Redis for caching
- Mailhog for email testing
Access services at:
- Website: http://localhost:8080
- PHPMyAdmin: http://localhost:8081
- Mailhog: http://localhost:8025
Current Routes
Main application routes:
/- Homepage/login- Authentication/register- User registration/admin- Admin dashboard/api/v1/*- REST API endpoints
Contributing
Please read our Contributing Guide for details on our code of conduct and the process for submitting pull requests.
License
This project is licensed under the MIT License - see the LICENSE file for details.
Written with assist of AI.