hch/performance-optimizer-bundle
最新稳定版本:v1.0.0
Composer 安装命令:
composer require hch/performance-optimizer-bundle
包简介
A Symfony bundle for automatic performance optimization.
README 文档
README
A Symfony bundle for automatic performance optimization.
Features
- Analyze database queries.
- Check cache configuration.
- Display performance metrics in the profiler.
Installation
-
Add the bundle to your project:
composer require hch/performance-optimizer-bundle
-
Enable the bundle in your
config/bundles.phpfile:return [ // ... HCH\PerformanceOptimizerBundle\PerformanceOptimizerBundle::class => ['all' => true], ];
-
Run the optimization command:
php bin/console performance:optimize
-
Usage Options:
You can specify options to run specific optimizations:
--cache: Optimize cache performance.--config: Check configuration files.--assets: Optimize assets.--images: Optimize images.--queries: Check for N+1 queries.Example:
``` php bin/console performance:optimize --cache --assets ``` -
Contributing:
Contributions are welcome! If you'd like to contribute to the PerformanceOptimizerBundle, please follow these steps:
1- Fork the repository.
2- Create a feature branch (git checkout -b feature/YourFeature).
3- Make your changes and commit them (git commit -m 'Add some feature').
4- Push to the branch (git push origin feature/YourFeature).
5- Create a pull request.
License
This bundle is released under the MIT License.
统计信息
- 总下载量: 17
- 月度下载量: 0
- 日度下载量: 0
- 收藏数: 1
- 点击次数: 0
- 依赖项目数: 0
- 推荐数: 0
其他信息
- 授权协议: MIT
- 更新时间: 2024-10-09