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

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

spadbob/urlencode
=================

Allow Urlencoded slashed and more in routing parameters

1.0.2(11y ago)1130GPL-3.0+PHPPHP &gt;=5.3.0

Since May 6Pushed 10y ago1 watchersCompare

[ Source](https://github.com/Spadbob/Urlencode)[ Packagist](https://packagist.org/packages/spadbob/urlencode)[ RSS](/packages/spadbob-urlencode/feed)WikiDiscussions development Synced 1mo ago

READMEChangelogDependencies (2)Versions (5)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/spadbob/urlencode):

```
"spadbob/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)[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)[http://laravel.com/docs/routing] and also to
(create routes with those parameters)[http://laravel.com/docs/routing#route-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

28

—

LowBetter than 54% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity11

Limited adoption so far

Community10

Small or concentrated contributor base

Maturity61

Established project with proven stability

 Bus Factor2

2 contributors hold 50%+ of commits

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

Total

3

Last Release

4331d ago

### Community

Maintainers

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

---

Top Contributors

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

---

Tags

laravellaravel4artistanurlencode

###  Code Quality

TestsPHPUnit

### Embed Badge

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

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

###  Alternatives

[barryvdh/laravel-ide-helper

Laravel IDE Helper, generates correct PHPDocs for all Facade classes, to improve auto-completion.

14.9k123.0M687](/packages/barryvdh-laravel-ide-helper)[bllim/datatables

Server-side handler of DataTables Jquery Plugin for Laravel 4

261413.7k4](/packages/bllim-datatables)[thujohn/rss

RSS builder for Laravel 4

72130.0k3](/packages/thujohn-rss)[interaction-design-foundation/laravel-geoip

Support for multiple Geographical Location services.

17221.0k3](/packages/interaction-design-foundation-laravel-geoip)[nedwors/navigator

A Laravel package to ease defining navigation menus

433.1k](/packages/nedwors-navigator)

PHPackages © 2026

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