2017 © Pedro PelĂĄez
 

composer-plugin composer-asset-plugin

NPM/Bower Dependency Manager for Composer

image

fxp/composer-asset-plugin

NPM/Bower Dependency Manager for Composer

  • Monday, July 2, 2018
  • by francoispluchino
  • Repository
  • 57 Watchers
  • 828 Stars
  • 2,536,763 Installations
  • PHP
  • 69 Dependents
  • 8 Suggesters
  • 147 Forks
  • 14 Open issues
  • 28 Versions
  • 5 % Grown

The README.md

NPM/Bower Dependency Manager for Composer

Latest Version Build Status Coverage Status SymfonyInsight Packagist Downloads, (*1)

The Composer Asset Plugin allows you to manage project assets (css, js, etc.) in your composer.json without installing NPM or Bower., (*2)

This plugin works by transposing package information from NPM or Bower to a compatible version for Composer. This allows you to manage asset dependencies in a PHP based project very easily., (*3)

Important:, (*4)

The next major version of Composer Asset Plugin is so different, but also incompatible with the current version, that it became a new project named Foxy., (*5)

Foxy is the new way to manage the assets of PHP libraries, because it works nativelly with all the features of NPM or Yarn. However, this plugin will continue to be maintained by the community, without having new features., (*6)

You can read the reasons for this new version, or the difference between Foxy and Fxp Composer Asset Plugin, but also how does Foxy work., (*7)

Features include:
  • Works with native management system versions of VCS repository of composer
  • Works with public and private VCS repositories
  • Lazy loader of asset package definitions to improve performance
  • Import filter with the dependencies of the root package and the installed packages, for increased dramatically the performance for the update
  • Automatically get and create an Asset VCS repository defined in:
  • Automatically get and create the Asset VCS repositories of dependencies defined in each asset package (dev dependencies included)
  • Mapping conversion of asset package to composer package for:
  • Conversion of Semver version to the composer version
  • Conversion of Semver range version to the composer range version
  • Conversion of dependencies with URL to the composer dependencies with the creation of VCS repositories
  • Conversion of multiple versions of the same dependency to different dependencies of composer
  • Add manually the multiple versions of a same dependency in the project
  • Add a custom config of VCS Repository
  • Override the config of VCS Repository defined by the asset registry directly in config section of root composer
  • VCS drivers for:
  • Local cache system for:
    • package versions
    • package contents
    • repository redirects
  • Custom asset installers configurable in the root file composer.json
  • For Bower, all files defined in the section ignore will not be installed
  • Disable or replace the deleting of the ignore files for Bower
  • Enable manually the deleting of the ignore files for NPM
  • Use the Ignore Files Manager in the Composer scripts
  • Configure the plugin per project, globally or with the environment variables
  • Compatible with all commands, including:
    • depends
    • diagnose
    • licenses
    • remove
    • require
    • search (bower only)
    • show
    • status
Why this plugin?

There already are several possibilities for managing assets in a PHP project:, (*8)

  1. Install Node.js and use NPM or Bower command line in addition to Composer command line
  2. Do #1, but add Composer scripts to automate the process
  3. Include assets directly in the project (not recommended)
  4. Create a repository with all assets and include the composer.json file (and use Packagist or an VCS Repository)
  5. Add a package repository in composer.json with a direct download link
  6. Create a Satis or Packagist server
  7. Other?

It goes without saying that each javascript, CSS, etc. library should be developed with the usual tools for that language, which front-end developers know well. However, in the case of a complete project in PHP, it shouldn't be necessary to use several tools (PHP, Nodejs, Composer, NPM, Bower, Grunt, etc.) to simply install these assets in your project., (*9)

This plugin has been created to address these issues. Additionally, most developers will not add a composer.json file to their projects just to support php based projects, especially when npm and/or bower already exist and are widely used., (*10)

Documentation

The bulk of the documentation is located in Resources/doc/index.md:, (*11)

Read the Documentation, (*12)

Read the FAQs, (*13)

Read the Release Notes, (*14)

Installation

All the installation instructions are located in documentation., (*15)

License

This composer plugin is under the MIT license. See the complete license in:, (*16)

LICENSE, (*17)

About

Fxp Composer Asset Plugin is a François Pluchino initiative. See also the list of contributors., (*18)

Reporting an issue or a feature request

Issues and feature requests are tracked in the Github issue tracker., (*19)

The Versions

02/07 2018

dev-master

9999999-dev https://github.com/fxpio/composer-asset-plugin

NPM/Bower Dependency Manager for Composer

  Sources   Download

MIT

The Requires

  • php >=5.3.3
  • composer-plugin-api ^1.0

 

The Development Requires

by François Pluchino

composer asset bower package nodejs npm dependency manager

02/07 2018

v1.4.4

1.4.4.0 https://github.com/fxpio/composer-asset-plugin

NPM/Bower Dependency Manager for Composer

  Sources   Download

