Download the PHP package cviebrock/twig-natural-join without Composer
On this page you can find all versions of the php package cviebrock/twig-natural-join. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Download cviebrock/twig-natural-join
More information about cviebrock/twig-natural-join
Files in cviebrock/twig-natural-join
Package twig-natural-join
Short Description Twig filter that joins an array using a different separator for the last element
License MIT
Homepage http://github.com/cviebrock/twig-natural-join
Informations about the package twig-natural-join
twig-natural-join
Twig filter that joins an array using a different separator for the last element (e.g. "John, Mary, Bob and Jim").
Installation
The filter is registered at Packagist as cviebrock/twig-natural-join and can be installed using composer:
Or just download the zip file and copy the file into your src folder.
Enable the extension:
If you are using Laravel and rcrowe/twigbridge, then enable the extension by adding an entry to the enabled
array in app/config/packages/rcrowe/twigbridge/extensions.php
:
Usage
Pass the normal seperator and final seperator to the filter:
Optionally pass true
as a third argument to turn on "Oxford" mode, which will add a normal seperator before the final seperator:
Bugs, Suggestions and Contributions
Please use Github for bugs, comments, suggestions.
- Fork the project.
- Create your bugfix/feature branch and write your (well-commented) code.
- Commit your changes and push to your repository.
- Create a new pull request against this project's
master
branch.
Copyright and License
twig-natural-join was written by Colin Viebrock and released under the MIT License. See the LICENSE file for details.
Copyright 2014 Colin Viebrock