PHPackages                             ktourvas/laravel-extensions - 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. ktourvas/laravel-extensions

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

ktourvas/laravel-extensions
===========================

collection of laravel based functionality extending classes

v1.1.2(5y ago)032MITPHP

Since May 7Pushed 5y ago1 watchersCompare

[ Source](https://github.com/ktourvas/laravel-extensions)[ Packagist](https://packagist.org/packages/ktourvas/laravel-extensions)[ RSS](/packages/ktourvas-laravel-extensions/feed)WikiDiscussions master Synced yesterday

READMEChangelogDependenciesVersions (7)Used By (0)

laravel-extensions
==================

[](#laravel-extensions)

Simple addon functionality classes for laravel.

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

[](#installation)

require package in your laravel installation with

```
composer require ktourvas/laravel-extensions
```

after installation the package will automatically be discovered through laravel's auto-discovery feature.

follow the above with

```
php artisan vendor:publish
```

in order for the package's configuration file to be published.

Usage
-----

[](#usage)

### Middleware

[](#middleware)

I like to register extra middleware through the ServiceProviders of project packages and not globally and that is because I usually work with different packages in one local installation that require different functionality each and I usually don't want them to interfere with eachother. So in that case a middleware would be registered through the register() method of a Service Provider like below

```
public function register()
{
    $this->app['router']->aliasMiddleware('IpRestrict', Laravel\extensions\Http\Middleware\ipRestrict::class);
}
```

#### ipRestrict

[](#iprestrict)

the ip restriction middleware checks a request's ip address against an array of whitelisted addresses set through configuration. The array is populated from the .env variable LE\_WHITELIST. Values are separated with commas.

ex.

```
LE_WHITELIST=99.99.99.99,88.88.88.88,77.77.77.77
```

in the event of a non whitelisted address the request is aborted with a 404 response.

#### setLocale

[](#setlocale)

the set locale middleware will check for the first segment on every request's url. If the first segment corresponds to a locale set through configuration, the application locale is set to that. Again in this case locale's are set through the .env variable LE\_LOCALES

ex.

```
LE_LOCALES=en;el
```

###  Health Score

27

—

LowBetter than 49% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity7

Limited adoption so far

Community7

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

Recently: every ~84 days

Total

6

Last Release

2181d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/967907cd83951999cc079de5d8f9af7a063845191165f140e6d1310938923a36?d=identicon)[ktourvas](/maintainers/ktourvas)

---

Top Contributors

[![ktourvas](https://avatars.githubusercontent.com/u/10920940?v=4)](https://github.com/ktourvas "ktourvas (11 commits)")

### Embed Badge

![Health badge](/badges/ktourvas-laravel-extensions/health.svg)

```
[![Health](https://phpackages.com/badges/ktourvas-laravel-extensions/health.svg)](https://phpackages.com/packages/ktourvas-laravel-extensions)
```

###  Alternatives

[naxeem/thaana-transliterator

Thaana transliterator

202.5k](/packages/naxeem-thaana-transliterator)

PHPackages © 2026

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