pieceofcake2 / webpack-encore
View helper that loads Symfony Webpack Encore-built assets in CakePHP 2
Package info
github.com/pieceofcake2/webpack-encore
Type:cakephp-plugin
pkg:composer/pieceofcake2/webpack-encore
Requires
- php: ^8.0
- composer/installers: ^1.0 || ^2.0
- pieceofcake2/cakephp: ^2.12
Requires (Dev)
- phpstan/phpstan: ^2.1
- phpunit/phpunit: ^9.6
- pieceofcake2/app: ^2.2
- pieceofcake2/phpcs-cakephp2: ^1.1
- pieceofcake2/phpstan-cakephp2: ^1.0
Suggests
None
Provides
None
Conflicts
None
Replaces
None
This package is auto-updated.
Last update: 2026-10-16 09:35:24 UTC
README
pieceofcake2/webpack-encore integrates Symfony Webpack Encore-built assets (CSS, JS, images)
into a CakePHP 2 application. Its helper reads entrypoints.json and manifest.json to
resolve fingerprinted asset filenames and output <link>, <script> or <img> tags.
Documentation
- Website: https://pieceofcake2.github.io/webpack-encore/ (日本語: https://pieceofcake2.github.io/webpack-encore/ja/)
- Markdown: docs/README.md (日本語: docs/ja/README.md) (for AI tools and offline reading)
The Markdown documentation is also included in the Composer package, in the plugin's directory: plugins/WebpackEncore/docs/README.md (the location depends on your installer-paths). Install the package with --dev if you only need it for development.
Requirements
- PHP 8.0+
- pieceofcake2/cakephp 2.12+
Installation
composer require pieceofcake2/webpack-encore
Then build your Encore assets and load the WebpackEncore.Encore helper.
See Installation.
Contributing
See the contribution guidelines.
Origin
This package was created by pieceofcake2, which also maintains it. It is not a fork of another project and is not based on one.
License
MIT License. See LICENSE.