Search by

View helper that loads Vite-built assets in CakePHP 2, with dev server support

Package info

github.com/pieceofcake2/vite

Type:cakephp-plugin

pkg:composer/pieceofcake2/vite

Statistics

Installs: 3 051

Dependents: 0

Suggesters: 0

Stars: 0

Open Issues: 0

v1.2.3 2026-10-16 08:35 UTC

README

GitHub License Packagist Version PHP CakePHP PHPStan CI Codecov

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.

Documentation

The Markdown documentation is also included in the Composer package, in the plugin's directory: plugins/Vite/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/vite

Then configure Vite to write a manifest and load the Vite.Vite 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.