The Composer Asset Plugin allows you to manage project assets (css, js, etc.) in your composer.json
without installing NPM or Bower.
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.
Important:
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.
Foxy is the new way to manage the assets of PHP libraries, because it works nativelly with all the features ofNPM or Yarn. However, this plugin will continue to be maintained by the community, without having new features.
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.
composer.json
ignore
will not be installeddepends
diagnose
licenses
remove
require
search
(bower only)show
status
There already are several possibilities for managing assets in a PHP project:
composer.json
file (and use Packagist or an VCS Repository)composer.json
with a direct download linkIt goes without saying that each javascript, CSS, etc. library should be developed with the usual tools for thatlanguage, which front-end developers know well. However, in the case of a complete project in PHP, it shouldn'tbe necessary to use several tools (PHP, Nodejs, Composer, NPM, Bower, Grunt, etc.) to simply installthese assets in your project.
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 arewidely used.
The bulk of the documentation is located in Resources/doc/index.md
:
All the installation instructions are located in documentation.
This composer plugin is under the MIT license. See the complete license in:
Fxp Composer Asset Plugin is a François Pluchino initiative.See also the list of contributors.
Issues and feature requests are tracked in the Github issue tracker.
前置条件: 首先使用Composer包工具的需要满足以下两个前提,不区分操作系统。 1 电脑需要安装Composer包管理工具,并且全局可直接使用 2 安装Composer Asset插件,Asset插件需要合适的版本。 两个条件在安装的同时,都必须注意合适的版本。以下附上Mac安装composer和插件的主要步骤 解决方法: Mac系统安装compoer curl -sS https://get
问题描述 compser 使得php的依赖管理很方便,但开发过程中也遇到一些问题,比如一些功能依赖一些js ,css,image等文件,怎么办呢,如果直接放在composer包中的话也不可能直接使用vendor这个路径来引用文件吧!还好找到啦一个解方法,使用composer的一个插件 fxpio/composer-asset-plugin 解决方法 全局安装插件composer global re
报错内容如下: The "fxp/composer-asset-plugin" plugin was skipped because it requires a Plugin API version ("^1.0") that does not match your Composer installation ("2.0.0"). You may need to run composer upd
安装yii2-soap-server: composer require --prefer-dist mongosoft/yii2-soap-server "*" 的时候,报以下错误: The "yiisoft/yii2-composer" plugin was skipped because it requires a Plugin API version ("1.0.0") that does
安装yii2-soap-server: composer require --prefer-dist mongosoft/yii2-soap-server "*" 的时候,报以下错误: The "yiisoft/yii2-composer" plugin was skipped because it requires a Plugin API version ("1.0.0") that does
composer global require "fxp/composer-asset-plugin:~1.3" 1407742e错误 两个原因: 第一个 原因: 由于 Github 18年2月1日 发布通告称 Weak cryptographic standards removal notice 简而言之就是,不在支持 TLSv1/TLSv1.1 因此导致上述错误! 解决办法如下: 使用
运行任何composer都报错如下: The "fxp/composer-asset-plugin" plugin was skipped because it requires a Plugin API version ("^1.0") that does not match your Composer installation ("2.1.0"). You may need to run co
2种方式: 1、直接用composer.phar global require "fxp/composer-asset-plugin:1.0.0"; 2、找到调用的composer.bat文件,把 @ECHO OFF php.exe E:\phpStudy\PHPTutorial\tools\composer\composer.phar %1换成 @ECHO OFF php.exe E:\phpS
composer 安装 fxp/composer-asset-plugin:~1.3.0 报错,具体错误内容如下: 百度了各种结果,都不是我这种问题,特请大佬帮忙看看,该如何解决,谢谢。
Asset Pipeline 本文介绍 Asset Pipeline。 读完本文,你将学到: Asset Pipeline 是什么以及其作用; 如何合理组织程序的静态资源; Asset Pipeline 的优势; 如何向 Asset Pipeline 中添加预处理器; 如何在 gem 中打包静态资源; 1 Asset Pipeline 是什么? Asset Pipeline 提供了一个框架,用于连
Asset Packagist Composer + Bower + NPM = friends forever! This package is the core part of https://asset-packagist.org/ project. Asset Packagist allows installation of Bower and NPM packages as native
AspNet.Mvc.AssetVersioning Adds a UrlHelper.VersionedContent URL extension helper to append SHA256 hash to content URLs in ASP.NET MVC 5. Install Install-Package AspNet.Mvc.AssetVersioning Usage In Vi
Ember Asset Loader Provides experimental support for the Asset Manifest RFC and Asset Loader Service RFC. Usage Ember Asset Loader does three primary things: Provides a base class to easily generate a
pwa-asset-generator ✨ Automates PWA asset generation and image declaration. Automatically generates icon and splash screen images, favicons and mstile images. Updates manifest.json and index.html file