PHPackages                             vormkracht10/laravel-trusted-proxies-cloudflare - 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. [Security](/categories/security)
4. /
5. vormkracht10/laravel-trusted-proxies-cloudflare

ActiveLibrary[Security](/categories/security)

vormkracht10/laravel-trusted-proxies-cloudflare
===============================================

Set Cloudflare as a Trusted Proxy in Laravel when you're using both.

01.4k↑266.7%PHPCI failing

Since Jan 5Pushed 4mo ago2 watchersCompare

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

READMEChangelogDependenciesVersions (2)Used By (0)

Set Cloudflare as a Trusted Proxy in Laravel
============================================

[](#set-cloudflare-as-a-trusted-proxy-in-laravel)

[![Latest Version on Packagist](https://camo.githubusercontent.com/96c788c997be9d06e5d68b6ea80609c34e26660dc20d0209d1a4e432538b85c3/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f762f766f726d6b726163687431302f6c61726176656c2d747275737465642d70726f786965732d636c6f7564666c6172652e7376673f7374796c653d666c61742d737175617265)](https://packagist.org/packages/vormkracht10/laravel-trusted-proxies-cloudflare)[![GitHub Tests Action Status](https://camo.githubusercontent.com/03f780b222cfe3542e06b48e8396d9b885642a8066b4aa08806ab5af25d3f710/68747470733a2f2f696d672e736869656c64732e696f2f6769746875622f616374696f6e732f776f726b666c6f772f7374617475732f766f726d6b726163687431302f6c61726176656c2d747275737465642d70726f786965732d636c6f7564666c6172652f72756e2d74657374732e796d6c3f6272616e63683d6d61696e266c6162656c3d7465737473267374796c653d666c61742d737175617265)](https://github.com/vormkracht10/laravel-trusted-proxies-cloudflare/actions?query=workflow%3Arun-tests+branch%3Amain)[![GitHub Code Style Action Status](https://camo.githubusercontent.com/916b36954bd53ae58ac74b98f295b0c9f62667b257fff491ef94d8f018466a93/68747470733a2f2f696d672e736869656c64732e696f2f6769746875622f616374696f6e732f776f726b666c6f772f7374617475732f766f726d6b726163687431302f6c61726176656c2d747275737465642d70726f786965732d636c6f7564666c6172652f6669782d7068702d636f64652d7374796c652d6973737565732e796d6c3f6272616e63683d6d61696e266c6162656c3d636f64652532307374796c65267374796c653d666c61742d737175617265)](https://github.com/vormkracht10/laravel-trusted-proxies-cloudflare/actions?query=workflow%3A%22Fix+PHP+code+style+issues%22+branch%3Amain)[![Total Downloads](https://camo.githubusercontent.com/3ae8aa6239871183e9cd748103cdea07ef664e4824b1899de246ef1f46eea482/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f64742f766f726d6b726163687431302f6c61726176656c2d747275737465642d70726f786965732d636c6f7564666c6172652e7376673f7374796c653d666c61742d737175617265)](https://packagist.org/packages/vormkracht10/laravel-trusted-proxies-cloudflare)

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

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

[](#installation)

You can install the package via composer:

```
composer require vormkracht10/laravel-trusted-proxies-cloudflare
```

You can publish and run the migrations with:

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

You can publish the config file with:

```
php artisan vendor:publish --tag="laravel-trusted-proxies-cloudflare-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-cloudflare-views"
```

Usage
-----

[](#usage)

```
$TrustedProxiesCloudflare = new Vormkracht10\TrustedProxiesCloudflare();
echo $TrustedProxiesCloudflare->echoPhrase('Hello, Vormkracht10!');
```

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)

- [Mark van Eijk](https://github.com/markvaneijk)
- [All Contributors](../../contributors)

License
-------

[](#license)

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

###  Health Score

25

—

LowBetter than 37% of packages

Maintenance52

Moderate activity, may be stable

Popularity21

Limited adoption so far

Community13

Small or concentrated contributor base

Maturity14

Early-stage or recently created project

 Bus Factor1

Top contributor holds 75% 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/7c6a425dc8645907a118a007438172d58c2016773f54ab3a834beff172632f13?d=identicon)[ux](/maintainers/ux)

---

Top Contributors

[![markvaneijk](https://avatars.githubusercontent.com/u/1925388?v=4)](https://github.com/markvaneijk "markvaneijk (12 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)")[![mhortulanus](https://avatars.githubusercontent.com/u/91618246?v=4)](https://github.com/mhortulanus "mhortulanus (1 commits)")[![Ynitial](https://avatars.githubusercontent.com/u/35238373?v=4)](https://github.com/Ynitial "Ynitial (1 commits)")

### Embed Badge

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

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

###  Alternatives

[defuse/php-encryption

Secure PHP Encryption Library

3.9k162.4M214](/packages/defuse-php-encryption)[roave/security-advisories

Prevents installation of composer packages with known security vulnerabilities: no API, simply require it

2.9k97.3M6.4k](/packages/roave-security-advisories)[mews/purifier

Laravel 5/6/7/8/9/10 HtmlPurifier Package

2.0k16.7M113](/packages/mews-purifier)[robrichards/xmlseclibs

A PHP library for XML Security

41278.1M118](/packages/robrichards-xmlseclibs)[bjeavons/zxcvbn-php

Realistic password strength estimation PHP library based on Zxcvbn JS

86917.5M63](/packages/bjeavons-zxcvbn-php)[enlightn/security-checker

A PHP dependency vulnerabilities scanner based on the Security Advisories Database.

33732.2M110](/packages/enlightn-security-checker)

PHPackages © 2026

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