PHPackages                             creativeorange/laravel-served-by - 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. creativeorange/laravel-served-by

ActiveLibrary

creativeorange/laravel-served-by
================================

Automatically set the Served By for requests in your Laravel Framework.

v12.0.0(8mo ago)48.0k↓100%1MITPHPPHP ^8.2

Since Sep 6Pushed 8mo ago3 watchersCompare

[ Source](https://github.com/brainpink/laravel-served-by)[ Packagist](https://packagist.org/packages/creativeorange/laravel-served-by)[ Docs](https://github.com/creativeorange/served-by)[ RSS](/packages/creativeorange-laravel-served-by/feed)WikiDiscussions main Synced 1mo ago

READMEChangelog (7)Dependencies (1)Versions (10)Used By (0)

Laravel Served By
=================

[](#laravel-served-by)

[![Latest Version on Packagist](https://camo.githubusercontent.com/01b32c6940b36327054ac8d7163fed3fe8181bc6a5e3a1c17b4e3a0b2cd49a41/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f762f63726561746976656f72616e67652f6c61726176656c2d7365727665642d62792e7376673f7374796c653d666c61742d737175617265)](https://packagist.org/packages/creativeorange/laravel-served-by)[![Total Downloads](https://camo.githubusercontent.com/d7765b847f0ba1f8c1c60b196113716b522aab22495e61ef122ef0bf44ffa7f6/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f64742f63726561746976656f72616e67652f6c61726176656c2d7365727665642d62792e7376673f7374796c653d666c61742d737175617265)](https://packagist.org/packages/creativeorange/laravel-served-by)

Useful middleware for Laravel Requests &amp; Jobs to determine which server is serving (or running) the request. For HTTP requests, the identifier string will be sent back as HTTP Header "X-Served-By". In jobs, it is possible to send Context to Flare, or tag the server in Horizon.

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

[](#installation)

You can install the package via composer:

```
composer require creativeorange/laravel-served-by
```

For Laravel 8 or lower please install version 1.

Requirements
------------

[](#requirements)

- PHP 8.2+
- Laravel 9, 10, 11, or 12

Usage HTTP requests
-------------------

[](#usage-http-requests)

To allow Served By for all your routes, add the ServedBy middleware at the top of the $middleware property of app/Http/Kernel.php class:

```
protected $middleware = [
    \Creativeorange\ServedBy\Http\Middleware\ServedBy::class,
    // ...
];
```

Flare
-----

[](#flare)

If you use Flare, you can add the following to your job(s):

```
    /**
     * Get the middleware the job should pass through.
     *
     * @return array
     */
    public function middleware()
    {
        return [new Creativeorange\ServedBy\Http\Middleware\Jobs\ServedBy];
    }
```

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

[](#configuration)

The defaults are set in config/served-by.php. Publish the config to copy the file to your own config:

```
php artisan vendor:publish --tag="served-by"
```

By default, you can also overwrite the identifier string by adding `SERVED_BY_IDENTIFIER` to your .env

Credits
-------

[](#credits)

- [Creativeorange B.V.](https://github.com/creativeorange)
- [All Contributors](../../contributors)

License
-------

[](#license)

The MIT License (MIT). Please see [License File](LICENSE.md) for more information.

###  Health Score

44

—

FairBetter than 92% of packages

Maintenance58

Moderate activity, may be stable

Popularity26

Limited adoption so far

Community9

Small or concentrated contributor base

Maturity69

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

Recently: every ~359 days

Total

7

Last Release

268d ago

Major Versions

v1.1.0 → v2.0.02022-05-04

v2.0.0 → v3.0.02023-02-24

v3.0.0 → v4.0.02024-08-19

v4.0.0 → v12.0.02025-08-15

PHP version history (3 changes)v1.0.0PHP ^7.4|^8.0

v2.0.0PHP ^8.0.2

v12.0.0PHP ^8.2

### Community

Maintainers

![](https://www.gravatar.com/avatar/09c2af1aacfc3f405a56c5532985cb3b18f44520f24d9e2345d3a66acfc610ea?d=identicon)[creativeorange](/maintainers/creativeorange)

---

Top Contributors

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

---

Tags

laravelcreativeorangeserved-by

### Embed Badge

![Health badge](/badges/creativeorange-laravel-served-by/health.svg)

```
[![Health](https://phpackages.com/badges/creativeorange-laravel-served-by/health.svg)](https://phpackages.com/packages/creativeorange-laravel-served-by)
```

###  Alternatives

[slowlyo/owl-admin

基于 laravel、amis 开发的后台框架~

61214.2k26](/packages/slowlyo-owl-admin)[erag/laravel-disposable-email

A Laravel package to detect and block disposable email addresses.

226102.4k](/packages/erag-laravel-disposable-email)[highsolutions/eloquent-sequence

A Laravel package for easy creation and management sequence support for Eloquent models with elastic configuration.

121130.3k](/packages/highsolutions-eloquent-sequence)[glhd/linen

21135.6k](/packages/glhd-linen)[api-platform/laravel

API Platform support for Laravel

59126.4k6](/packages/api-platform-laravel)[interaction-design-foundation/laravel-geoip

Support for multiple Geographical Location services.

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

PHPackages © 2026

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