Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

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

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