regularjack/frontend-bundle
Composer 安装命令:
composer require regularjack/frontend-bundle
包简介
A modern frontend development workflow for Symfony apps
README 文档
README
A modern frontend development workflow for Symfony apps.
DEPRECATED
This project is deprecated. Use Webpack Encore instead.
Webpack Encore is a simpler way to integrate Webpack into your Symfony application. It wraps Webpack, giving you a clean & powerful API for bundling JavaScript modules, pre-processing CSS & JS and compiling and minifying assets.
There used to be a time where Symfony had no first-class support for a modern frontend development workflow, which was the problem this bundle was trying to solve. With Webpack Encore that is no longer the case so there is no reason for this bundle to continue to exist. Webpack Encore does it better and is the officially recommended way to integrate frontend technologies into Symfony applications.
Symfony comes packaged with Assetic for managing frontend assets like CSS, JavaScript or images. Assetic is great to quickly start a project but, as applications grow, its limitations start to show.
It has thus become more and more common to integrate tools native to frontend development into Symfony projects (bower, gulp, webpack, livereload, etc). However, setting up a seamless frontend development workflow is not easy and developers must repeat themselves every time they start a new project.
There are several tools out there that make it easier to do this but they come with their own limitations and many are wrappers for the native frontend development tools. Developers should be able to use the native tools directly and have them just work within their Symfony projects.
This bundle attempts to be the go-to solution for quickly, easily and cleanly setting up a tailored frontend development workflow in Symfony projects.
Supports PHP 5.4+, Symfony 2.7+
Features
- Asset pipeline
- Use Symfony's native calls to reference assets
<script src="{{ asset('js/foo.js') }}"></script>- No need to clutter your Twig templates with boundaries for the asset pipeline
- Assets are automatically cache-busted in production
- Fast development
- Fast rebuilds make for an efficient workflow
- Only changed files are processed
- No more slow refreshes due to Assetic
- Livereload
- Browser updates when you save a file
- Change the CSS, the browser instantaneously updates, without a page reload
- Bower
- Frontend dependencies are a
bower installaway - No more vendor code in your repository
- Automatically generates
vendor.jsandvendor.cssfiles from yourbower.json
- Frontend dependencies are a
- Cache busting
- Automatically add a version to assets when in production
- No more need to set a version on every deploy
- An asset's version only changes if its content changed
Documentation
Contributing
regularjack/frontend-bundle 适用场景与选型建议
regularjack/frontend-bundle 是一款 基于 PHP 开发的 Composer 扩展包,目前已累计 22.64k 次下载、GitHub Stars 达 30, 最近一次更新时间为 2015 年 08 月 14 日, 在 PHP 生态内属于活跃度较高的组件。
它主要适用于以下技术方向: 「frontend」 「npm」 「bower」 「livereload」 「front-end」 「gulp」 等业务场景。在实际项目中,围绕这些方向常见需要落地的问题包括:接口对接、性能调优、并发安全、与既有框架(Laravel / ThinkPHP / Yii / Webman 等)的兼容适配,以及生产环境的日志埋点与稳定性保障。
我们在过去多个企业项目中使用过 regularjack/frontend-bundle 或与其功能相近的方案,如果你在选型或落地过程中遇到问题,例如 版本兼容、二次改造、私有化封装、与内部系统对接、生产 BUG 排查,欢迎联系我们协助评估。
基于 regularjack/frontend-bundle 在你已有业务上做功能扩展、字段裁剪、UI 适配、与内部账号 / 权限 / 日志系统的深度对接。
线上偶发问题、内存泄漏、慢查询、并发异常等排查修复;针对高流量场景做缓存、队列、索引层面的调优。
承接完整的项目从需求 → 设计 → 开发 → 上线 → 长期运维;也可按月提供技术保姆服务。
与 regularjack/frontend-bundle 相关的其它包
同方向 / 同关键字的高下载量 PHP Composer 包推荐,方便对比选型:
A simple Composer script to install NPM and/or Bower dependencies
Installs Node.js, NPM, and Yarn into vendor/bin
Query filtering in your frontend
Article CSS-ID Frontend Output Optimization
A Composer package that allows you to install or update Yii2 without Bower-Asset
Frontend support for the MultiColumnWizard
统计信息
- 总下载量: 22.64k
- 月度下载量: 0
- 日度下载量: 0
- 收藏数: 31
- 点击次数: 25
- 依赖项目数: 0
- 推荐数: 0
其他信息
- 授权协议: MIT
- 更新时间: 2015-08-14