PHPackages                             yidas/uri - 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. yidas/uri

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

yidas/uri
=========

URL Standardized Redirector with Customized Setting for SEO

1.1.0(8y ago)0221BSD-3-ClausePHP

Since Jan 18Pushed 8y ago1 watchersCompare

[ Source](https://github.com/yidas/php-uri)[ Packagist](https://packagist.org/packages/yidas/uri)[ Docs](https://github.com/yidas/php-uri)[ RSS](/packages/yidas-uri/feed)WikiDiscussions master Synced 3d ago

READMEChangelog (2)DependenciesVersions (3)Used By (0)

*php* URI
=========

[](#php-uri)

URL Standardized Redirector with Customized Setting for SEO

[![Latest Stable Version](https://camo.githubusercontent.com/2b3672c04c0f636e34e9c3d589feeda3ed99679dc025b10846759a91ee5a611b/68747470733a2f2f706f7365722e707567782e6f72672f79696461732f7572692f762f737461626c653f666f726d61743d666c61742d737175617265)](https://packagist.org/packages/yidas/uri)[![Latest Unstable Version](https://camo.githubusercontent.com/f8b00b0f2eccb1a9eb8fa086ddf6fdec75a314b581803f5fe729515c97fc9e56/68747470733a2f2f706f7365722e707567782e6f72672f79696461732f7572692f762f756e737461626c653f666f726d61743d666c61742d737175617265)](https://packagist.org/packages/yidas/uri)[![License](https://camo.githubusercontent.com/cbd0d196102e134371ce4500974bbcfe5c6517d4817fd344590569086edcfeb2/68747470733a2f2f706f7365722e707567782e6f72672f79696461732f7572692f6c6963656e73653f666f726d61743d666c61742d737175617265)](https://packagist.org/packages/yidas/uri)

---

DEMONSTRATION
-------------

[](#demonstration)

```
yidas\uri\Seo::trailingSlash(false)->removeIndex();
```

REQUIREMENTS
------------

[](#requirements)

This library requires the following:

- PHP 5.4.0+

---

INSTALLATION
------------

[](#installation)

Run Composer in your project:

```
composer require yidas/uri

```

---

COMPONENTS
----------

[](#components)

### Seo

[](#seo)

`yidas\uri\Seo` is a helper to handle URI for SEO, you could customized set rules in your application, then it will redirect to correct URI if the current URI is not match your expectation.

The usage methods are following:

#### `trailingSlash()`

[](#trailingslash)

Trailing Slash Handler, by default it always redirect to uri with last slash.

```
https://www.domain.com/about/   (Switch On)
https://www.domain.com/about    (Switch Off)

```

For example:

```
yidas\uri\Seo::trailingSlash(false);
// https://www.domain.com/about/ => https://www.domain.com/about
```

#### `removeIndex()`

[](#removeindex)

Most framework allows index action could be accessed by root URI of controller, this makes that way only.

For example, `https://www.domain.com/about/index/` to `https://www.domain.com/about/`.

###  Health Score

28

—

LowBetter than 54% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity7

Limited adoption so far

Community8

Small or concentrated contributor base

Maturity64

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

Total

2

Last Release

3032d ago

### Community

Maintainers

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

---

Top Contributors

[![yidas](https://avatars.githubusercontent.com/u/12604195?v=4)](https://github.com/yidas "yidas (7 commits)")

---

Tags

urluriphpseo

### Embed Badge

![Health badge](/badges/yidas-uri/health.svg)

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

###  Alternatives

[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)[pid/speakingurl

Generate of so called 'static' or 'Clean URL' or 'Pretty URL' or 'nice-looking URL' or 'Speaking URL' or 'user-friendly URL' or 'SEO-friendly URL' or 'slug' from a string.

1.1k5.3k1](/packages/pid-speakingurl)[rowbot/url

A WHATWG URL spec compliant URL parser for working with URLs and their query strings.

19648.2k4](/packages/rowbot-url)

PHPackages © 2026

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