MIT

The Requires

  • php >=5.3.3
  • composer-plugin-api ^1.0

 

The Development Requires

by François Pluchino

composer asset bower package nodejs npm dependency manager

22/05 2018

v1.4.3

1.4.3.0 https://github.com/fxpio/composer-asset-plugin

NPM/Bower Dependency Manager for Composer

  Sources   Download

MIT

The Requires

  • php >=5.3.3
  • composer-plugin-api ^1.0

 

The Development Requires

by François Pluchino

composer asset bower package nodejs npm dependency manager

20/10 2017

v1.4.2

1.4.2.0 https://github.com/fxpio/composer-asset-plugin

NPM/Bower Dependency Manager for Composer

  Sources   Download

MIT

The Requires

  • php >=5.3.3
  • composer-plugin-api ^1.0

 

The Development Requires

by François Pluchino

composer asset bower package nodejs npm dependency manager

27/09 2017

v1.4.1

1.4.1.0 https://github.com/fxpio/composer-asset-plugin

NPM/Bower Dependency Manager for Composer

  Sources   Download

MIT

The Requires

  • php >=5.3.3
  • composer-plugin-api ^1.0

 

The Development Requires

by François Pluchino

composer asset bower package nodejs npm dependency manager

07/09 2017

v1.4.0

1.4.0.0 https://github.com/fxpio/composer-asset-plugin

NPM/Bower Dependency Manager for Composer

  Sources   Download

MIT

The Requires

  • php >=5.3.3
  • composer-plugin-api ^1.0

 

The Development Requires

by François Pluchino

composer asset bower package nodejs npm dependency manager

09/04 2017

1.3.x-dev

1.3.9999999.9999999-dev https://github.com/fxpio/composer-asset-plugin

NPM/Bower Dependency Manager for Composer

  Sources   Download

MIT

The Requires

  • php >=5.3.3
  • composer-plugin-api ^1.0

 

The Development Requires

by François Pluchino

composer asset bower package nodejs npm dependency manager

09/04 2017

v1.3.1

1.3.1.0 https://github.com/fxpio/composer-asset-plugin

NPM/Bower Dependency Manager for Composer

  Sources   Download

MIT

The Requires

  • php >=5.3.3
  • composer-plugin-api ^1.0

 

The Development Requires

by François Pluchino

composer asset bower package nodejs npm dependency manager

17/03 2017

v1.3.0

1.3.0.0 https://github.com/fxpio/composer-asset-plugin

NPM/Bower Dependency Manager for Composer

  Sources   Download

MIT

The Requires

  • php >=5.3.3
  • composer-plugin-api ^1.0

 

The Development Requires

by François Pluchino

composer asset bower package nodejs npm dependency manager

12/10 2016

1.2.x-dev

1.2.9999999.9999999-dev https://github.com/fxpio/composer-asset-plugin

NPM/Bower Dependency Manager for Composer

  Sources   Download

MIT

The Requires

  • php >=5.3.3
  • composer-plugin-api ^1.0

 

The Development Requires

by François Pluchino

composer asset bower package nodejs npm dependency manager

12/10 2016

v1.2.2

1.2.2.0 https://github.com/fxpio/composer-asset-plugin

NPM/Bower Dependency Manager for Composer

  Sources   Download

MIT

The Requires

  • php >=5.3.3
  • composer-plugin-api ^1.0

 

The Development Requires

by François Pluchino

composer asset bower package nodejs npm dependency manager

03/08 2016

v1.2.1

1.2.1.0 https://github.com/fxpio/composer-asset-plugin

NPM/Bower Dependency Manager for Composer

  Sources   Download

MIT

The Requires

  • php >=5.3.3
  • composer-plugin-api ^1.0

 

The Development Requires

by François Pluchino

composer asset bower package nodejs npm dependency manager

01/07 2016

v1.2.0

1.2.0.0 https://github.com/fxpio/composer-asset-plugin

NPM/Bower Dependency Manager for Composer

  Sources   Download

MIT

The Requires

  • php >=5.3.3
  • composer-plugin-api ^1.0

 

The Development Requires

by François Pluchino

composer asset bower package nodejs npm dependency manager

22/04 2016

1.1.x-dev

1.1.9999999.9999999-dev https://github.com/francoispluchino/composer-asset-plugin

NPM/Bower Dependency Manager for Composer

  Sources   Download

MIT

The Requires

  • php >=5.3.3
  • composer-plugin-api ^1.0

 

The Development Requires

by François Pluchino

composer asset bower package nodejs npm dependency manager

22/04 2016

v1.1.4

1.1.4.0 https://github.com/francoispluchino/composer-asset-plugin

NPM/Bower Dependency Manager for Composer

  Sources   Download

MIT

The Requires

  • php >=5.3.3
  • composer-plugin-api ^1.0

 

The Development Requires

by François Pluchino

