Coder Social home page Coder Social logo

neilime / zf-assets-bundle Goto Github PK

View Code? Open in Web Editor NEW
4.0 4.0 0.0 959 KB

AssetsBundle is a module for Zend Framework 3+ allowing asset management (bundling & caching)

Home Page: https://neilime.github.io/zf-assets-bundle/

License: MIT License

PHP 39.64% CSS 0.32% JavaScript 29.05% HTML 0.24% Less 30.55% SCSS 0.20%
zendframework php7 assets-management minify less scss zend-framework3 zend-framework minifier assetsbundle

zf-assets-bundle's Introduction

Build Status Coverage Status Latest Stable Version Total Downloads License Sponsor

๐Ÿ“ข AssetsBundle is a module for Zend Framework 3+ providing assets management (minifier, bundler & cache) like Css, Js, Less and Scss, dedicated to current module, controller and action.

This module is "development / production" environment aware.

๐Ÿ”ง In development:

  • Css & Js files are not bundled for easier debugging.
  • Less & Scss files are compiled when updated or if an "@import" file is updated

๐Ÿš€ In production:

  • All asset files (Css, Js, medias) are minified, bundled and cached only if once.
  • Assets path are encrypted to mask file tree (with the exception of files in the "assets" public directory)

Helping Project

โค๏ธ If this project helps you reduce time to develop and/or you want to help the maintainer of this project. You can sponsor him. Thank you !

Contributing

๐Ÿ‘ If you wish to contribute to this project, please read the CONTRIBUTING.md file. Note: If you want to contribute don't hesitate, I'll review any PR.

Documentation

  1. Installation
  2. Use with Zend Skeleton Application
  3. Configuration
  4. Usage for "development / production" environment
  5. Custom Js
  6. Console tools
  7. FAQ
  8. Code Coverage
  9. PHP Doc

zf-assets-bundle's People

Contributors

dependabot-preview[bot] avatar dependabot[bot] avatar neilime avatar

Stargazers

 avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar

zf-assets-bundle's Issues

Generate new production cached file is some asset has been update

Hi,

I have a personal very old project developed with ZF2, and some weeks ago I discovered your module. So, my comment/idea is really for the zf2-assets-bundle but as that repository is read-only now, I post my idea/comment here.

I'm not really sure if I understand the expected behavior of the module in the 'production' environment. I would expect that a new cached file for an specific action was generated if some of the asset files used in that action had been modified. However, that doesn't seems the case. Should I set a new 'lastModifiedTime' in the options file, every time I modified an asset?

I think that my idea (if you consider interesting) can be achieved by modifying the 'hasProductionCachedAssetFiles' in 'AssetFilesCacheManager' class, to check, not only if the file exists but also if some asset has been updated from the last time we cached the production cached file.

Thank you very much for your help and for your generous effort,

Best regards,

can't install with zend farmework 3.0.1

i can't install this with zend framework 3.0.1 that need zend--config v2.6.0:

  • Installation request for neilime/zf-assets-bundle 0.0.1 -> satisfiable by neilime/zf-assets-bundle[0.0.1].
    • Conclusion: remove zendframework/zend-config 2.6.0
    • zendframework/zendframework 3.0.0 requires zendframework/zend-config ^2.6 -> satisfiable by zendframework/zend-config[2.6.0].
    • zendframework/zendframework 3.0.0 requires zendframework/zend-config ^2.6 -> satisfiable by zendframework/zend-config[2.6.0].
    • Conclusion: don't install zendframework/zend-config 2.6.0
    • Installation request for zendframework/zendframework 3.0.* -> satisfiable by zendframework/zendframework[3.0.0].

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.