PHPackages                             brrittoo/url-encoder - 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. brrittoo/url-encoder

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

brrittoo/url-encoder
====================

Laravel package for URL parameter encoding

v2.0.0(6mo ago)0101MITPHPPHP &gt;=8.0CI passing

Since Aug 27Pushed 6mo agoCompare

[ Source](https://github.com/brrittoo/url-encoder)[ Packagist](https://packagist.org/packages/brrittoo/url-encoder)[ RSS](/packages/brrittoo-url-encoder/feed)WikiDiscussions main Synced 1mo ago

READMEChangelogDependencies (1)Versions (5)Used By (0)

Laravel URL Encoder
===================

[](#laravel-url-encoder)

[![Latest Version](https://camo.githubusercontent.com/727d81b5bc922f8327f3e510d5d0b3282990c2c6a1681b6f407f4d3316eea885/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f762f6272726974746f6f2f75726c2d656e636f6465722e7376673f7374796c653d666c61742d737175617265)](https://packagist.org/packages/paramguard/url-encoder)[![Total Downloads](https://camo.githubusercontent.com/59a9bad90c2eb80b2cf12979fd8341cf8a934de4639ddce30ad07ddb32fe5b9e/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f64742f6272726974746f6f2f75726c2d656e636f6465722e7376673f7374796c653d666c61742d737175617265)](https://packagist.org/packages/brrittoo/url-encoder)[![License](https://camo.githubusercontent.com/f5eef99f9a82f8ae1d63d2267e43ed36f0ae5201d43385a4d14b5f4634e9c438/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f6c2f6272726974746f6f2f75726c2d656e636f6465722e7376673f7374796c653d666c61742d737175617265)](https://packagist.org/packages/brrittoo/url-encoder)

Secure URL parameter encryption for Laravel applications. Protect sensitive data in your routes with AES-128-CTR encryption.

Features
--------

[](#features)

- Automatic encryption/decryption of route parameters
- Seamless integration with Laravel's URL generation
- AES-128-CTR encryption with random IVs
- URL-safe base64 encoding
- Configurable route groups and exclusions
- JavaScript compatibility
- Optional full source publish for local development

---

Installation
------------

[](#installation)

Install via Composer:

```
composer require brrittoo/url-encoder
```

Publish the config file:

```
php artisan vendor:publish --provider="Brrittoo\UrlEncoder\UrlEncoderServiceProvider" --tag="url-encoder-config"
```

---

Configuration
-------------

[](#configuration)

Set these in your `.env`:

```
URL_ENCODE_ENABLE=true
URL_ENCRYPTION_SECRET_KEY=your-32-character-secret-key-here
```

Edit `config/url-encoder.php` to customize:

```
