bigmichi1 / assetmanager
2.0.2
2020-11-23 13:36 UTC
Requires
- php: ^7.2
- assetic/framework: ~2.0.0
- laminas/laminas-eventmanager: ^3.2.1
- laminas/laminas-loader: ^2.6.0
- laminas/laminas-modulemanager: ^2.8.3
- laminas/laminas-mvc: ^3.1.1
- laminas/laminas-servicemanager: ^3.3.1
- laminas/laminas-stdlib: ^3.2.1
- scssphp/scssphp: ~1.0
Requires (Dev)
- laminas/laminas-cache: ^2.8.0
- laminas/laminas-console: ^2.7.0
- laminas/laminas-http: ^2.8.0
- laminas/laminas-view: ^2.10.0
- phpmd/phpmd: ^2.9
- phpstan/extension-installer: ^1.0
- phpstan/phpstan: ^0.12.49
- phpstan/phpstan-deprecation-rules: ^0.12.5
- phpstan/phpstan-strict-rules: ^0.12.5
- phpunit/phpunit: ^8.5.0
- squizlabs/php_codesniffer: ^3.3.1
Suggests
- ext-mbstring: ext-mbstring improves the calculation of the response size
- laminas/laminas-mvc-console: laminas-mvc-console provides the ability to expose laminas-mvc as a console application
This package is auto-updated.
Last update: 2020-12-30 09:26:49 UTC
README
由 Wesley Overdijk 和 Marco Pivetta 以及 Michael Cramer 贡献
介绍
此模块旨在与LaminasSkeletonApplication的默认目录结构配合使用。它通过简单的配置提供从模块目录加载资源和静态文件的功能。这样,您可以避免将文件复制到public/
目录,并且使用资源的方式与视图脚本类似,这可以被其他模块覆盖。简而言之,此模块允许您将资源与模块一起打包,无需额外配置即可使用。
安装
- 需要 assetmanager
./composer.phar require bigmichi1/assetmanager
#when asked for a version, type "2.*".
使用方法
请参阅 wiki 了解快速入门和其他信息。许多主题(如果不是全部)都有详细的介绍。
示例模块配置
<?php return array( 'asset_manager' => array( 'resolver_configs' => array( 'collections' => array( 'js/d.js' => array( 'js/a.js', 'js/b.js', 'js/c.js', ), ), 'paths' => array( __DIR__ . '/some/particular/directory', ), 'map' => array( 'specific-path.css' => __DIR__ . '/some/particular/file.css', ), ), 'filters' => array( 'js/d.js' => array( array( // Note: You will need to require the classes used for the filters yourself. 'filter' => 'JSMin', ), ), ), 'view_helper' => array( 'cache' => 'Application\Cache\Redis', // You will need to require the factory used for the cache yourself. 'append_timestamp' => true, // optional, if false never append a query param 'query_string' => '_', // optional ), 'caching' => array( 'js/d.js' => array( 'cache' => 'Filesystem', ), ), ), );
请注意,此模块将按原样提供每个文件,包括PHP代码。
问题/支持
如果您在使用资产管理器时遇到问题,以下是一些可能有助于您解决问题的资源。
- 加入我们
- 常见问题解答wiki页面,您可能在那里找到答案。
- RWOverdijk at irc.freenode.net #zftalk.dev 或 #spoonx
- 问题跟踪器。(请尽量不要提交不相关的问题)。
待办事项
近期任务列表已经大幅缩减。然而,仍然有一些事情需要完成。
- 更新缓存