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 today

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 52% 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

4377d ago

### Community

Maintainers

![](https://avatars.githubusercontent.com/u/694271?v=4)[Bob (Duchess) Maidens](/maintainers/Spadbob)[@Spadbob](https://github.com/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

[psalm/plugin-laravel

Psalm plugin for Laravel

3355.3M345](/packages/psalm-plugin-laravel)[renatomarinho/laravel-page-speed

Laravel Page Speed

2.5k1.7M11](/packages/renatomarinho-laravel-page-speed)[vinkius-labs/laravel-page-speed

Laravel Page Speed

2.5k12.5k1](/packages/vinkius-labs-laravel-page-speed)[emargareten/inertia-modal

Inertia Modal is a Laravel package that lets you implement backend-driven modal dialogs for Inertia apps.

90142.9k](/packages/emargareten-inertia-modal)[wearepixel/laravel-cart

A cart implementation for Laravel

1374.8k](/packages/wearepixel-laravel-cart)[tomshaw/electricgrid

A feature-rich Livewire package designed for projects that require dynamic, interactive data tables.

119.4k](/packages/tomshaw-electricgrid)

PHPackages © 2026

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