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. [Utility &amp; Helpers](/categories/utility)
4. /
5. creativeorange/laravel-served-by

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

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

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

v12.0.0(10mo ago)48.0k1MITPHPPHP ^8.2

Since Sep 6Pushed 10mo 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 3w 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 91% of packages

Maintenance54

Moderate activity, may be stable

Popularity27

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

314d 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

[psalm/plugin-laravel

Psalm plugin for Laravel

3345.1M337](/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.5k9.6k1](/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.

90128.1k](/packages/emargareten-inertia-modal)[linkxtr/laravel-qrcode

A clean, modern, and easy-to-use QR code generator for Laravel

3614.9k](/packages/linkxtr-laravel-qrcode)[wearepixel/laravel-cart

A cart implementation for Laravel

1355.6k](/packages/wearepixel-laravel-cart)

PHPackages © 2026

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