PHPackages                             tecpresso/laravel-x-frame-options - 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. tecpresso/laravel-x-frame-options

ActiveLibrary[Security](/categories/security)

tecpresso/laravel-x-frame-options
=================================

Add X-Frame-Options Header for laravel

1.0.1(8y ago)35.8k1MITPHPPHP ^7.0

Since Jun 21Pushed 7y ago2 watchersCompare

[ Source](https://github.com/tecpresso/laravel-x-frame-options)[ Packagist](https://packagist.org/packages/tecpresso/laravel-x-frame-options)[ RSS](/packages/tecpresso-laravel-x-frame-options/feed)WikiDiscussions master Synced today

READMEChangelogDependencies (3)Versions (3)Used By (0)

X-Frame-Options for Laravel
===========================

[](#x-frame-options-for-laravel)

[![Build Status](https://camo.githubusercontent.com/8ac561bcb4ccf1e3aaf56431f732d9c9d9c9cacf527b4bcee7f173696f1f61d9/68747470733a2f2f7472617669732d63692e6f72672f74656370726573736f2f6c61726176656c2d782d6672616d652d6f7074696f6e732e7376673f6272616e63683d6d6173746572)](https://travis-ci.org/tecpresso/laravel-x-frame-options)[![Latest Stable Version](https://camo.githubusercontent.com/6bfcf71507ed9371f0c324f819858a9e3c441a707749b564e0a2e4e95fa9df41/68747470733a2f2f706f7365722e707567782e6f72672f74656370726573736f2f6c61726176656c2d782d6672616d652d6f7074696f6e732f76657273696f6e)](https://packagist.org/packages/tecpresso/laravel-x-frame-options)[![Total Downloads](https://camo.githubusercontent.com/a0eb823063af155a63c771d1c439d72d2e1518911ccc80dfb7f95823911b9d9c/68747470733a2f2f706f7365722e707567782e6f72672f74656370726573736f2f6c61726176656c2d782d6672616d652d6f7074696f6e732f646f776e6c6f616473)](https://packagist.org/packages/tecpresso/laravel-x-frame-options)[![License](https://camo.githubusercontent.com/97bc1e7641ce212da01d7ab51dd917e0634b82085f463fd10f2276ce54f4f4eb/68747470733a2f2f706f7365722e707567782e6f72672f74656370726573736f2f6c61726176656c2d782d6672616d652d6f7074696f6e732f6c6963656e7365)](https://packagist.org/packages/tecpresso/laravel-x-frame-options)

This library gives "X-Frame-Options" to Laravel.

I have created this to avoid OWASP warnings

Install
-------

[](#install)

```
composer require tecpresso/laravel-x-frame-options
```

This library corresponds to auto discovery

If you using laravel 5.4. you have to add the provider in the providers array (config/app.php)

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

[](#configuration)

Run command

```
php artisan vendor:publish
```

and select the Provider.

Then. generated config file in `confog/x-frame-options` .

You can edit rules for each path.

Usage
-----

[](#usage)

The library enabled automatically.

Testing
-------

[](#testing)

```
composer test
```

Lisence
-------

[](#lisence)

MIT

###  Health Score

31

—

LowBetter than 66% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity24

Limited adoption so far

Community5

Small or concentrated contributor base

Maturity59

Maturing project, gaining track record

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

2935d ago

### Community

Maintainers

![](https://avatars.githubusercontent.com/u/13947046?v=4)[mikkame](/maintainers/mikkame)[@mikkame](https://github.com/mikkame)

###  Code Quality

TestsPHPUnit

### Embed Badge

![Health badge](/badges/tecpresso-laravel-x-frame-options/health.svg)

```
[![Health](https://phpackages.com/badges/tecpresso-laravel-x-frame-options/health.svg)](https://phpackages.com/packages/tecpresso-laravel-x-frame-options)
```

###  Alternatives

[illuminate/encryption

The Illuminate Encryption package.

9630.7M326](/packages/illuminate-encryption)[psalm/plugin-laravel

Psalm plugin for Laravel

3355.3M346](/packages/psalm-plugin-laravel)

PHPackages © 2026

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