Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/m-adamski/symfony-utils-bundle
A collection of additional tools for Symfony
https://github.com/m-adamski/symfony-utils-bundle
php symfony symfony-bundle utils-bundle
Last synced: 26 days ago
JSON representation
A collection of additional tools for Symfony
- Host: GitHub
- URL: https://github.com/m-adamski/symfony-utils-bundle
- Owner: m-adamski
- License: mit
- Created: 2018-10-25T12:55:36.000Z (about 6 years ago)
- Default Branch: master
- Last Pushed: 2020-02-07T07:11:20.000Z (almost 5 years ago)
- Last Synced: 2024-04-22T22:05:57.961Z (7 months ago)
- Topics: php, symfony, symfony-bundle, utils-bundle
- Language: PHP
- Homepage:
- Size: 34.2 KB
- Stars: 0
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# Utils Bundle for Symfony
A collection of additional Symfony 4 tools that are small enough to create separate packages for them.
This bundle is compatible with Symfony 4.1 and Symfony 5.0. Symfony 3.4 compatibility abandoned.
## Installation
This bundle can be installed by Composer:
```
$ composer require m-adamski/symfony-utils-bundle
```## What's included?
The package includes the following tools and helpers:
| Name | Category | Description |
| ------------------ | --------------------- | ------------------------------------------------------- |
| AssetHashExtension | Twig Extension | The tool adds an MD5 checksum to the indicated resource |
| SymfonyStyle | Console Symfony Style | Console Symfony Style with additional functionalities |### AssetHashExtension
An additional Twig function named ``asset_hash`` is registered, which inserts the path to the indicated resource, and additionally inserts the MD5 checksum of the resource.
Example:
```(html)
```
The result of the function will be the path to the resource and its checksum.
```(html)
```
### SymfonyStyle
A class that extends the capabilities of the core Symfony Console Style.
It contains additional functions that will help in the presentation of information returned to the user.## License
MIT