composer asset bower package nodejs npm dependency manager

01/04 2016

v1.1.3

1.1.3.0 https://github.com/francoispluchino/composer-asset-plugin

NPM/Bower Dependency Manager for Composer

  Sources   Download

MIT

The Requires

  • php >=5.3.3
  • composer-plugin-api ^1.0

 

The Development Requires

by François Pluchino

composer asset bower package nodejs npm dependency manager

25/02 2016

v1.1.2

1.1.2.0 https://github.com/francoispluchino/composer-asset-plugin

NPM/Bower Dependency Manager for Composer

  Sources   Download

MIT

The Requires

  • php >=5.3.3
  • composer-plugin-api ^1.0

 

The Development Requires

by François Pluchino

composer asset bower package nodejs npm dependency manager

20/11 2015

v1.1.1

1.1.1.0 https://github.com/francoispluchino/composer-asset-plugin

NPM/Bower Dependency Manager for Composer

  Sources   Download

MIT

The Requires

  • php >=5.3.3
  • composer-plugin-api ^1.0

 

The Development Requires

by François Pluchino

composer asset bower package nodejs npm dependency manager

17/10 2015

v1.1.0

1.1.0.0 https://github.com/francoispluchino/composer-asset-plugin

NPM/Bower Dependency Manager for Composer

  Sources   Download

MIT

The Requires

  • php >=5.3.3
  • composer-plugin-api ^1.0

 

The Development Requires

by François Pluchino

composer asset bower package nodejs npm dependency manager

29/07 2015

1.0.x-dev

1.0.9999999.9999999-dev https://github.com/francoispluchino/composer-asset-plugin

NPM/Bower Dependency Manager for Composer

  Sources   Download

MIT

The Requires

  • php >=5.3.3
  • composer-plugin-api ^1.0

 

The Development Requires

by François Pluchino

composer asset bower package nodejs npm dependency manager

29/07 2015

v1.0.3

1.0.3.0 https://github.com/francoispluchino/composer-asset-plugin

NPM/Bower Dependency Manager for Composer

  Sources   Download

MIT

The Requires

  • php >=5.3.3
  • composer-plugin-api ^1.0

 

The Development Requires

by François Pluchino

composer asset bower package nodejs npm dependency manager

04/06 2015

v1.0.2

1.0.2.0 https://github.com/francoispluchino/composer-asset-plugin

NPM/Bower Dependency Manager for Composer

  Sources   Download

MIT

The Requires

  • php >=5.3.3
  • composer-plugin-api 1.0.0

 

The Development Requires

by François Pluchino

composer asset bower package nodejs npm dependency manager

17/04 2015

v1.0.1

1.0.1.0 https://github.com/francoispluchino/composer-asset-plugin

NPM/Bower Dependency Manager for Composer

  Sources   Download

MIT

The Requires

  • php >=5.3.3
  • composer-plugin-api 1.0.0

 

The Development Requires

by François Pluchino

composer asset bower package nodejs npm dependency manager

25/01 2015

v1.0.0

1.0.0.0 https://github.com/francoispluchino/composer-asset-plugin

NPM/Bower Dependency Manager for Composer

  Sources   Download

MIT

The Requires

  • php >=5.3.3
  • composer-plugin-api 1.0.0

 

The Development Requires

by François Pluchino

composer asset bower package nodejs npm dependency manager

04/11 2014

v1.0.0-beta4

1.0.0.0-beta4 https://github.com/francoispluchino/composer-asset-plugin

NPM/Bower Dependency Manager for Composer

  Sources   Download

MIT

The Requires

  • php >=5.3.3
  • composer-plugin-api 1.0.0

 

The Development Requires

by François Pluchino

composer asset bower package nodejs npm dependency manager

12/10 2014

v1.0.0-beta3

1.0.0.0-beta3 https://github.com/francoispluchino/composer-asset-plugin

NPM/Bower Dependency Manager for Composer

  Sources   Download

MIT

The Requires

  • php >=5.3.3
  • composer-plugin-api 1.0.0

 

The Development Requires

by François Pluchino

composer asset bower package nodejs npm dependency manager

27/09 2014

v1.0.0-beta2

1.0.0.0-beta2 https://github.com/francoispluchino/composer-asset-plugin

NPM/Bower Dependency Manager for Composer

  Sources   Download

MIT

The Requires

  • php >=5.3.3
  • composer-plugin-api 1.0.0

 

The Development Requires

by François Pluchino

composer asset bower package nodejs npm dependency manager

04/08 2014

v1.0.0-beta1

1.0.0.0-beta1 https://github.com/francoispluchino/composer-asset-plugin

NPM/Bower Dependency Manager for Composer

  Sources   Download

MIT

The Requires

  • php >=5.3.3
  • composer-plugin-api 1.0.0

 

The Development Requires

by François Pluchino

composer asset bower package nodejs npm dependency manager