PHPackages                             heyjorgedev/laravel-trusted-proxies - 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. heyjorgedev/laravel-trusted-proxies

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

heyjorgedev/laravel-trusted-proxies
===================================

This is my package laravel-trusted-proxies

07[2 PRs](https://github.com/heyjorgedev/laravel-trusted-proxies/pulls)PHPCI passing

Since Jan 12Pushed 1mo agoCompare

[ Source](https://github.com/heyjorgedev/laravel-trusted-proxies)[ Packagist](https://packagist.org/packages/heyjorgedev/laravel-trusted-proxies)[ RSS](/packages/heyjorgedev-laravel-trusted-proxies/feed)WikiDiscussions main Synced 1mo ago

READMEChangelogDependenciesVersions (3)Used By (0)

This is my package laravel-trusted-proxies
==========================================

[](#this-is-my-package-laravel-trusted-proxies)

[![Latest Version on Packagist](https://camo.githubusercontent.com/8012d813f733628bbe366820f2e222b8c08d352d97ec15b2c1338246639af843/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f762f6865796a6f7267656465762f6c61726176656c2d747275737465642d70726f786965732e7376673f7374796c653d666c61742d737175617265)](https://packagist.org/packages/heyjorgedev/laravel-trusted-proxies)[![GitHub Tests Action Status](https://camo.githubusercontent.com/f465a8db2655c5331eb027415c31da9c5a64bd6be5c855053200e64532ce1bb6/68747470733a2f2f696d672e736869656c64732e696f2f6769746875622f616374696f6e732f776f726b666c6f772f7374617475732f6865796a6f7267656465762f6c61726176656c2d747275737465642d70726f786965732f72756e2d74657374732e796d6c3f6272616e63683d6d61696e266c6162656c3d7465737473267374796c653d666c61742d737175617265)](https://github.com/heyjorgedev/laravel-trusted-proxies/actions?query=workflow%3Arun-tests+branch%3Amain)[![GitHub Code Style Action Status](https://camo.githubusercontent.com/b3d15bf990ff6c89fd60005e311ff6223949878ec140e83ae3d6df4ae26c00d9/68747470733a2f2f696d672e736869656c64732e696f2f6769746875622f616374696f6e732f776f726b666c6f772f7374617475732f6865796a6f7267656465762f6c61726176656c2d747275737465642d70726f786965732f6669782d7068702d636f64652d7374796c652d6973737565732e796d6c3f6272616e63683d6d61696e266c6162656c3d636f64652532307374796c65267374796c653d666c61742d737175617265)](https://github.com/heyjorgedev/laravel-trusted-proxies/actions?query=workflow%3A%22Fix+PHP+code+style+issues%22+branch%3Amain)[![Total Downloads](https://camo.githubusercontent.com/aa97218fbb3759a75c58b7b5b4b03a886867596a79a78ad73d1e286035678d4e/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f64742f6865796a6f7267656465762f6c61726176656c2d747275737465642d70726f786965732e7376673f7374796c653d666c61742d737175617265)](https://packagist.org/packages/heyjorgedev/laravel-trusted-proxies)

This is where your description should go. Limit it to a paragraph or two. Consider adding a small example.

Support us
----------

[](#support-us)

[![](https://camo.githubusercontent.com/714351ecc850928552e8fb76175236d1ac6259628c9636ccd78a0f0975e696a4/68747470733a2f2f6769746875622d6164732e73332e65752d63656e7472616c2d312e616d617a6f6e6177732e636f6d2f6c61726176656c2d747275737465642d70726f786965732e6a70673f743d31)](https://spatie.be/github-ad-click/laravel-trusted-proxies)

We invest a lot of resources into creating [best in class open source packages](https://spatie.be/open-source). You can support us by [buying one of our paid products](https://spatie.be/open-source/support-us).

We highly appreciate you sending us a postcard from your hometown, mentioning which of our package(s) you are using. You'll find our address on [our contact page](https://spatie.be/about-us). We publish all received postcards on [our virtual postcard wall](https://spatie.be/open-source/postcards).

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

[](#installation)

You can install the package via composer:

```
composer require heyjorgedev/laravel-trusted-proxies
```

You can publish and run the migrations with:

```
php artisan vendor:publish --tag="laravel-trusted-proxies-migrations"
php artisan migrate
```

You can publish the config file with:

```
php artisan vendor:publish --tag="laravel-trusted-proxies-config"
```

This is the contents of the published config file:

```
return [
];
```

Optionally, you can publish the views using

```
php artisan vendor:publish --tag="laravel-trusted-proxies-views"
```

Usage
-----

[](#usage)

```
$trustedProxies = new HeyJorgeDev\TrustedProxies();
echo $trustedProxies->echoPhrase('Hello, HeyJorgeDev!');
```

Testing
-------

[](#testing)

```
composer test
```

Changelog
---------

[](#changelog)

Please see [CHANGELOG](CHANGELOG.md) for more information on what has changed recently.

Contributing
------------

[](#contributing)

Please see [CONTRIBUTING](CONTRIBUTING.md) for details.

Security Vulnerabilities
------------------------

[](#security-vulnerabilities)

Please review [our security policy](../../security/policy) on how to report security vulnerabilities.

Credits
-------

[](#credits)

- [Jorge Lapa](https://github.com/heyjorgedev)
- [All Contributors](../../contributors)

License
-------

[](#license)

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

###  Health Score

22

—

LowBetter than 22% of packages

Maintenance60

Regular maintenance activity

Popularity4

Limited adoption so far

Community9

Small or concentrated contributor base

Maturity15

Early-stage or recently created project

 Bus Factor1

Top contributor holds 70% 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.

### Community

Maintainers

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

---

Top Contributors

[![heyjorgedev](https://avatars.githubusercontent.com/u/2780099?v=4)](https://github.com/heyjorgedev "heyjorgedev (7 commits)")[![dependabot[bot]](https://avatars.githubusercontent.com/in/29110?v=4)](https://github.com/dependabot[bot] "dependabot[bot] (2 commits)")[![github-actions[bot]](https://avatars.githubusercontent.com/in/15368?v=4)](https://github.com/github-actions[bot] "github-actions[bot] (1 commits)")

### Embed Badge

![Health badge](/badges/heyjorgedev-laravel-trusted-proxies/health.svg)

```
[![Health](https://phpackages.com/badges/heyjorgedev-laravel-trusted-proxies/health.svg)](https://phpackages.com/packages/heyjorgedev-laravel-trusted-proxies)
```

###  Alternatives

[friendsofsymfony/rest-bundle

This Bundle provides various tools to rapidly develop RESTful API's with Symfony

2.8k73.3M319](/packages/friendsofsymfony-rest-bundle)[php-http/discovery

Finds and installs PSR-7, PSR-17, PSR-18 and HTTPlug implementations

1.3k309.5M1.2k](/packages/php-http-discovery)[nyholm/psr7

A fast PHP7 implementation of PSR-7

1.3k235.4M2.4k](/packages/nyholm-psr7)[pusher/pusher-php-server

Library for interacting with the Pusher REST API

1.5k94.8M293](/packages/pusher-pusher-php-server)[spatie/crawler

Crawl all internal links found on a website

2.8k16.3M52](/packages/spatie-crawler)[react/http

Event-driven, streaming HTTP client and server implementation for ReactPHP

78126.4M414](/packages/react-http)

PHPackages © 2026

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