Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 8913849
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 15, 20262026-06-15T04:33:42+00:00 2026-06-15T04:33:42+00:00

Background I am working on modernizing a pre-existing PHP-driven website. This website started out

  • 0

Background

I am working on “modernizing” a pre-existing PHP-driven website. This website started out as a static website with a few php methods. It now has a mobile web app, multiple models, and a lot of dynamic content. However, overtime the structure of the app itself hasn’t changed much from when it was a largely static site, so now there are include files all over the place, no separation of application/presentation logic, etc etc. It is a mess to work on. So I am reorganizing everything and redeveloping a lot of the pre-existing functionality as we prepare for upcoming upgrades to the growing ecosystem. First, I am re-coding everythign to fit within an MVC architecture. Although I do work with PHP, most of my background comes from Ruby and Node, thus my question:

Actual Question

I’m rather fond of Rails’ Asset Pipeline, and seeing as the current site I’m working on (see above background) has about 10 different stylesheets and even more javascript files, I’d really like to implement some sort of asset manager as I transition the site over to an MVC setup.

I’ve found Assetic, which seems rather interesting, but I do not quite understand the best way to implement it into a templating system (I am not using any pre-built templating such as Twig, which any reference material I can find utilizes) or have it dynamically serve assets.

I also found something called Pipe: https://github.com/CHH/pipe, which looks like a very close port of Sprockets, but I couldn’t get it to properly run.

Are there any applications that implement Assetic (or Pipe), or another Asset packager that doesn’t rely on an existing template engine, such as Twig, that I could look at?

Really, I’m looking for something that will minify/combine multiple JS and CSS files, and then cache them.

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-15T04:33:44+00:00Added an answer on June 15, 2026 at 4:33 am

    Liek hakre said, Assetic works out of the box. You do not need any templating system (Twig, Smarty…) for it works.

    With a templating system, Twig is the best because, like hakre said, it’s strongly implemented. However, it’s not that diffucult to integrate it into any other template system (I quickly wrote a Smarty plugin for personnal use, it works well).

    Finaly Assetic does anything you need :

    • Combine JS/CSS : done with the AssetCollection class (has show here)
    • Minify : here you’ll use the filters Assetic provides : CssMin, JsMin, JsMin+, Google Closure Compiler, you’ve got the choise. There even are image fitler for image optimization (mainly quality lossless size reduction)
    • Cache : Assetic has a cache system so you don’t have to create one by yourslef.

    The last advantage that goes to Assetic is that it’s the one used by default in Symfony2, which is, imo, one of the best PHP framework lately, so it proves that Assetic is a good choice.

    Only problem I had so far using Assetic out of Symfony was the lack of documentation (the usage of the CssRewriteFilter in my case) but good understanding of the source code often helps getting how it’s supposed to work.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

Background: I'm working on a project that's starting out with a large SQL dump
I read this post but I can't get it working: Change Background Color... I
Ok, I need help. This is my first question here. Background: I am working
Background: I'm working on an e-commerce website. It was my original intention to add
Background: I am working on a proposal for a PHP/web-based P2P replication layer for
Background: When working with time, I wanted to pass now as an argument when
Background: working a user q&a site where users logged,etc. What user/visitor data should be
Background I am working with a monad built of a stack of transformers one
BACKGROUND: I am working with large geometries that will be meshed or broken down
Background: Trevor was working on a test project solely for the purpose of trying

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.