2017 © Pedro Peláez
 

symfony-bundle frontend-bundle

A modern frontend development workflow for Symfony apps

image

regularjack/frontend-bundle

A modern frontend development workflow for Symfony apps

  • Thursday, March 15, 2018
  • by regularjack
  • Repository
  • 3 Watchers
  • 32 Stars
  • 9,197 Installations
  • PHP
  • 0 Dependents
  • 0 Suggesters
  • 3 Forks
  • 5 Open issues
  • 20 Versions
  • 17 % Grown

The README.md

frontend-bundle

A modern frontend development workflow for Symfony apps., (*1)

DEPRECATED

This project is deprecated. Use Webpack Encore instead., (*2)

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., (*3)

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., (*4)


Build Status Coverage Status Scrutinizer Code Quality SensioLabsInsight Packagist Version License Total Downloads, (*5)

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., (*6)

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., (*7)

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., (*8)

This bundle attempts to be the go-to solution for quickly, easily and cleanly setting up a tailored frontend development workflow in Symfony projects., (*9)

Supports PHP 5.4+, Symfony 2.7+, (*10)

Features

  • Asset pipeline
    • Automatically generate the build file for your preferred asset pipeline
    • Supports Gulp (Webpack, Broccoli and others on the way)
    • Sensible defaults that work with most Symfony projects
    • You can easily adapt it for your use case
  • 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 install away
    • No more vendor code in your repository
    • Automatically generates vendor.js and vendor.css files from your bower.json
  • 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

View Documentation, (*11)

Contributing

CONTRIBUTING, (*12)

The Versions

09/10 2015

v0.1.6

0.1.6.0 https://github.com/regularjack/frontend-bundle

A modern frontend development workflow for Symfony apps

  Sources   Download

MIT

The Requires

 

The Development Requires

by Paulo Rodrigues Pinto

frontend bower npm front-end gulp livereload

25/08 2015

v0.1.3

0.1.3.0 https://github.com/regularjack/frontend-bundle

A modern frontend development workflow for Symfony apps

  Sources   Download

MIT

The Requires

 

The Development Requires

by Paulo Rodrigues Pinto

frontend front-end

25/08 2015

v0.1.2

0.1.2.0 https://github.com/regularjack/frontend-bundle

A modern frontend development workflow for Symfony apps

  Sources   Download

MIT

The Requires

 

The Development Requires

by Paulo Rodrigues Pinto

frontend front-end

18/08 2015

v0.1.1

0.1.1.0 https://github.com/regularjack/frontend-bundle

A modern frontend development workflow for Symfony apps

  Sources   Download

MIT

The Requires

 

The Development Requires

by Paulo Rodrigues Pinto

frontend front-end

15/08 2015

v0.1.0

0.1.0.0 https://github.com/regularjack/frontend-bundle

A modern frontend development workflow for Symfony apps

  Sources   Download

MIT

The Requires

 

The Development Requires

by Paulo Rodrigues Pinto

frontend front-end