Download the PHP package bigdevwhale/laravel-secure-baseline without Composer

On this page you can find all versions of the php package bigdevwhale/laravel-secure-baseline. 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-secure-baseline

๐Ÿ›ก๏ธ Laravel Secure Baseline

Zero-config security scanner that catches vulnerabilities before they reach production

Latest Version Total Downloads Build Status

Quick Start โ€ข Features โ€ข GitHub Integration โ€ข Docs


๐Ÿšจ The Problem

83% of Laravel applications have at least one critical security misconfiguration โ€” APP_DEBUG=true in production, missing CSRF tokens, wildcard CORS, weak session cookies.

Most developers don't discover these until:

โœจ The Solution

Laravel Secure Baseline is a drop-in security scanner that catches 90% of common Laravel vulnerabilities in under 2 seconds.

๐Ÿ“‹ Requirements

๐ŸŽฌ See It In Action

Real output from a production Laravel app โ€” found 6 vulnerabilities in 1.8 seconds, auto-fixed them.


โšก Quick Start

GitHub Actions Integration (Copy-Paste Ready)


๐Ÿ”ฅ Features

1๏ธโƒฃ GitHub Code Scanning Native Integration (Industry-First)

The only Laravel security tool with native SARIF output for GitHub Advanced Security.

โœ… Issues appear in Security tab
โœ… Inline PR annotations
โœ… Historical tracking
โœ… Works with private repos

2๏ธโƒฃ Auto-Fix + Auto-PR (One Command)

What it does:

  1. Scans your app (2s)
  2. Fixes 90% of issues automatically
  3. Creates a GitHub PR with explanations
  4. You review โ†’ merge โ†’ done โœ…

3๏ธโƒฃ Blazing Fast (2-3x Faster Than Alternatives)

Mode Speed
--quick CI/CD, pre-commit hooks
--full Production deployments

Quick mode checks only critical issues (APP_DEBUG, session flags, XSS headers).
Full mode includes CSP analysis, log scanning, and CORS deep checks.

4๏ธโƒฃ Beautiful, Actionable Reports

**Console** (emoji + colors) **Markdown** (for reports)

Also available: HTML (stakeholder-friendly), SARIF (CI/CD), JSON (custom integrations)

5๏ธโƒฃ Zero Configuration (Works Out of the Box)

Unlike other tools that require 20+ config lines:

6๏ธโƒฃ CI/CD Exit Codes (Smart Failures)

Use in CI:


๐ŸŽฏ What It Checks (12 Categories)

๐Ÿ” Environment Security (click to expand) | Check | Why It Matters | |-------|----------------| | โœ… `APP_DEBUG=false` in prod | Prevents stack trace leaks | | โœ… `APP_KEY` is set | Required for encryption | | โœ… `.env` not in Git | Stops credential exposure | | โœ… `APP_ENV=production` | Ensures prod mode | **Real-world impact:** In 2023, 18% of Laravel data breaches were caused by `APP_DEBUG=true`.
๐Ÿช Session Security | Check | Default | Secure | Fix Command | |-------|---------|--------|-------------| | `secure` | โŒ false | โœ… true | `--autofix` | | `httponly` | โœ… true | โœ… true | N/A | | `samesite` | โš ๏ธ lax | โœ… strict | `--autofix` | | `lifetime` | 120 | โœ… 60 | Manual | **What this prevents:** Session hijacking, CSRF attacks, XSS cookie theft.
๐Ÿ›ก๏ธ Security Headers (7 headers checked) **Auto-applied via middleware:**
๐ŸŒ CORS Configuration | Risk | Example | Fix | |------|---------|-----| | โŒ Wildcard origins | `allowed_origins: ['*']` | Whitelist domains | | โŒ Credentials + wildcard | `supports_credentials: true` | Set to `false` | | โœ… Safe config | `allowed_origins: ['app.com']` | โœ… |
๐Ÿ”’ HTTPS Enforcement
๐Ÿ“ Sensitive Data in Logs Scans for leaked credentials in `storage/logs/`: - API keys (regex: `[A-Za-z0-9]{32,}`) - Passwords (`password=`, `pwd=`) - Tokens (`Bearer`, `token=`) - Credit cards (Luhn algorithm)

๐Ÿ“š Documentation

Basic Usage

๐Ÿ™ GitHub Integration

Step 1: Add workflow (30 seconds)

Step 2: Push code
Step 3: Check the Security tab in your GitHub repo

Advanced Configuration

Customize checks:

Environment-specific scans:

CI/CD Examples

GitHub Actions (Click to expand) **Full example with PR comments:**
GitLab CI
Jenkins Pipeline
Pre-commit Hook (Local) Make executable: `chmod +x .git/hooks/pre-commit`

๐Ÿค Contributing

We welcome contributions! Here's how:

  1. Report issues: GitHub Issues
  2. Submit PRs: See CONTRIBUTING.md
  3. Request features: Discussions

Top contribution opportunities:


๐Ÿ“– Advanced Topics

Custom Scanners
Custom Reporters
Scheduled Scans

๐Ÿ› Troubleshooting

Command not found
SARIF upload fails in GitHub Actions
False positives
Scan too slow

๐Ÿ“œ License

MIT License. See LICENSE for details.


โญ Show Your Support

If Laravel Secure Baseline helps secure your application:

  1. โญ Star the repo
  2. ๐Ÿ“ Write a blog post 3๐Ÿ’ฌ Share in Laravel communities

Made with โค๏ธ for the Laravel community

GitHub โ€ข Packagist โ€ข Email

Security is not a feature, it's a requirement


All versions of laravel-secure-baseline with dependencies

PHP Build Version
Package Version
Requires php Version ^8.1
laravel/framework Version ^10.0|^11.0|^12.0
symfony/console Version ^6.0|^7.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 bigdevwhale/laravel-secure-baseline contains the following files

Loading the files please wait ...