PHPackages                             dragon-code/laravel-http-user-agent - 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. [HTTP &amp; Networking](/categories/http)
4. /
5. dragon-code/laravel-http-user-agent

AbandonedArchivedLibrary[HTTP &amp; Networking](/categories/http)

dragon-code/laravel-http-user-agent
===================================

Passing your own User Agent in all Http requests

1.1.0(1y ago)224MITPHPPHP ^8.2CI passing

Since Jun 3Pushed 1y ago1 watchersCompare

[ Source](https://github.com/TheDragonCode/laravel-http-user-agent)[ Packagist](https://packagist.org/packages/dragon-code/laravel-http-user-agent)[ RSS](/packages/dragon-code-laravel-http-user-agent/feed)WikiDiscussions main Synced 1mo ago

READMEChangelog (2)Dependencies (7)Versions (3)Used By (0)

HTTP User Agent for Laravel
===========================

[](#http-user-agent-for-laravel)

[![the dragon code laravel http user agent](https://camo.githubusercontent.com/6bf67bdcd5f58052104cd961e7e3777899745873fadb085f4f22d222e0f8ce3c/68747470733a2f2f707265766965772e647261676f6e2d636f64652e70726f2f7468652d647261676f6e2d636f64652f687474702d757365722d6167656e742e7376673f6272616e643d6c61726176656c266d6f64653d6461726b)](https://camo.githubusercontent.com/6bf67bdcd5f58052104cd961e7e3777899745873fadb085f4f22d222e0f8ce3c/68747470733a2f2f707265766965772e647261676f6e2d636f64652e70726f2f7468652d647261676f6e2d636f64652f687474702d757365722d6167656e742e7376673f6272616e643d6c61726176656c266d6f64653d6461726b)

[![Stable Version](https://camo.githubusercontent.com/daaca2db4436000911de66ad9fd76ce56e593f5fe52a95b3ee3afc45cdec8803/68747470733a2f2f696d672e736869656c64732e696f2f6769746875622f762f72656c656173652f546865447261676f6e436f64652f6c61726176656c2d687474702d757365722d6167656e743f6c6162656c3d7061636b6167697374267374796c653d666c61742d737175617265)](https://packagist.org/packages/dragon-code/laravel-http-user-agent)[![Total Downloads](https://camo.githubusercontent.com/2842e93b7536f1855870a20839dd296b388b1991a3d8e1a53881e4e18935f782/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f64742f647261676f6e2d636f64652f6c61726176656c2d687474702d757365722d6167656e742e7376673f7374796c653d666c61742d737175617265)](https://packagist.org/packages/dragon-code/laravel-http-user-agent)[![Github Workflow Status](https://camo.githubusercontent.com/64eb11be861c07f219516b5b2f68c22c20510298500e8a7352eadefd56e29a52/68747470733a2f2f696d672e736869656c64732e696f2f6769746875622f616374696f6e732f776f726b666c6f772f7374617475732f546865447261676f6e436f64652f6c61726176656c2d687474702d757365722d6167656e742f706870756e69742e796d6c3f7374796c653d666c61742d737175617265)](https://github.com/TheDragonCode/laravel-http-user-agent/actions)[![License](https://camo.githubusercontent.com/ed6d883b20fe24a1528ab0027a26413e41470f37042242fa21bc4edd9a55a675/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f6c2f647261676f6e2d636f64652f6c61726176656c2d687474702d757365722d6167656e742e7376673f7374796c653d666c61742d737175617265)](LICENSE)

FAQ
---

[](#faq)

- Q: What problem does this package solve?
- A: In cases where it is necessary to explicitly specify the value `User-Agent` in outgoing requests. In other cases it is not necessary.

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

[](#installation)

```
composer require dragon-code/laravel-http-user-agent
```

Basic Usage
-----------

[](#basic-usage)

It's all. Really 😎

When a package is installed, it will automatically specify the value of the `User-Agent` header in the following format (by default):

```
%s / %s - %s | %s

```

For example:

```
Site Name / 1.0 - https://example.com - john.doe@example.com

```

where:

- `Site Name` - value of the `APP_NAME` environment parameter
- `1.0` - specific version of the application. If the `version` parameter is specified in the `composer.json` file, its value will be taken, otherwise `1.0` will be used by default.
- `https://example.com` - value of the `APP_URL` environment parameter
- `john.doe@example.com` - value of the `MAIL_FROM_ADDRESS` environment parameter

If you want to change this value, add a new parameter `APP_USER_AGENT` to the `.env` file.

For example:

```
APP_USER_AGENT = "Cool Site - https://the-best.example.com"
```

Now, the value of the `User-Agent` header in all external Http requests will be specified as `Cool Site - https://the-best.example.com`.

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

[](#configuration)

If you need direct access to the configuration file, you can publish it to your application by calling the following console command:

```
php artisan vendor:publish --provider="DragonCode\LaravelHttpUserAgent\ServiceProvider"
```

As a result of its execution, the file `config/http.php` will be created.

You can also disable value assignment through the environment settings:

```
APP_USER_AGENT_ENABLED = false
```

License
-------

[](#license)

This package is licensed under the [MIT License](LICENSE).

###  Health Score

30

—

LowBetter than 65% of packages

Maintenance37

Infrequent updates — may be unmaintained

Popularity9

Limited adoption so far

Community11

Small or concentrated contributor base

Maturity54

Maturing project, gaining track record

 Bus Factor1

Top contributor holds 69.2% 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 ~0 days

Total

2

Last Release

705d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/b77790e612f1c9beed1e1533e36eba4954fbd6da2a5c9f71e845cd0f5465f0ad?d=identicon)[Helldar](/maintainers/Helldar)

---

Top Contributors

[![andrey-helldar](https://avatars.githubusercontent.com/u/10347617?v=4)](https://github.com/andrey-helldar "andrey-helldar (9 commits)")[![actions-user](https://avatars.githubusercontent.com/u/65916846?v=4)](https://github.com/actions-user "actions-user (2 commits)")[![dependabot[bot]](https://avatars.githubusercontent.com/in/29110?v=4)](https://github.com/dependabot[bot] "dependabot[bot] (1 commits)")[![github-actions[bot]](https://avatars.githubusercontent.com/in/15368?v=4)](https://github.com/github-actions[bot] "github-actions[bot] (1 commits)")

---

Tags

httplaraveluser agentdragon codehelldarAndre Helldar

###  Code Quality

TestsPest

### Embed Badge

![Health badge](/badges/dragon-code-laravel-http-user-agent/health.svg)

```
[![Health](https://phpackages.com/badges/dragon-code-laravel-http-user-agent/health.svg)](https://phpackages.com/packages/dragon-code-laravel-http-user-agent)
```

###  Alternatives

[omniphx/forrest

A Laravel library for Salesforce

2724.4M8](/packages/omniphx-forrest)[dragon-code/laravel-http-logger

Logging incoming HTTP requests

319.8k3](/packages/dragon-code-laravel-http-logger)[api-platform/laravel

API Platform support for Laravel

59126.4k6](/packages/api-platform-laravel)[matthewbdaly/laravel-etag-middleware

A Laravel middleware for adding ETags to HTTP requests to improve response times

64326.0k2](/packages/matthewbdaly-laravel-etag-middleware)[tomschlick/request-migrations

HTTP Request Migrations

1844.5k](/packages/tomschlick-request-migrations)[laragear/json

Easily retrieve and manipulate `Json` across your application.

363.5k](/packages/laragear-json)

PHPackages © 2026

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