Download the PHP package phil/ux-bundle without Composer
On this page you can find all versions of the php package phil/ux-bundle. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Download phil/ux-bundle
More information about phil/ux-bundle
Files in phil/ux-bundle
Package ux-bundle
Short Description PHIL UX in a Symfony application: the PHIL UX form theme, applied to every form, and the stylesheet of phil/ux-css mapped in AssetMapper
License MIT
Homepage https://ph-il.ca
Informations about the package ux-bundle
phil/ux-bundle
PHIL UX in a Symfony application: every form in the PHIL UX look, and the stylesheet served by AssetMapper.
phil/ux-bundle connects PHIL UX to Symfony. It does two things:
- The PHIL UX form theme. Every form renders its rows as the fields of the PHIL UX kit: a row is an
isField, expanded choices and sub-forms are anisFieldSetnamed by a legend, the help and the errors are tied to the control. The bundle adds the theme totwig.form_themesthe way Symfony adds its own default theme, so nothing is written in a template; the themes the application lists come after it and win. One key turns it off. - The stylesheet of phil/ux-css. With AssetMapper, the bundle maps the
dist/directory of phil/ux-css asphil-ux/, soasset('phil-ux/phil-ux.css')serves the framework and the importmap can list it.
The look itself lives in the public packages of PHIL UX: phil/ux-css, the stylesheet, and phil/ux-kit, the kit of Twig
components that the Symfony UX Toolkit installs with ux:install. The bundle installs no component and copies no
file.
Sites built on PHIL bundles use EasyAdmin as their back-office. EasyAdmin renders its own forms with its own theme,
so the PHIL UX form theme does not change the back-office; phil/ux-easyadmin-bundle gives the back-office the PHIL
UX colours.
Status
| Part | State |
|---|---|
The PHIL UX form theme, prepended to twig.form_themes, and form_theme: false |
Implemented and tested |
The stylesheet of phil/ux-css mapped as phil-ux/ in AssetMapper |
Implemented and tested |
Documentation
| Document | What it covers |
|---|---|
| Installation | Requirements, registering, the configuration, the stylesheet. |
| The form theme | The markup of each row, the order of the themes, turning it off. |
| Extension points | What an application configures, overrides or relies on. |
| Testing | How the bundle is tested. |
| Reference | Every type and file of the bundle. |
Quick start
Requirements
PHP 8.5 or later; Symfony 8.2's dependency injection, configuration, form, HTTP kernel and Twig bundle; Twig 3.30; phil/ux-css 0.5. AssetMapper is optional.
Contributing
Contributions are welcome on the PHIL monorepo: read the contribution guide and the security policy explains, never in a public issue.
License
MIT, © Philippe Gamache, doing business as Le Gnome Archiviste; a Parler Haut Interagir Librement project. See LICENSE.
All versions of ux-bundle with dependencies
composer-runtime-api Version ^2.2
phil/ux-css Version ^0.5@dev
symfony/config Version ^8.2
symfony/dependency-injection Version ^8.2
symfony/form Version ^8.2
symfony/http-kernel Version ^8.2
symfony/twig-bundle Version ^8.2
twig/twig Version ^3.30