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 3w ago

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 72% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity18

Limited adoption so far

Community18

Small or concentrated contributor base

Maturity66

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

2054d 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.2k455.6M9.5k](/packages/symfony-dependency-injection)[symfony/console

Eases the creation of beautiful and testable command line interfaces

9.8k1.1B13.8k](/packages/symfony-console)[symfony/expression-language

Provides an engine that can compile and evaluate expressions

2.8k223.4M1.9k](/packages/symfony-expression-language)[symfony/cache

Provides extended PSR-6, PSR-16 (and tags) implementations

4.2k373.5M3.3k](/packages/symfony-cache)[symfony/security-bundle

Provides a tight integration of the Security component into the Symfony full-stack framework

2.5k185.6M2.3k](/packages/symfony-security-bundle)[symfony/security-http

Symfony Security Component - HTTP Integration

1.7k177.2M379](/packages/symfony-security-http)

PHPackages © 2026

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