Home
Docs
GitHub
Pricing
Blog
Log In

Run Sandworm Audit for your App

Get started
This package has been abandoned.
Generated on May 17, 2024 via composer

twig/extensions v1.5.4

Common additional features for Twig that do not directly belong in core
Package summary
Share
1
issue
1
high severity
meta
1
2
licenses
4
MIT
1
BSD-3-Clause
Package created
7 Nov 2011
Version published
5 Dec 2018
Maintainers
1
Total deps
5
Direct deps
1
License
MIT

Issues

1

1 high severity issue

high
via: twig/extensions@v1.5.4
Collapse
Expand

Licenses

MIT License

Permissive
OSI Approved
This is a human-readable summary of (and not a substitute for) the license. Disclaimer.
Can
commercial-use
modify
distribute
sublicense
private-use
Cannot
hold-liable
Must
include-copyright
include-license
4 Packages, Including:
symfony/polyfill-ctype@v1.29.0
symfony/polyfill-mbstring@v1.29.0
symfony/polyfill-php72@v1.29.0
twig/extensions@v1.5.4

BSD 3-Clause "New" or "Revised" License

Permissive
OSI Approved
This is a human-readable summary of (and not a substitute for) the license. Disclaimer.
Can
commercial-use
modify
distribute
place-warranty
Cannot
use-trademark
hold-liable
Must
include-copyright
include-license
1 Packages, Including:
twig/twig@v2.16.0
Disclaimer

This deed highlights only some of the key features and terms of the actual license. It is not a license and has no legal value. You should carefully review all of the terms and conditions of the actual license before using the licensed material.

Sandworm is not a law firm and does not provide legal services. Distributing, displaying, or linking to this deed or the license that it summarizes does not create a lawyer-client or any other relationship.

Direct Dependencies

1
All Dependencies CSV
β“˜ This is a list of twig/extensions 's direct dependencies. Data on all dependencies, including transitive ones, is available via CSV download.
NameVersionSizeLicenseTypeVulnerabilities
twig/twigv2.16.0275.82 kBBSD-3-Clause
prod

Visualizations

Frequently Asked Questions

What does twig/extensions do?

The Twig/Extensions package is a collection of common additional features for Twig, a template engine for PHP. This package includes features that are not directly related to the core functions of Twig but can still be beneficial for developers. It includes ArrayExtension, DateExtension, I18nExtension, IntlExtension, and TextExtension among others. However, it's important to note that this repository has been abandoned in favor of Twig Core Extra extensions.

How do you use twig/extensions?

To use the Twig/Extensions, you first need to install it. Since it is a Composer package, you can simply run composer require twig/extensions in your project directory. Once installed, you can use the provided extensions in your Twig templates. For instance, using the localizeddate filter from IntlExtension would be as follows:

{{ post.date|localizeddate('medium', 'none', 'fr_FR') }}

In this example, post.date is a DateTime object, 'medium' is the date format, 'none' means no time will be displayed, and 'fr_FR' is the locale.

Where are the twig/extensions docs?

The documentation for Twig/Extensions can be found at http://twig-extensions.readthedocs.io/. There you'll find detailed information about the usage and possibilities of this package. Please remember that since this repository is abandoned, it's recommended to transition to the suggested alternatives as specified in the repository.