Weave Code
Code Weaver
Helps Laravel developers discover, compare, and choose open-source packages. See popularity, security, maintainers, and scores at a glance to make better decisions.
Feedback
Share your thoughts, report bugs, or suggest improvements.
Subject
Message

Proxy Laravel Package

fideloper/proxy

Laravel middleware for trusting reverse proxies and correctly handling forwarded headers (X-Forwarded-For/Proto/Host/Port). Ensures accurate client IP and HTTPS detection when running behind load balancers like ELB, Nginx, or Cloudflare.

View on GitHub
Deep Wiki
Context7
4.4.2

As of Laravel 9, this package is in the core of Laravel and no longer needed. However some people use this package as a dependency in other cases. I've tagged this release for those people!

See here for more info: https://github.com/fideloper/TrustedProxy/issues/152

4.4.1

Allow installation in Laravel 9

4.4.0

See #135

This is likely not a breaking change for anyone.

4.3.0

Laravel 8 uses the newer Symfony 5, but it seems like they haven't changed Trusted Proxy support in this major release.

4.2.2
4.2.1

Support for Laravel 6 (already done), and support for Laravel 7 dev.

4.2.0

Laravel will be moving to semver, with a next release of version 6. This will allow TrustedProxy to be installed on version 6 of Laravel.

See pr #124

4.1.0
  • Support for config set in .env via #117
  • Testing on PHP 7.3 via #118
4.0.0

Updated the code for support for Symfony 4's latest incarnation of Trusted Proxies.

3.3.4

Now supporting auto-discovery of Trusted Proxy package for Laravel 5.5

3.3.3

PHP7 raised an warning when non-numeric values were used in bitwise operations (e.g. $foo | $bar where $foo or $bar was not a numeric value).

This resulted in a thrown ErrorException within Laravel.

This fixes that by returning out of the function before the bitwise calculation is complete, under the assumption that that condition only happens when Symfony < 3.3.

3.3.2

Merged in PRs #70 and #73 to be compatible with Symfony 3.3, which adds a secondary parameter to the $request->setTrustedProxies() method.

Resources to read more:

Note: This package should be backwards compatible with Symfony 3.2 and a Laravel install using Symfony 3.2. Let me know ASAP if that's not the case for you.

3.3.1

Merged #66 to fix issues with older versions of Laravel

3.3.0
  • Fixed whitespace (mixing tabs + spaces) via #63
  • Able to set trusted proxies within the middleware, instead of just within the configuration file via #63
  • Updated docs, fixing broken markdown via #61
3.2.0

Merged PR #52 to address possibility of multiple, chained proxies (e.g. a CDN and load balancer both in use). This correctly gets the end-user (client) IP address.

3.1.0
  • Lumen support
  • Documentation update/improvement

Thanks @GrahamCampbell and other contributors!

Note: Composer current sets the dependencies on Laravel ~5.0, let me know if you run into issue with this on newer Laravel.

2.1.1

Fixing #21, allowing multiple client IP addresses when using the * wildcard proxy IP address.

Weaver

How can I help you explore Laravel packages today?

Conversation history is not saved when not logged in.
Prompt
Add packages to context
No packages found.
hamzi/corewatch
minionfactory/raw-hydrator
hexters/coinpayment
rjcodes/rjcms
act-training/laravel-permissions-manager
alimarchal/laravel-chart-of-accounts
babenkoivan/elastic-scout-driver
mkwebdesign/filament-watchdog-v5
renatomarinho/laravel-page-speed
zedmagdy/filament-business-hours
renatovdemoura/blade-elements-ui
devgeek/beacon-admin
benjamin-rqt/data-watcher-bundle
atriumphp/atrium
sandermuller/package-boost-laravel
sandermuller/boost-skills
redaxo/core
yusufgenc/filament-api-forge
l3aro/rating-star-for-filament
leek/filament-subtenant-scope