PHPackages                             rodrigoq/simple-webpack-encore-bundle - 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. [Utility &amp; Helpers](/categories/utility)
4. /
5. rodrigoq/simple-webpack-encore-bundle

ActiveLibrary[Utility &amp; Helpers](/categories/utility)

rodrigoq/simple-webpack-encore-bundle
=====================================

Integration with your php and twig application &amp; Webpack Encore!

v1.8.0.2(5y ago)09.5kMITPHPPHP &gt;=7.1.3

Since Nov 3Pushed 5y agoCompare

[ Source](https://github.com/rodrigoq/simple-webpack-encore-bundle)[ Packagist](https://packagist.org/packages/rodrigoq/simple-webpack-encore-bundle)[ RSS](/packages/rodrigoq-simple-webpack-encore-bundle/feed)WikiDiscussions master Synced today

READMEChangelogDependencies (2)Versions (22)Used By (0)

Simple WebpackEncoreBundle: Php and Twig integration with Webpack Encore!
=========================================================================

[](#simple-webpackencorebundle-php-and-twig-integration-with-webpack-encore)

A very basic and simple implementation of [WebpackEncoreBundle](https://github.com/symfony/webpack-encore-bundle)for projects that do not use Symfony, with easier setup and less dependencies. Recommended for old projects or projects that do not plan to add or setup Symfony. The frontend setup is the same as with [Webpack Encore](https://symfony.com/doc/current/frontend.html)

Install with:

```
composer require rodrigoq/simple-webpack-encore-bundle

```

Configuration
-------------

[](#configuration)

In your twig setup file:

```
    use Simple\WebpackEncoreBundle\Twig\EntryFilesTwigExtension;
    ...
    $entrypointJsonFile = "path/to/entrypoints.json";
    $twigEnvironment->addExtension(new EntryFilesTwigExtension($entrypointJsonFile));
```

or for multiple builds:

```
    use Simple\WebpackEncoreBundle\Twig\EntryFilesTwigExtension;
    ...
    $builds = [
        'firstConfig' => "path/to/firstConfig/entrypoints.json",
        'secondConfig' => "path/to/secondConfig/entrypoints.json",
    ];
    $twigEnvironment->addExtension(new EntryFilesTwigExtension($builds));
```

No need for yaml configuration file.

Usage
-----

[](#usage)

Check readme on the [original repo](https://github.com/symfony/webpack-encore-bundle).

Changes
-------

[](#changes)

Added two new twig functions for full URL or directory prefixing, you can have a full path or different paths configured in php not needing for code on your javascript configuration file.

```
    {{ encore_entry_script_tags_with_baseurl('app', 'https://yoursite.com') }}
    {{ encore_entry_link_tags_with_baseurl('app', 'https://yoursite.com') }}

    {# or any directory prefix #}

    {{ encore_entry_script_tags_with_baseurl('app', '/a/different/path') }}
    {{ encore_entry_link_tags_with_baseurl('app', '/a/different/path') }}
```

###  Health Score

33

—

LowBetter than 74% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity18

Limited adoption so far

Community18

Small or concentrated contributor base

Maturity65

Established project with proven stability

 Bus Factor2

2 contributors hold 50%+ of commits

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.

###  Release Activity

Cadence

Every ~43 days

Recently: every ~89 days

Total

18

Last Release

2000d ago

PHP version history (2 changes)v1.0.0PHP ^7.1.3

v1.8.0PHP &gt;=7.1.3

### Community

Maintainers

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

---

Top Contributors

[![weaverryan](https://avatars.githubusercontent.com/u/121003?v=4)](https://github.com/weaverryan "weaverryan (58 commits)")[![PhilETaylor](https://avatars.githubusercontent.com/u/400092?v=4)](https://github.com/PhilETaylor "PhilETaylor (17 commits)")[![shulard](https://avatars.githubusercontent.com/u/482993?v=4)](https://github.com/shulard "shulard (7 commits)")[![rodrigoq](https://avatars.githubusercontent.com/u/3507925?v=4)](https://github.com/rodrigoq "rodrigoq (6 commits)")[![codayblue](https://avatars.githubusercontent.com/u/7281660?v=4)](https://github.com/codayblue "codayblue (6 commits)")[![nicolas-grekas](https://avatars.githubusercontent.com/u/243674?v=4)](https://github.com/nicolas-grekas "nicolas-grekas (4 commits)")[![bocharsky-bw](https://avatars.githubusercontent.com/u/3317635?v=4)](https://github.com/bocharsky-bw "bocharsky-bw (2 commits)")[![emodric](https://avatars.githubusercontent.com/u/362286?v=4)](https://github.com/emodric "emodric (2 commits)")[![keradus](https://avatars.githubusercontent.com/u/2716794?v=4)](https://github.com/keradus "keradus (2 commits)")[![Lyrkan](https://avatars.githubusercontent.com/u/850046?v=4)](https://github.com/Lyrkan "Lyrkan (2 commits)")[![fabpot](https://avatars.githubusercontent.com/u/47313?v=4)](https://github.com/fabpot "fabpot (2 commits)")[![fionera](https://avatars.githubusercontent.com/u/5741401?v=4)](https://github.com/fionera "fionera (2 commits)")[![wouterj](https://avatars.githubusercontent.com/u/749025?v=4)](https://github.com/wouterj "wouterj (1 commits)")[![DiceWithSpades](https://avatars.githubusercontent.com/u/45715044?v=4)](https://github.com/DiceWithSpades "DiceWithSpades (1 commits)")[![jmsche](https://avatars.githubusercontent.com/u/3929498?v=4)](https://github.com/jmsche "jmsche (1 commits)")[![karser](https://avatars.githubusercontent.com/u/1675033?v=4)](https://github.com/karser "karser (1 commits)")[![MolloKhan](https://avatars.githubusercontent.com/u/3451985?v=4)](https://github.com/MolloKhan "MolloKhan (1 commits)")[![Nyholm](https://avatars.githubusercontent.com/u/1275206?v=4)](https://github.com/Nyholm "Nyholm (1 commits)")[![Seb33300](https://avatars.githubusercontent.com/u/915273?v=4)](https://github.com/Seb33300 "Seb33300 (1 commits)")[![smoelker](https://avatars.githubusercontent.com/u/5102879?v=4)](https://github.com/smoelker "smoelker (1 commits)")

### Embed Badge

![Health badge](/badges/rodrigoq-simple-webpack-encore-bundle/health.svg)

```
[![Health](https://phpackages.com/badges/rodrigoq-simple-webpack-encore-bundle/health.svg)](https://phpackages.com/packages/rodrigoq-simple-webpack-encore-bundle)
```

###  Alternatives

[symfony/dependency-injection

Allows you to standardize and centralize the way objects are constructed in your application

4.2k431.1M7.4k](/packages/symfony-dependency-injection)[symfony/expression-language

Provides an engine that can compile and evaluate expressions

2.9k208.2M1.4k](/packages/symfony-expression-language)[symfony/webpack-encore-bundle

Integration of your Symfony app with Webpack Encore

95363.0M493](/packages/symfony-webpack-encore-bundle)[civicrm/civicrm-core

Open source constituent relationship management for non-profits, NGOs and advocacy organizations.

728272.9k17](/packages/civicrm-civicrm-core)[symplify/php-config-printer

Print Symfony services array with configuration to to plain PHP file format thanks to this simple php-parser wrapper

322.3M](/packages/symplify-php-config-printer)[symfony/ai-bundle

Integration bundle for Symfony AI components

30282.3k6](/packages/symfony-ai-bundle)

PHPackages © 2026

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