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

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

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 3d 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 59% 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

2590d ago

### Community

Maintainers

![](https://avatars.githubusercontent.com/u/9892048?v=4)[James Fenwick](/maintainers/jmsfwk)[@jmsfwk](https://github.com/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)
```

###  Alternatives

[kwn/number-to-words

Multi language standalone PHP number to words converter. Fully tested, open for extensions and new languages.

4235.0M21](/packages/kwn-number-to-words)[amphp/parallel-functions

Parallel processing made simple.

27910.3M26](/packages/amphp-parallel-functions)[illuminate/redis

The Illuminate Redis package.

8314.0M314](/packages/illuminate-redis)[sylius/fixtures-bundle

Configurable fixtures for Symfony applications.

517.7M12](/packages/sylius-fixtures-bundle)[cartalyst/converter

A framework agnostic measurement conversion and formatting package featuring multiple types of measurements and currency conversion.

88434.4k7](/packages/cartalyst-converter)[symfony/ux-leaflet-map

Symfony UX Map Leaflet Bridge

13146.6k1](/packages/symfony-ux-leaflet-map)

PHPackages © 2026

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