master-ghd/symfony7-skeleton-webpack 问题修复 & 功能扩展

解决BUG、新增功能、兼容多环境部署,快速响应你的开发需求

邮箱:yvsm@zunyunkeji.com | QQ:316430983 | 微信:yvsm316

master-ghd/symfony7-skeleton-webpack

最新稳定版本:v2.1.0

Composer 安装命令:

composer create-project master-ghd/symfony7-skeleton-webpack

包简介

README 文档

README

A modern Symfony 8 application skeleton with Webpack integration for asset management.

Features

  • Symfony 8.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

Option 1: Clone the repository

  1. Clone the repository:
git clone [repository-url]
cd symfony7-skeleton-webpack

Option 2: Using Composer

Create a new project using Composer:

composer create-project master-ghd/symfony-skeleton-webpack ./symfony-skeleton-webpack

OR using Symfony CLI:

symfony composer create-project master-ghd/symfony-skeleton-webpack ./symfony-skeleton-webpack

Then navigate to the project directory:

cd symfony-skeleton-webpack

Complete the setup

  1. Install PHP dependencies (if not already installed):
composer install
  1. Install Node.js dependencies:
npm install
  1. Build assets:
# Development
npm run dev

# Production
npm run build
  1. Start the Symfony development server:
symfony serve

Development

  • Run npm run watch for automatic asset rebuilding during development
  • Use npm run dev for development builds
  • Use npm run build for 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 containers
  • make stop - Stop the Docker containers
  • make bash - Enter the PHP container shell
  • make test - Run PHPUnit tests
  • make cs-fix - Fix code style issues
  • make stan - Run PHPStan static analysis
  • make db-diff - Generate database migration
  • make 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:

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.

统计信息

  • 总下载量: 1
  • 月度下载量: 0
  • 日度下载量: 0
  • 收藏数: 0
  • 点击次数: 4
  • 依赖项目数: 0
  • 推荐数: 0

GitHub 信息

  • Stars: 0
  • Watchers: 0
  • Forks: 0
  • 开发语言: PHP

其他信息

  • 授权协议: proprietary
  • 更新时间: 2025-11-10

承接程序开发

PHP开发

VUE

Vue开发

前端开发

小程序开发

公众号开发

系统定制

数据库设计

云部署

网站建设

安全加固