PHPackages                             openlss/lib-url - 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. openlss/lib-url

ActiveLibrary[Templating &amp; Views](/categories/templating)

openlss/lib-url
===============

URL building library that allows dynamic registration at runtime.

0.0.11(13y ago)11663LGPL-3.0+PHPPHP &gt;=5.3.2

Since Mar 24Pushed 13y ago1 watchersCompare

[ Source](https://github.com/nullivex/lib-url)[ Packagist](https://packagist.org/packages/openlss/lib-url)[ Docs](http://openlss.org)[ RSS](/packages/openlss-lib-url/feed)WikiDiscussions master Synced today

READMEChangelogDependencies (2)Versions (13)Used By (3)

openlss/lib-url
===============

[](#openlsslib-url)

URL building library that allows dynamic registration at runtime.

Usage
-----

[](#usage)

```
use \LSS\Url;

//registration
Url::_register('home',Url::_prep().'/index.php');
Url::_register('myapp',Url::home().'?act=myapp');
Url::_register('myapp_create',Url::myapp().'&do=create');
Url::_register('myapp_edit',Url::myapp().'&do=edit&id=$1');

//usage
$url = Url::home();
$url = Url::myapp();
$url = Url::myapp_create();
$url = Url::myapp_edit($id);
```

Reference
---------

[](#reference)

### (string) Url::\_prep()

[](#string-url_prep)

Returns the configured root URL

### (bool) Url::\_isCallable($func)

[](#bool-url_iscallablefunc)

Check if a URL function has been registered

### (array) Url::\_all()

[](#array-url_all)

Returns all URLs that dont need arguments (global URLs)

### (void) Url::\_register($name,$url)

[](#void-url_registernameurl)

- $name The function name to access the URL
- $url The URL itself, use of other functions is encouraged
- $1 $2 $3 Numbered arguments similar to regex back-referencing they reference the parameter number passed to the URL function

###  Health Score

27

—

LowBetter than 47% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity12

Limited adoption so far

Community13

Small or concentrated contributor base

Maturity55

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 ~4 days

Total

11

Last Release

4802d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/83c8e9d55e3ebafb0621a441a51af8f551f61a274fde5400459a29cc320b7b75?d=identicon)[nullivex](/maintainers/nullivex)

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

---

Top Contributors

[![nullivex](https://avatars.githubusercontent.com/u/2321375?v=4)](https://github.com/nullivex "nullivex (14 commits)")

---

Tags

templatingphptalTAL

### Embed Badge

![Health badge](/badges/openlss-lib-url/health.svg)

```
[![Health](https://phpackages.com/badges/openlss-lib-url/health.svg)](https://phpackages.com/packages/openlss-lib-url)
```

###  Alternatives

[twig/twig

Twig, the flexible, fast, and secure template language for PHP

8.4k457.8M6.9k](/packages/twig-twig)[mustache/mustache

A Mustache implementation in PHP.

3.3k46.6M313](/packages/mustache-mustache)[smarty/smarty

Smarty - the compiling PHP template engine

2.4k40.9M448](/packages/smarty-smarty)[timber/timber

Create WordPress themes with beautiful OOP code and the Twig Template Engine

5.7k3.6M127](/packages/timber-timber)[league/plates

Plates, the native PHP template system that's fast, easy to use and easy to extend.

1.5k6.1M263](/packages/league-plates)[eftec/bladeone

The standalone version Blade Template Engine from Laravel in a single php file

8259.3M103](/packages/eftec-bladeone)

PHPackages © 2026

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