PHPackages                             mouf/utils.common.url-interface - 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. mouf/utils.common.url-interface

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

mouf/utils.common.url-interface
===============================

This package contains an interface used by many objects to say they represent a URL. The concept is very simple, the object implements a getUrl method, and that's it!

v1.0.0(12y ago)0356.7k↓33.3%2MITPHPPHP &gt;=5.3.0

Since Oct 29Pushed 11y ago10 watchersCompare

[ Source](https://github.com/thecodingmachine/utils.common.url-interface)[ Packagist](https://packagist.org/packages/mouf/utils.common.url-interface)[ Docs](https://mouf-php.com/packages/mouf/utils.common.url-interface)[ RSS](/packages/mouf-utilscommonurl-interface/feed)WikiDiscussions 1.0 Synced 1mo ago

READMEChangelogDependenciesVersions (2)Used By (2)

What is this package
====================

[](#what-is-this-package)

This package contains an interface used by many objects to declare they represent a single URL.

If your objects represent an URL (for instance your object is a link, they should implement *UrlInterface*. An object implementing this interface will return a single URL, as a string when the "getUrl()" method is called.

This is a very simple and useful system for classes representing links, pages, etc...

```
namespace Mouf\Utils;

interface UrlInterface {

	/**
	 * Returns the URL represented by this object, as a string.
	 *
	 * @return string
	 */
	public function getUrl();
}
```

This package comes with a simple **Url** class that implements this interface.

Mouf package
------------

[](#mouf-package)

This package is part of Mouf (), an effort to ensure good developing practices by providing a graphical dependency injection framework.

###  Health Score

34

—

LowBetter than 77% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity31

Limited adoption so far

Community14

Small or concentrated contributor base

Maturity58

Maturing project, gaining track record

 Bus Factor1

Top contributor holds 100% 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 ~0 days

Total

2

Last Release

4584d ago

### Community

Maintainers

![](https://avatars.githubusercontent.com/u/1104771?v=4)[mouf](/maintainers/mouf)[@Mouf](https://github.com/Mouf)

---

Top Contributors

[![moufmouf](https://avatars.githubusercontent.com/u/1290952?v=4)](https://github.com/moufmouf "moufmouf (3 commits)")

---

Tags

urlinterfacemoufurlinterface

### Embed Badge

![Health badge](/badges/mouf-utilscommonurl-interface/health.svg)

```
[![Health](https://phpackages.com/badges/mouf-utilscommonurl-interface/health.svg)](https://phpackages.com/packages/mouf-utilscommonurl-interface)
```

###  Alternatives

[nette/robot-loader

🍀 Nette RobotLoader: high performance and comfortable autoloader that will search and autoload classes within your application.

89352.7M321](/packages/nette-robot-loader)[spatie/url

Parse, build and manipulate URL's

73914.3M97](/packages/spatie-url)[jbroadway/urlify

A fast PHP slug generator and transliteration library that converts non-ascii characters for use in URLs.

6737.4M62](/packages/jbroadway-urlify)[league/uri-components

URI components manipulation library

31932.3M67](/packages/league-uri-components)[sabre/uri

Functions for making sense out of URIs.

29335.2M40](/packages/sabre-uri)[spomky-labs/base64url

Base 64 URL Safe Encoding/Decoding PHP Library

15439.5M49](/packages/spomky-labs-base64url)

PHPackages © 2026

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