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

Product Decisions This Supports

  • Infrastructure Modernization: Enables seamless integration with cloud-native architectures (e.g., AWS ELB, Cloudflare, Nginx) without manual header validation logic, reducing DevOps overhead.
  • Security & Compliance: Ensures accurate client IP logging for audit trails, fraud detection, and GDPR compliance (e.g., correct X-Forwarded-For handling).
  • Performance Optimization: Mitigates mixed-content warnings and incorrect HTTPS detection, improving frontend reliability and reducing support tickets.
  • Cost Efficiency: Avoids reinventing proxy-handling middleware, saving engineering time (estimated 10–20 hours of dev effort for a custom solution).
  • Scalability Roadmap: Future-proofs the stack for multi-region deployments or hybrid cloud setups by standardizing proxy trust logic.
  • Build vs. Buy: Justifies adopting an open-source package over proprietary solutions (e.g., Cloudflare Workers) for cost-sensitive projects with Laravel ecosystems.

When to Consider This Package

Adopt if:

  • Your Laravel app runs behind one or more reverse proxies (e.g., Nginx, HAProxy, AWS ALB, Cloudflare).
  • You observe incorrect client IPs in logs, mixed-content warnings, or HTTPS detection failures.
  • Your team lacks time/resources to implement custom proxy header validation (e.g., X-Forwarded-* parsing).
  • You need configurable trust rules for dynamic proxy environments (e.g., CI/CD pipelines with ephemeral IPs).
  • Your app relies on accurate URL generation (e.g., url() helper, redirects) behind proxies.

Look elsewhere if:

  • You’re not using Laravel (package is framework-specific).
  • Your infrastructure doesn’t use proxies (e.g., direct public-facing Laravel server).
  • You require advanced WAF integration (e.g., ModSecurity rules) beyond header trust.
  • Your team prefers proprietary solutions (e.g., Cloudflare’s native Laravel integration).
  • You need real-time proxy health monitoring (this package focuses on request normalization).

How to Pitch It (Stakeholders)

For Executives: *"This package solves a critical but invisible problem: ensuring our Laravel app correctly identifies real users and secure connections when traffic flows through proxies like Cloudflare or AWS. Without it, we risk:

  • Security gaps (e.g., logging wrong IPs for fraud detection).
  • Performance issues (e.g., mixed-content errors breaking user flows).
  • Engineering waste (spending weeks building what’s already battle-tested). It’s a 10-minute setup with MIT license—low risk, high reward for scalability and compliance."*

For Engineering Teams: *"fideloper/proxy is the de facto standard for Laravel proxy handling (7K+ stars, used by Laravel itself). Key wins:

  • Drop-in middleware: Replace manual X-Forwarded-* logic with one config file.
  • Fixes HTTPS/scheme detection: No more http:// redirects on https:// sites.
  • Future-proof: Works with any proxy (Cloudflare, Nginx, etc.) and supports CIDR ranges for dynamic IPs. Let’s avoid reinventing this wheel—it’s tested, maintained, and saves us from proxy-related bugs in production."*
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.
jayeshmepani/jpl-moshier-ephemeris-php
elnasnato/laraliveui
labrodev/rest-sdk
sampaui/sampaui
babelqueue/php-sdk
facebook/capi-param-builder-php
babelqueue/symfony
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