northrook / symfony-components-bundle
A component library for Symfony, using Latte.
Installs: 45
Dependents: 0
Suggesters: 0
Security: 0
Stars: 0
Watchers: 0
Forks: 0
Open Issues: 0
Type:symfony-bundle
Requires
- php: >=8.2
- northrook/core: dev-main
- northrook/elements: dev-main
- northrook/logger: dev-main
- northrook/types: dev-main
- symfony/config: ^7.0
- symfony/dependency-injection: ^7.0
- symfony/deprecation-contracts: ^3.0
- symfony/http-kernel: ^7.0
Requires (Dev)
- northrook/symfony-core-bundle: dev-main
- northrook/symfony-latte-bundle: dev-main
- northrook/symfony-stylesheets-bundle: dev-main
- roave/security-advisories: dev-latest
This package is auto-updated.
Last update: 2024-11-17 09:11:19 UTC
README
A collection of reusable components for Symfony, using Latte.
Installation
Note
This bundle is intended to be used by the Northrook Symfony Core Bundle.
Stand-alone usage is not supported at this time.
Install the bundle stand-alone with Composer:
composer require northrook/symfony-components-bundle
Usage
The bundle parses each .latte
template file when rendering, and replaces components with
parsed HTML and PHP code, ready to be rendered by the Symfony framework.
Example for a field
component:
// in template.latte <field:email name="email" label="Email" required autofocus autocomplete="username"/> // output in cached template <field id="email-input-component" class="email field"> <div class="label"> <label for="email"> Email </label> </div> <div class="input"> <input id="email" type="email" name="email" autocomplete="username"> </div> </field>
Contributing
This bundle is not currently accepting contributions, and is subject to change.
Feel free to reach out to us if you have any questions or suggestions.