cpsit/frontend-asset-handler

Composer library to download and extract Frontend assets in Composer projects

4.0.6 2024-02-26 08:50 UTC

README

Logo

Frontend Asset Handler

Coverage Tests CGL Latest Stable Version Total Downloads PHP Version Require License

πŸ“¦Β Packagist | πŸ’ΎΒ Repository | πŸ›Β Issue tracker

A Composer library that downloads and extracts Frontend assets to a dedicated path in PHP projects. All Frontend assets are configured through an assets.json file and can be easily maintained by a dedicated CLI application.

πŸš€ Features

  • Command-line application to fetch Frontend assets
  • Asset configuration via assets.json file
  • Automated integration into CI systems
  • Easy extensible by custom asset providers and processors
  • Designed for dependency injection

πŸ”₯ Getting started

  1. Install the library:

    composer require cpsit/frontend-asset-handler
  2. Initialize a new assets.json file:

    vendor/bin/frontend-assets init
  3. Fetch Frontend assets:

    vendor/bin/frontend-assets fetch

πŸ“– Documentation

πŸ§‘β€πŸ’» Contributing

Please have a look at CONTRIBUTING.md.

πŸ’Ž Credits

Direct download icons created by Pixel perfect - Flaticon

⭐ License

This project is licensed under GNU General Public License 3.0 (or later).