Download the PHP package vstelmakh/url-highlight-symfony-bundle without Composer
On this page you can find all versions of the php package vstelmakh/url-highlight-symfony-bundle. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Informations about the package url-highlight-symfony-bundle
Url highlight bundle
Symfony bundle for Url highlight library.
Supported Symfony versions: ^2.7
, ^3
, ^4
, ^5
.
Installation
Install the latest version with:
Setup
If your application is using Symfony Flex - you are ready to go, skip next steps.
Enable the bundle by adding it to the list of registered bundles
in the config/bundles.php
file of your project:
Usage
Bundle provide url highlight service which available via autowire or directly from container:
Additionally urls_to_html
filter available in templates:
More details see usage in Twig url highlight repository.
Configuration
Works out of the box with default configuration:
If you need to change configuration add desired options to your parameters.yaml
or create separate config: config/packages/url_highlight.yaml
.
More information about configuration options could be found in Url highlight library.
Example to define validator to not match urls without scheme
-
Define validator service. Use bundled with Url highlight library or create your own implementation of
VStelmakh\UrlHighlight\Validator\ValidatorInterface
: - Provide service id in
url_highlight.yaml
config
Credits
Volodymyr Stelmakh
Licensed under the MIT License. See LICENSE for more information.
All versions of url-highlight-symfony-bundle with dependencies
symfony/config Version >=2.7 <6
symfony/dependency-injection Version >=2.7 <6
symfony/http-kernel Version >=2.7 <6
symfony/yaml Version >=2.7 <6
vstelmakh/url-highlight Version ^3
vstelmakh/url-highlight-twig-extension Version ^3