PHPackages                             artistan/urlencode - 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. artistan/urlencode

ActiveLibrary

artistan/urlencode
==================

Allow Urlencoded slashed and more in routing parameters

1.0.2(11y ago)61.3k3GPL-3.0+PHPPHP &gt;=5.3.0CI failing

Since May 6Pushed 5y ago2 watchersCompare

[ Source](https://github.com/Artistan/Urlencode)[ Packagist](https://packagist.org/packages/artistan/urlencode)[ RSS](/packages/artistan-urlencode/feed)WikiDiscussions master Synced 6d ago

READMEChangelog (3)Dependencies (2)Versions (6)Used By (0)

Urlencode for Laravel 4
=======================

[](#urlencode-for-laravel-4)

Overrides the default routing in Laravel 4 to allow all characters to be encoded including slashes!

### Composer Configuration

[](#composer-configuration)

Include the artistan urlencode package as a dependency in your `composer.json` [Packagist](https://packagist.org/packages/artistan/urlencode):

```
"artistan/urlencode": "1.0.*"

```

### Installation

[](#installation)

Once you update your composer configuration, run `composer install` to download the dependencies.

Add a ServiceProvider to your providers array in `app/config/app.php`:

```
'providers' => array(
    'Artistan\Urlencode\UrlencodeServiceProvider',
)

```

Apache conf

```
AllowEncodedSlashes On|NoDecode

```

### Warning

[](#warning)

```
Ensure all your routes are properly rawurlencoded!

This package will actually break your routing IF you do not have valid urls in your routes.

```

### Laravel Bug Fix

[](#laravel-bug-fix)

(\[Bug\] urlencoded slashes in routing parameters)\[[laravel/framework#4338](https://github.com/laravel/framework/pull/4338)\] Current routes do not allow for urlencoded slashes in the paths. This is problematic when trying to create ecommerce solutions with partnumbers in the routes since many part numbers have slashes in them. There are also quite a few manufacturers with slashes in their names and or brands. This package provides the functionality to allow an uri to have encoded slashes, and other characters, in the (routes)\[\] and also to (create routes with those parameters)\[\].

An example url may be...

```
// https://stage.test.com/part/Cisco%20Systems%2C%20Inc/CISCO2851-SRST%2FK9

Route::any('/part/{mfg}/{part}',
    array(
        'uses' =>'Vendorname\Package\Controllers\Hardware\PartController@part',
        'as' => 'part_page'
    )
);

```

### Usage

[](#usage)

With that said it WILL allow all characters to be rawurlencoded as parameters in your routes without breaking parameters and/or routes.

###  Health Score

32

—

LowBetter than 72% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity22

Limited adoption so far

Community14

Small or concentrated contributor base

Maturity62

Established project with proven stability

 Bus Factor1

Top contributor holds 62.5% 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 ~764 days

Total

4

Last Release

2101d ago

Major Versions

1.0.2 → v7.x-dev2020-08-16

### Community

Maintainers

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

---

Top Contributors

[![Artistan](https://avatars.githubusercontent.com/u/801349?v=4)](https://github.com/Artistan "Artistan (5 commits)")[![ameenross](https://avatars.githubusercontent.com/u/859737?v=4)](https://github.com/ameenross "ameenross (1 commits)")[![Montoya](https://avatars.githubusercontent.com/u/19909?v=4)](https://github.com/Montoya "Montoya (1 commits)")[![Spadbob](https://avatars.githubusercontent.com/u/694271?v=4)](https://github.com/Spadbob "Spadbob (1 commits)")

---

Tags

laravellaravel4artistanurlencode

###  Code Quality

TestsPHPUnit

### Embed Badge

![Health badge](/badges/artistan-urlencode/health.svg)

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

###  Alternatives

[anhskohbo/no-captcha

No CAPTCHA reCAPTCHA For Laravel.

1.8k8.5M33](/packages/anhskohbo-no-captcha)[rutorika/sortable

Adds sortable behavior and ordering to Laravel Eloquent models. Grouping and many to many supported.

299992.5k14](/packages/rutorika-sortable)[thujohn/analytics

Google Analytics for Laravel 4

113108.7k1](/packages/thujohn-analytics)

PHPackages © 2026

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