marcusvy/live-bundle
最新稳定版本:v1.0.7
Composer 安装命令:
composer require marcusvy/live-bundle
包简介
Simple Live Reload for Symfony 8 + AssetMapper
README 文档
README
Installation
Use Composer to install the package:
composer require marcusvy/live-bundle --devAdd the <twig:LiveReload /> component to the Twig layout. Preferably before the closing tag .
<!DOCTYPE html>
<html>
<head></head>
<body>
<!-- Adicione o component Twig-->
<twig:LiveReload />
</body>
</html>
- Rode o comando
symfony console marcusvy:livereload:watch
Symfony CLI
For those using symfony-cli, you can create a .symfony.local.yaml file in the project root and work with workers. When you run the command symfony server:start, the service will run easily.
# .symfony.local.yaml
workers:
livereload:
cmd: ["symfony", "console", "marcusvy:livereload:watch"]
watch: ["config","src","templates","vendor"]
daemon: true
After creating the file, start the server embedded in symfony-cli
symfony server:start
Bundle Highlights
- Zero Node.js: Works in purely PHP environments.
- Turbo-Ready: Comes with Turbo Drive support (common in modern Symfony apps), performing a smooth reload instead of a hard refresh.
- Native AssetMapper: Uses the modern asset engine of Symfony 8, without needing npm install or build steps.
- Performance: Separates the scan process (Command) from the notification process (Controller), keeping the application fast.
- Free as Beer.
- Open Source: GPLv3
统计信息
- 总下载量: 7
- 月度下载量: 0
- 日度下载量: 0
- 收藏数: 0
- 点击次数: 2
- 依赖项目数: 0
- 推荐数: 0
其他信息
- 授权协议: GPL-3.0-or-later
- 更新时间: 2026-01-29