PHPackages                             code-rhapsodie/get-url-contents-ez-twig-bundle - 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. code-rhapsodie/get-url-contents-ez-twig-bundle

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

code-rhapsodie/get-url-contents-ez-twig-bundle
==============================================

v1.0.1(5y ago)0297MITPHPPHP ^7.0

Since Aug 26Pushed 5y ago3 watchersCompare

[ Source](https://github.com/code-rhapsodie/get-url-contents-ez-twig-bundle)[ Packagist](https://packagist.org/packages/code-rhapsodie/get-url-contents-ez-twig-bundle)[ RSS](/packages/code-rhapsodie-get-url-contents-ez-twig-bundle/feed)WikiDiscussions master Synced 3w ago

READMEChangelog (1)Dependencies (2)Versions (3)Used By (0)

Get Url Contents eZ Twig Bundle
===============================

[](#get-url-contents-ez-twig-bundle)

This bundle adds:

- a `get_url_contents` Twig function
- a `get_url_contents` eZ Publish legacy template operator

Both share the same behaviour:

- perform a GET HTTP request to the URL passed as argument, using curl
- then, if the request succeeded and the response code is 200, return the response body as string
- otherwise, return an empty string

Install
-------

[](#install)

Just use Composer:

`composer require code-rhapsodie/get-url-contents-ez-twig-bundle`

Usage
-----

[](#usage)

In Twig:

```
{{ get_url_contents('https://host/my_external_file.html') }}
```

In eZ Publish legacy templates:

```
{get_url_contents('https://host/my_external_file.html')}

```

###  Health Score

26

—

LowBetter than 41% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity11

Limited adoption so far

Community13

Small or concentrated contributor base

Maturity51

Maturing project, gaining track record

 Bus Factor1

Top contributor holds 50% of commits — single point of failure

How is this calculated?**Maintenance (25%)** — Last commit recency, latest release date, and issue-to-star ratio. Uses a 2-year decay window.

**Popularity (30%)** — Total and monthly downloads, GitHub stars, and forks. Logarithmic scaling prevents top-heavy scores.

**Community (15%)** — Contributors, dependents, forks, watchers, and maintainers. Measures real ecosystem engagement.

**Maturity (30%)** — Project age, version count, PHP version support, and release stability.

###  Release Activity

Cadence

Every ~7 days

Total

2

Last Release

2132d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/a15c90b32e75c27fc63f79357a914b4caa7af5fdb69a2e150341515ddececf95?d=identicon)[Macintosh\_plus](/maintainers/Macintosh_plus)

![](https://www.gravatar.com/avatar/bd1154ec55c164982303d9eb60bb5f0e7073fcded4ced5094696c23a933b26f1?d=identicon)[jeremycr](/maintainers/jeremycr)

---

Top Contributors

[![alafon](https://avatars.githubusercontent.com/u/304638?v=4)](https://github.com/alafon "alafon (2 commits)")[![jeremycr](https://avatars.githubusercontent.com/u/32451794?v=4)](https://github.com/jeremycr "jeremycr (1 commits)")[![SofLesc](https://avatars.githubusercontent.com/u/10260380?v=4)](https://github.com/SofLesc "SofLesc (1 commits)")

### Embed Badge

![Health badge](/badges/code-rhapsodie-get-url-contents-ez-twig-bundle/health.svg)

```
[![Health](https://phpackages.com/badges/code-rhapsodie-get-url-contents-ez-twig-bundle/health.svg)](https://phpackages.com/packages/code-rhapsodie-get-url-contents-ez-twig-bundle)
```

###  Alternatives

[easycorp/easyadmin-bundle

Admin generator for Symfony applications

4.3k17.9M388](/packages/easycorp-easyadmin-bundle)[shopware/core

Shopware platform is the core for all Shopware ecommerce products.

585.6M577](/packages/shopware-core)[2lenet/crudit-bundle

The easy like Crud'it Bundle.

1616.4k14](/packages/2lenet-crudit-bundle)[open-dxp/opendxp

Content &amp; Product Management Framework (CMS/PIM)

9421.6k61](/packages/open-dxp-opendxp)[symfony/ux-notify

Native notification integration for Symfony

1291.7k](/packages/symfony-ux-notify)[chameleon-system/chameleon-base

The Chameleon System core.

1028.6k5](/packages/chameleon-system-chameleon-base)

PHPackages © 2026

[Directory](/)[Categories](/categories)[Trending](/trending)[Changelog](/changelog)[Analyze](/analyze)
