PHPackages                             jmsfwk/surlf - 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. jmsfwk/surlf

ActiveLibrary

jmsfwk/surlf
============

A library for formatting urls in the style of printf strings.

v1.0.2(7y ago)3108MITPHP

Since Nov 15Pushed 7y ago1 watchersCompare

[ Source](https://github.com/jmsfwk/surlf)[ Packagist](https://packagist.org/packages/jmsfwk/surlf)[ RSS](/packages/jmsfwk-surlf/feed)WikiDiscussions master Synced 2mo ago

READMEChangelogDependencies (1)Versions (4)Used By (0)

surlf
=====

[](#surlf)

[![Build Status](https://camo.githubusercontent.com/60c9b03d36269ba4459701fe289fdfadc08cd36d8cc697156aaf135490e27cf5/68747470733a2f2f7472617669732d63692e6f72672f6a6d7366776b2f7375726c662e7376673f6272616e63683d6d6173746572)](https://travis-ci.org/jmsfwk/surlf)

Usage
-----

[](#usage)

```
use Jmsfwk\Surlf\Formatter;

echo Formatter::format('%h/%p', 'http://example.com/a-path');
// example.com/a-path
```

Formats
-------

[](#formats)

The examples in the table below are based on the url `http://example.com/a/b/c?d=e&f=g`.

Format characterDescriptionExamplesURL schemehttphHostexample.compPatha/b/cqQueryd=e&amp;f=g%Literal % character%

###  Health Score

29

—

LowBetter than 60% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity13

Limited adoption so far

Community7

Small or concentrated contributor base

Maturity63

Established project with proven stability

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

Total

3

Last Release

2585d ago

### Community

Maintainers

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

---

Top Contributors

[![jmsfwk](https://avatars.githubusercontent.com/u/9892048?v=4)](https://github.com/jmsfwk "jmsfwk (8 commits)")

###  Code Quality

TestsPHPUnit

### Embed Badge

![Health badge](/badges/jmsfwk-surlf/health.svg)

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

PHPackages © 2026

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