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 yesterday

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

25

—

LowBetter than 37% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity11

Limited adoption so far

Community13

Small or concentrated contributor base

Maturity50

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

2079d 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

[friendsofsymfony/ckeditor-bundle

Provides a CKEditor integration for your Symfony project.

53014.3M49](/packages/friendsofsymfony-ckeditor-bundle)[symfony/ux-twig-component

Twig components for Symfony

21814.8M162](/packages/symfony-ux-twig-component)[a2lix/auto-form-bundle

Automate form building

873.8M11](/packages/a2lix-auto-form-bundle)[boekkooi/jquery-validation-bundle

Jquery form validation bundle for symfony 2

2773.9k1](/packages/boekkooi-jquery-validation-bundle)[jmikola/js-assets-helper-bundle

Exposes the AssetsHelper service from Symfony2's templating component to JavaScript, allowing relative or absolute asset URI's to be generated client-side.

1912.6k](/packages/jmikola-js-assets-helper-bundle)

PHPackages © 2026

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