Download the PHP package shammaa/laravel-security without Composer

On this page you can find all versions of the php package shammaa/laravel-security. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.

FAQ

After the download, you have to make one include require_once('vendor/autoload.php');. After that you have to import the classes with use statements.

Example:
If you use only one package a project is not needed. But if you use more then one package, without a project it is not possible to import the classes with use statements.

In general, it is recommended to use always a project to download your libraries. In an application normally there is more than one library needed.
Some PHP packages are not free to download and because of that hosted in private repositories. In this case some credentials are needed to access such packages. Please use the auth.json textarea to insert credentials, if a package is coming from a private repository. You can look here for more information.

  • Some hosting areas are not accessible by a terminal or SSH. Then it is not possible to use Composer.
  • To use Composer is sometimes complicated. Especially for beginners.
  • Composer needs much resources. Sometimes they are not available on a simple webspace.
  • If you are using private repositories you don't need to share your credentials. You can set up everything on our site and then you provide a simple download link to your team member.
  • Simplify your Composer build process. Use our own command line tool to download the vendor folder as binary. This makes your build process faster and you don't need to expose your credentials for private repositories.
Please rate this library. Is it a good library?

Informations about the package laravel-security

Laravel Security Package

Comprehensive security package for Laravel - Automatically protects against all types of security vulnerabilities!

⚡ Quick Installation (3 Steps Only!)

🚀 Usage - Super Easy!

Method 1: 100% Automatic (Easiest)

Just add one middleware in app/Http/Kernel.php or bootstrap/app.php:

That's it! Now all your requests are automatically protected from:

Method 2: Using Helper Functions (Very Simple)

Method 3: Using Facade (Simplest)

📋 Complete Features List

Core Security Protections

File & Upload Security

Authentication & Authorization

Rate Limiting & DDoS Protection

Security Headers

Monitoring & Logging

Input Validation

Additional Features

⚙️ Configuration (Optional)

Everything works automatically! But if you want to customize, edit config/security.php:

Whitelisting Routes for Admin Panels & WYSIWYG Editors

If you're using admin panels with rich text editors (like CKEditor, TinyMCE) or DataTables, you may need to whitelist certain routes to bypass strict security checks.

Option 1: Using Environment Variables (Recommended)

Add these to your .env file:

Option 2: Using Config File

Edit config/security.php:

Example: CKEditor Setup

Example: DataTables Setup

Important Notes:

Excluding Routes from All Security Checks

If you have routes that need to completely bypass all security checks (e.g., AI APIs, webhooks, large content uploads), you can use the excluded_routes feature:

Option 1: Using Environment Variables (Recommended)

Add this to your .env file:

Option 2: Using Config File

Edit config/security.php:

When to Use Excluded Routes

Use excluded_routes when:

⚠️ Security Warning:

Example: AI API Integration

🛠️ Commands

Security Scan

Generate Security Report

Unblock IP

Clean Security Logs

💡 Practical Examples

Example 1: File Upload Security (Super Easy!)

Example 2: Rate Limiting for API

Example 3: Brute Force Protection (Super Easy!)

Example 4: Manual Input Sanitization

Example 5: Filter Output from XSS

📚 More Information

Policies

The package includes ready-to-use policies that you can customize:

Events

The package fires events when threats are detected:

You can listen to these events:

🎯 Summary

Basic Usage:

  1. Install the package
  2. Add one middleware
  3. Done! Everything works automatically

For Advanced Users:

📄 License

MIT

👤 Author

Shadi Shammaa


All versions of laravel-security with dependencies

PHP Build Version
Package Version
Requires php Version ^8.1
illuminate/support Version ^9.0|^10.0|^11.0|^12.0
illuminate/http Version ^9.0|^10.0|^11.0|^12.0
illuminate/database Version ^9.0|^10.0|^11.0|^12.0
illuminate/console Version ^9.0|^10.0|^11.0|^12.0
illuminate/auth Version ^9.0|^10.0|^11.0|^12.0
illuminate/cache Version ^9.0|^10.0|^11.0|^12.0
Composer command for our command line client (download client) This client runs in each environment. You don't need a specific PHP version etc. The first 20 API calls are free. Standard composer command

The package shammaa/laravel-security contains the following files

Loading the files please wait ...