Download the PHP package m-derakhshi/laravel-php-security without Composer
On this page you can find all versions of the php package m-derakhshi/laravel-php-security. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Download m-derakhshi/laravel-php-security
More information about m-derakhshi/laravel-php-security
Files in m-derakhshi/laravel-php-security
Package laravel-php-security
Short Description A package for checking PHP security settings in Laravel
License MIT
Informations about the package laravel-php-security
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.
Installation
Step 1: Install the Package
To include this package in your Laravel project:
Step 2: Publish the Views (Optional)
To customize the view template, publish the package views:
Usage
Route and Controller
-
Create a route and controller action for the security check. For example, you might use a
SecurityCheckController
: - Create the controller to handle the package:
Displaying the Security Check
Visit /security-check
in your Laravel application to view the PHP security settings and recommended adjustments.
Features
- PHP Extensions Check: Confirms essential extensions (like GD, intl, mbstring, etc.) are enabled.
- Security Settings Check: Validates critical PHP settings such as
register_argc_argv
,display_errors
,expose_php
, and more. - Recommended php.ini Adjustments: Displays suggestions for modifying
php.ini
settings to enhance security.
Customization
After publishing, the view files are located in resources/views/vendor/laravel-php-security-check/
and can be modified to adjust the display as needed.
License
This package is open-source software licensed under the MIT license.