PHPackages                             entermotion/eurl - 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. [Utility &amp; Helpers](/categories/utility)
4. /
5. entermotion/eurl

ActiveLibrary[Utility &amp; Helpers](/categories/utility)

entermotion/eurl
================

This package aims to deliver a good set of functions to easily escape URLs that will be used on HTML

212.8k↓27%1[4 issues](https://github.com/entermotion/eurl/issues)[1 PRs](https://github.com/entermotion/eurl/pulls)PHPCI failing

Since Dec 2Pushed 4y ago9 watchersCompare

[ Source](https://github.com/entermotion/eurl)[ Packagist](https://packagist.org/packages/entermotion/eurl)[ RSS](/packages/entermotion-eurl/feed)WikiDiscussions master Synced 1mo ago

READMEChangelogDependenciesVersions (3)Used By (0)

eURL
====

[](#eurl)

This package aims to deliver a good way to easily escape URLs that will be used on HTML attributes.

You should not use this package to generate URLs, ideally the URLs received here would already be escaped and safe. This project doesn't aim to encode your URL and make it browser compatible.

Goals:
------

[](#goals)

- Prevent XSS attacks
- Avoid at maximum changing and therefore possibly break the URLs

Usage:
------

[](#usage)

```
use eURL\Functions as eurl

$userInput = $_POST['href'];
$href = eurl\e($userInput);
$safeATag = "".htmlspecialchars($href)."";
echo $safeATag;
```

Running tests:
--------------

[](#running-tests)

To run the tests you must install the composer dependencies and then run:

```
vendor/bin/phpunit tests/TestUrls.php

```

Running tests with Docker:
--------------------------

[](#running-tests-with-docker)

- Run container: `docker-compose -f docker-compose_php81.yml run php sh`
- Change directory: `cd /var/www/html`
- Install dependencies: `composer install`
- Run tests: `vendor/bin/phpunit tests/TestUrls.php`

###  Health Score

22

—

LowBetter than 22% of packages

Maintenance0

Infrequent updates — may be unmaintained

Popularity29

Limited adoption so far

Community15

Small or concentrated contributor base

Maturity38

Early-stage or recently created project

 Bus Factor1

Top contributor holds 70% 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.

### Community

Maintainers

![](https://www.gravatar.com/avatar/4296ff92b30c0a7e91aad701a002199c2a895c2f860ad72badd897d3d279efde?d=identicon)[gabriel-felipe](/maintainers/gabriel-felipe)

![](https://www.gravatar.com/avatar/5c1daa195d6a416926e5a02595b570dd128b754323a95903edcef5b080458b1f?d=identicon)[azertys](/maintainers/azertys)

---

Top Contributors

[![gabriel-felipe](https://avatars.githubusercontent.com/u/4062651?v=4)](https://github.com/gabriel-felipe "gabriel-felipe (7 commits)")[![enricodias](https://avatars.githubusercontent.com/u/32619307?v=4)](https://github.com/enricodias "enricodias (2 commits)")[![Parziphal](https://avatars.githubusercontent.com/u/5176023?v=4)](https://github.com/Parziphal "Parziphal (1 commits)")

### Embed Badge

![Health badge](/badges/entermotion-eurl/health.svg)

```
[![Health](https://phpackages.com/badges/entermotion-eurl/health.svg)](https://phpackages.com/packages/entermotion-eurl)
```

###  Alternatives

[leafo/lessphp

lessphp is a compiler for LESS written in PHP.

2.2k8.2M141](/packages/leafo-lessphp)[realrashid/sweet-alert

Laravel Sweet Alert Is A Package For Laravel Provides An Easy Way To Display Alert Messages Using The SweetAlert2 Library.

1.2k2.9M21](/packages/realrashid-sweet-alert)[symfony/polyfill-php55

Symfony polyfill backporting some PHP 5.5+ features to lower PHP versions

10731.7M9](/packages/symfony-polyfill-php55)[helmich/typo3-typoscript-lint

Static code analysis for the TypoScript configuration language.

902.9M241](/packages/helmich-typo3-typoscript-lint)[cyclonedx/cyclonedx-php-composer

Creates CycloneDX Software Bill-of-Materials (SBOM) from PHP Composer projects

821.6M17](/packages/cyclonedx-cyclonedx-php-composer)[kartik-v/yii2-widget-touchspin

A Yii2 wrapper widget for the Bootstrap Switch plugin to use checkboxes &amp; radios as toggle touchspines (sub repo split from yii2-widgets)

184.1M6](/packages/kartik-v-yii2-widget-touchspin)

PHPackages © 2026

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