PHPackages                             ehough/curly - 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. ehough/curly

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

ehough/curly
============

Powerful PHP class for working with URLs

1.0.3(13y ago)357112MPL-2.0PHPPHP &gt;=5.2.0

Since Jul 2Pushed 10y ago1 watchersCompare

[ Source](https://github.com/ehough/curly)[ Packagist](https://packagist.org/packages/ehough/curly)[ Docs](https://github.com/ehough/curly)[ RSS](/packages/ehough-curly/feed)WikiDiscussions develop Synced 2d ago

READMEChangelog (1)DependenciesVersions (6)Used By (2)

curly
-----

[](#curly)

[![Build Status](https://camo.githubusercontent.com/ae79b3c7273d8f92565bea9ede374ccfa14fda63e21d8a6e2d32ba0371c7e2d8/68747470733a2f2f7365637572652e7472617669732d63692e6f72672f65686f7567682f6375726c792e706e67)](http://travis-ci.org/ehough/curly)[![Project Status: Unsupported - The project has reached a stable, usable state but the author(s) have ceased all work on it. A new maintainer may be desired.](https://camo.githubusercontent.com/baae56ff2a4e564adcf10fe13a639b7e4aaf1d62054fd5086a2e570ecc3637e5/687474703a2f2f7777772e7265706f7374617475732e6f72672f6261646765732f6c61746573742f756e737570706f727465642e737667)](http://www.repostatus.org/#unsupported)[![Latest Stable Version](https://camo.githubusercontent.com/854d94a664ae2b832e9cbabf4e33e1498d94ce0a70782dd9175c8f395a91e323/68747470733a2f2f706f7365722e707567782e6f72672f65686f7567682f6375726c792f762f737461626c65)](https://packagist.org/packages/ehough/curly)[![License](https://camo.githubusercontent.com/04fc71d78e98b038f0cecde617c2e8ce53832d53c8157c417507e65c4836b97e/68747470733a2f2f706f7365722e707567782e6f72672f65686f7567682f6375726c792f6c6963656e7365)](https://packagist.org/packages/ehough/curly)

**This library is no longer maintained.** Powerful class for working with URLs. Requires PHP 5.2+.

- Adheres as closely as possible to [RFC 3986](http://www.ietf.org/rfc/rfc3986.txt)
- Fully IPv6 ready

```
    foo://username:password@example.com:8042/over/there?name=ferret#nose
    \_/   \________________________________/\_________/ \_________/ \__/
     |                     |                     |           |        |
  scheme                authority               path        query   fragment
```

### Sample Usage

[](#sample-usage)

```
$url = new ehough_curly_Url('foo://username:password@example.com:8042/over/there?name=ferret#nose');

$url->getAuthority();      // username@example.com:8042
$url->getFragment();       // nose
$url->getHost();           // example.com
$url->getPath();           // /over/there
$url->getPort();           // 8042
$url->getQuery();          // name=ferret
$url->getQueryVariables(); // array('name' => 'ferret');
$url->getScheme();         // foo
$url->getUser();           // username

$url->setFragment('ear');
$url->setHost('ehough.com');
$url->setPath('/paved/walkway');
$url->setPort(99);
$url->setQueryVariables(array('moon' => 'rise', 'sun' => 'set'));
$url->setScheme('teleport');
$url->setUser('melissa:salsa');

echo $url->toString(); // teleport://melissa:salsa@ehough.com:99/paved/walkway?moon=rise&sun=set#ear
```

###  Health Score

30

—

LowBetter than 64% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity17

Limited adoption so far

Community12

Small or concentrated contributor base

Maturity62

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

Total

4

Last Release

4788d ago

PHP version history (2 changes)1.0.0PHP &gt;=5.1.0

1.0.3PHP &gt;=5.2.0

### Community

Maintainers

![](https://www.gravatar.com/avatar/53b269d929f6ba572a15e4b069d9b59e0e99af74db1be60cbac7a56adfea9221?d=identicon)[ehough](/maintainers/ehough)

---

Top Contributors

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

### Embed Badge

![Health badge](/badges/ehough-curly/health.svg)

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

###  Alternatives

[xiaodi/think-pullword

ThinkPHP 分词/抽词 扩展包

5512.1k](/packages/xiaodi-think-pullword)

PHPackages © 2026

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