pieceofcake2 / vite
View helper that loads Vite-built assets in CakePHP 2, with dev server support
v1.2.1
2026-10-14 07:06 UTC
Requires
- php: ^8.0
- composer/installers: ^1.0 || ^2.0
- pieceofcake2/cakephp: ^2.12
Requires (Dev)
- cakephp/cakephp-codesniffer: ^5.0
- phpstan/phpstan: ^2.1
- phpunit/phpunit: ^9.6
- pieceofcake2/app: ^2.2
- pieceofcake2/phpstan-cakephp2: ^0.2.3
Suggests
None
Provides
None
Conflicts
None
Replaces
None
This package is auto-updated.
Last update: 2026-10-14 16:18:08 UTC
README
pieceofcake2/vite integrates Vite-built assets into a CakePHP 2
application. Its helper reads Vite's manifest.json to output <link> and
<script type="module"> tags with hashed filenames, and can load assets from the Vite dev
server during development.
Requirements
- PHP 8.0+
- pieceofcake2/cakephp 2.12+
Installation
composer require pieceofcake2/vite
Then configure Vite to write a manifest and load the Vite.Vite helper.
See Installation.
Documentation
Documentation: https://pieceofcake2.github.io/vite/
Contributing
See the contribution guidelines.
License
MIT License. See LICENSE.