wexample / symfony-loader
A dynamic rendering system for Symfony
Requires
- php: >=8.5
- fortawesome/font-awesome: ^6.7
- friendsofsymfony/jsrouting-bundle: ^3.2.1
- symfony/webpack-encore-bundle: ^2.0.1
- wexample/php-date: >=2.1.2
- wexample/php-html: >=0.1.6
- wexample/symfony-dev: >=6.0.5
- wexample/symfony-helpers: >=18.0.2
- wexample/symfony-translations: >=17.0.1
Requires (Dev)
- phpunit/phpunit: ^13
- symfony/browser-kit: ^7.4 || ^8.0
- symfony/css-selector: ^7.4 || ^8.0
- wexample/symfony-testing: >=1.0.86
Suggests
None
Provides
None
Conflicts
None
Replaces
None
- dev-main
- 25.0.1
- 25.0.0
- 24.0.1
- 24.0.0
- 23.3.0
- 23.2.0
- 23.1.0
- 23.0.1
- 23.0.0
- 22.0.0
- 21.0.0
- 20.0.2
- 20.0.1
- 20.0.0
- 19.0.1
- 19.0.0
- 18.0.0
- 17.0.0
- 16.0.0
- 15.0.0
- 14.0.1
- 14.0.0
- 13.0.0
- 12.0.1
- 12.0.0
- 11.0.1
- 11.0.0
- 10.0.0
- 9.0.0
- 8.0.0
- 7.0.1
- 7.0.0
- 6.0.0
- 5.0.0
- 4.0.2
- 4.0.1
- 4.0.0
- 2.0.0
- 1.0.1
- 1.0.0
- 0.1.2
- 0.1.1
- 0.1.0
- 0.0.23
- 0.0.22
- 0.0.21
- 0.0.20
- 0.0.19
- 0.0.18
- 0.0.16
- 0.0.15
- 0.0.14
- 0.0.13
- 0.0.12
- 0.0.11
- 0.0.10
- 0.0.9
- 0.0.8
- 0.0.7
- 0.0.6
- 0.0.5
- 0.0.4
- 0.0.3
This package is auto-updated.
Last update: 2026-10-22 17:07:47 UTC
README
Version: 25.0.1
A dynamic rendering system for Symfony
Table of Contents
Installation
JS helpers resolution
The webpack helper (src/Resources/js/webpack/encore.manifest.js) expects @wexample/js-helpers to be installed in the app.
For local dev containers, use link: in package.json:
{
"devDependencies": {
"@wexample/js-helpers": "link:/var/www/javascript-dev/wexample/js-helpers"
}
}
Local JS packages (dev only)
To use local JS packages in development, configure them in config/packages/wexample_symfony_dev.yaml:
wexample_symfony_dev: js_dev_packages: - '/var/www/javascript-dev/wexample/*'
The glob * scans all subdirectories containing a package.json and automatically:
- Adds webpack aliases via
Encore.addAliases() - Adds TypeScript paths in
tsconfig.json
Assets shipped by a PHP package
The assets/ directory of this package, and of every bundle built on it, is also an npm package (@wexample/symfony-loader, @wexample/symfony-design-system…). Declare those as link: in the app's package.json, never file::
"@wexample/symfony-loader": "link:vendor/wexample/symfony-loader/assets"
Yarn 1 copies a file: dependency, and the copy is what TypeScript falls back to when a file mapped by the tsconfig paths goes missing — errors then appear in files nobody edited. The full mechanism is written down in the symfony-design-system knowledge, page contributing/assets-as-npm-package.
Run
yarn install yarn watch
The manifest and tsconfig are updated automatically.
wexample/symfony-loader
Version: 0.0.20
A dynamic rendering system for Symfony
Table of Contents
Installation
JS helpers resolution
The webpack helper (src/Resources/js/webpack/encore.manifest.js) expects @wexample/js-helpers to be installed in the app.
For local dev containers, use link: in package.json:
{
"devDependencies": {
"@wexample/js-helpers": "link:/var/www/javascript-dev/wexample/js-helpers"
}
}
Local JS packages (dev only)
To use local JS packages in development, configure them in config/packages/wexample_symfony_dev.yaml:
wexample_symfony_dev: js_dev_packages: - '/var/www/javascript-dev/wexample/*'
The glob * scans all subdirectories containing a package.json and automatically:
- Adds webpack aliases via
Encore.addAliases() - Adds TypeScript paths in
tsconfig.json
Run
yarn install yarn watch
The manifest and tsconfig are updated automatically.