PHPackages                             m-derakhshi/laravel-php-security - 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. m-derakhshi/laravel-php-security

ActiveLibrary[Security](/categories/security)

m-derakhshi/laravel-php-security
================================

A package for checking PHP security settings in Laravel

1.0.4(1y ago)4230MITPHPPHP ^8.1

Since Nov 14Pushed 1y ago1 watchersCompare

[ Source](https://github.com/m-derakhshi/laravel-php-security)[ Packagist](https://packagist.org/packages/m-derakhshi/laravel-php-security)[ RSS](/packages/m-derakhshi-laravel-php-security/feed)WikiDiscussions main Synced 1mo ago

READMEChangelogDependencies (2)Versions (6)Used By (0)

Laravel PHP Security Check Package
==================================

[](#laravel-php-security-check-package)

This package helps you quickly assess and improve the security settings of your PHP environment within a Laravel application. It checks essential security configurations and provides recommendations to enhance security by adjusting your `php.ini` file.

[![Security Check Example](docs/example.png)](docs/example.png)[![recommended way to fix](docs/recommended.png)](docs/recommended.png)

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

[](#installation)

### Step 1: Install the Package

[](#step-1-install-the-package)

To include this package in your Laravel project:

```
composer require m-derakhshi/laravel-php-security
```

### Step 2: Publish the Views (Optional)

[](#step-2-publish-the-views-optional)

To customize the view template, publish the package views:

```
php artisan vendor:publish --tag=views --provider="MDerakhshi\SecurityCheck\LaravelPHPSecurityServiceProvider"
```

Usage
-----

[](#usage)

### Route and Controller

[](#route-and-controller)

1. Create a route and controller action for the security check. For example, you might use a `SecurityCheckController`:

```
// In web.php
Route::get('/security-check', [SecurityCheckController::class, 'index']);
```

2. Create the controller to handle the package:

```
