PHPackages                             adunblock/server-tag-symfony - PHPackages - PHPackages  [Skip to content](#main-content)[PHPackages](/)[Directory](/)[Categories](/categories)[Trending](/trending)[Leaderboard](/leaderboard)[Changelog](/changelog)[Analyze](/analyze)[Collections](/collections)[Log in](/login)[Sign up](/register)

1. [Directory](/)
2. /
3. [Templating &amp; Views](/categories/templating)
4. /
5. adunblock/server-tag-symfony

ActiveSymfony-bundle[Templating &amp; Views](/categories/templating)

adunblock/server-tag-symfony
============================

A Symfony bundle to fetch and render scripts from a remote URL with Twig integration and caching support.

v1.0.0(5mo ago)00ISCPHPPHP &gt;=7.4

Since Jan 20Pushed 5mo agoCompare

[ Source](https://github.com/adunblock/adunblock-server-tag-symfony)[ Packagist](https://packagist.org/packages/adunblock/server-tag-symfony)[ Docs](https://github.com/adunblock/adunblock-server-tag)[ RSS](/packages/adunblock-server-tag-symfony/feed)WikiDiscussions master Synced today

READMEChangelogDependencies (5)Versions (2)Used By (0)

Server Tag Symfony Bundle
=========================

[](#server-tag-symfony-bundle)

A Symfony bundle to fetch and render scripts from a remote URL with Twig integration and caching support. Perfect for server-side script loading and integration with third-party services.

Features
--------

[](#features)

- **Twig Integration**: Easy-to-use Twig function for templates
- **HTTP Client**: Uses Symfony's HTTP client for reliable requests
- **Caching**: Built-in caching support with configurable TTL
- **Error Handling**: Graceful error handling with fallback to empty arrays
- **Security**: XSS protection with proper HTML escaping
- **Bundle Structure**: Proper Symfony bundle with dependency injection
- **Wide Compatibility**: Support for Symfony 5, 6, 7, and 8

Requirements
------------

[](#requirements)

- PHP 7.4 or higher
- Symfony 5.x, 6.x, 7.x, or 8.x
- Twig 2.x or 3.x

Installation
------------

[](#installation)

Install the bundle via Composer:

```
composer require adunblock/server-tag-symfony:^1.0
```

Enable the bundle in your `config/bundles.php`:

```
