PHPackages                             hurnell/cakephp-webpack-encore-view-helper - PHPackages - PHPackages  [Skip to content](#main-content)[PHPackages](/)[Directory](/)[Categories](/categories)[Trending](/trending)[Leaderboard](/leaderboard)[Changelog](/changelog)[Analyze](/analyze)[Collections](/collections)[Log in](/login)[Sign up](/register)

1. [Directory](/)
2. /
3. [Templating &amp; Views](/categories/templating)
4. /
5. hurnell/cakephp-webpack-encore-view-helper

ActiveCakephp-view-helper[Templating &amp; Views](/categories/templating)

hurnell/cakephp-webpack-encore-view-helper
==========================================

CakePhp view helper plugin to load webpack-encore assets. Reads entrypoints.json and manifest.json and loads the assets referenced herein when requested.

010PHP

Since Apr 11Pushed 7y ago1 watchersCompare

[ Source](https://github.com/hurnell/cakephp-webpack-encore-view-helper)[ Packagist](https://packagist.org/packages/hurnell/cakephp-webpack-encore-view-helper)[ RSS](/packages/hurnell-cakephp-webpack-encore-view-helper/feed)WikiDiscussions master Synced today

READMEChangelogDependenciesVersions (1)Used By (0)

WebpackEncoreViewHelper plugin for CakePHP
==========================================

[](#webpackencoreviewhelper-plugin-for-cakephp)

Installation
------------

[](#installation)

You can install this plugin into your CakePHP application using [composer](http://getcomposer.org).

The recommended way to install composer packages is:

```
composer require hurnell/cakephp-webpack-encore-view-helper

```

Make sure that composer.json of your CakePHP installation contains:

```
"minimum-stability": "dev",
"prefer-stable": true

```

Initialize
----------

[](#initialize)

In App/View/AppView add use statement and update initialize method:

```
use Hurnell\WebpackEncoreViewHelper\View\Helper\EncoreHelper

$this->loadHelper('Encore', [
    'className'=> EncoreHelper::class
]);

```

Usage
-----

[](#usage)

In your .ctp files just add:

```

```

These entrypoints are defined in your webpack.config.js file (see dist directory).

I have also included my package.json file in the dist directory to shows the packages I have installed to support this version of webpack.config.js.

Note that the only way that I was able to get hot module replacement (auto reload web-page when you update asset files) to work was with:

```
yarn encore dev-server --port 8080 --disableHostCheck=true

```

There is a shortcut defined under scripts in package.json:

```
yarn dev-server

```

Check out [webpack-visualizer](https://chrisbateman.github.io/webpack-visualizer/) to help optimise your imports. Just run `yarn stats ` and upload the resulting stats.json file to this website.

###  Health Score

18

—

LowBetter than 8% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity5

Limited adoption so far

Community4

Small or concentrated contributor base

Maturity37

Early-stage or recently created project

How is this calculated?**Maintenance (25%)** — Last commit recency, latest release date, and issue-to-star ratio. Uses a 2-year decay window.

**Popularity (30%)** — Total and monthly downloads, GitHub stars, and forks. Logarithmic scaling prevents top-heavy scores.

**Community (15%)** — Contributors, dependents, forks, watchers, and maintainers. Measures real ecosystem engagement.

**Maturity (30%)** — Project age, version count, PHP version support, and release stability.

### Community

Maintainers

![](https://www.gravatar.com/avatar/fbc76d5d28d4151747fd41d940e6d6e85a7c5c7cc18c3cfd8ac8610a40d6a99e?d=identicon)[hurnell](/maintainers/hurnell)

---

Tags

cakephpcakephp-plugincakephp3encorephp71webpack4

### Embed Badge

![Health badge](/badges/hurnell-cakephp-webpack-encore-view-helper/health.svg)

```
[![Health](https://phpackages.com/badges/hurnell-cakephp-webpack-encore-view-helper/health.svg)](https://phpackages.com/packages/hurnell-cakephp-webpack-encore-view-helper)
```

###  Alternatives

[mustache/mustache

A Mustache implementation in PHP.

3.3k44.6M291](/packages/mustache-mustache)[roots/acorn

Framework for Roots WordPress projects built with Laravel components.

9682.1M97](/packages/roots-acorn)[whitecube/nova-flexible-content

Flexible Content &amp; Repeater Fields for Laravel Nova.

8053.0M25](/packages/whitecube-nova-flexible-content)[mopa/bootstrap-bundle

Easy integration of twitters bootstrap into symfony2

7042.9M33](/packages/mopa-bootstrap-bundle)[limenius/react-bundle

Client and Server-side react rendering in a Symfony Bundle

3871.2M](/packages/limenius-react-bundle)[nicmart/string-template

StringTemplate is a very simple string template engine for php. I've written it to have a thing like sprintf, but with named and nested substutions.

2101.7M30](/packages/nicmart-string-template)

PHPackages © 2026

[Directory](/)[Categories](/categories)[Trending](/trending)[Changelog](/changelog)[Analyze](/analyze)
