Download the PHP package ocubom/twig-html-extension without Composer
On this page you can find all versions of the php package ocubom/twig-html-extension. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Download ocubom/twig-html-extension
More information about ocubom/twig-html-extension
Files in ocubom/twig-html-extension
Package twig-html-extension
Short Description A custom suite of Twig filters for HTML manipulation
License MIT
Homepage https://github.com/ocubom/twig-html-extension
Informations about the package twig-html-extension
Contents
* [About TwigHtmlExtension](#about-twightmlextension) * [Getting Started](#getting-started) * [Installation](#installation) * [Usage](#usage) * [Roadmap](#roadmap) * [Contributing](#contributing) * [Authorship](#authorship) * [License](#license)About TwigHtmlExtension
TwigHtmlExtension is a custom suite of Twig filters for HTML manipulation.
This suite started as an internal class based on nochso/html-compress-twig to allow the use of wyrihaximus/html-compress with Twig 3.0. This class used to be embedded into several projects. Over time, each project adapted its version slightly, leading to fragmented development and difficult maintenance. Therefore, the development is unified in this extension which is made public in case it is useful for other projects.
Getting Started
Installation
Just use composer to add the dependency:
Or add the dependency manually:
-
Update
composer.json
file with the lines: - And update the dependencies:
Usage
Just register the Twig extension:
For more examples, please refer to the Documentation.
Roadmap
See the open issues for a full list of proposed features (and known issues).
Contributing
Contributions are what make the open source community such an amazing place to learn, inspire, and create. Any contributions you make are greatly appreciated.
If you have a suggestion that would make this better, please fork the repo and create a pull request. You can also simply open an issue with the tag "enhancement".
- Fork the Project.
- Create your Feature Branch (
git checkout -b feature/your-feature
). - Commit your Changes (
git commit -m 'Add your-feature'
). - Push to the Branch (
git push origin feature/your-feature
). - Open a Pull Request.
Authorship
- Oscar Cubo Medina — https://ocubom.github.io
See also the list of contributors who participated in this project.
License
Distributed under the MIT License. See LICENSE for more information.