Download the PHP package chuxolab/laravel-fortress without Composer

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

The Laravel Fortress

1,755 engineering checks for building Laravel applications that are secure, correct, auditable, and maintainable.

Born from repeated production audits of a financial platform. Expanded into a universal standard for any Laravel project.

Installation

Then run the interactive installer:

This walks you through setting up:

You can also install components individually:

Non-Laravel PHP projects


What You Get

1. The Checklist — 1,755 checks across 14 parts

A comprehensive engineering reference. Every check is a - [ ] item you can tick off during code review, sprint planning, onboarding, or audit prep.

Part Focus Checks File
I Application Security 179 01-application-security.md
II Cryptography & Data Protection 109 02-cryptography-data-protection.md
III Authentication & Authorization 110 03-authentication-authorization.md
IV Data Integrity & Concurrency 84 04-data-integrity-concurrency.md
V Financial & Monetary Correctness 62 05-financial-monetary-correctness.md
VI PHP Language & Type Safety 126 06-php-language-type-safety.md
VII Clean Code & Software Design 128 07-clean-code-software-design.md
VIII Laravel Framework Mastery 196 08-laravel-framework-mastery.md
IX Database Engineering 158 09-database-engineering.md
X Frontend Engineering 153 10-frontend-engineering.md
XI Testing & Quality Assurance 76 11-testing-quality-assurance.md
XII APIs, Queues & Integration 136 12-apis-queues-integration.md
XIII Logging, Monitoring & Audit 30 13-logging-monitoring-audit.md
XIV Infrastructure & Operations 208 14-infrastructure-operations.md

Read the full list in one file: checklist.md

2. AI Rules — Your editor enforces the checks automatically

The AI skill system teaches your coding assistant all 1,755 checks. It adapts to your project's PHP version, Laravel version, database, and installed packages at runtime.

Editor What Gets Installed How It Works
Claude Code 14 modular skills + CLAUDE.md Deepest integration — skills activate per domain, works with feature-dev and Laravel Boost
Cursor .cursorrules Inline review, Composer mode, MCP support
Windsurf .windsurfrules Cascade flows, multi-step generation
GitHub Copilot .github/copilot-instructions.md Chat, PR review, inline suggestions

3. Git Hooks — Safety rails for AI-assisted development

AI agents write code fast. These hooks catch mistakes at the git level before they reach your repository.

Hook What It Does
pre-commit Blocks debug statements (dd, dump, ray), .env files, hardcoded secrets, Pint violations
commit-msg Enforces conventional commits, length limits, blocks WIP on protected branches
pre-push Runs tests, PHPStan, composer audit — blocks direct push to main/master/production
pre-merge-commit Detects AI agents and blocks auto-merge to protected branches
prepare-commit-msg Auto-adds Co-Authored-By tag when AI context detected
post-checkout Warns when composer.lock or JS lock files changed between branches
post-merge Same as post-checkout, plus detects migration changes
pre-rebase Blocks rebase of protected branches
post-commit Advisory: warns about missing strict_types, counts TODOs
applypatch-msg Validates commit messages from git am patches

Plus 5 stub hooks (server-side templates) installable with --with-stubs. See hooks/README.md.

4. Compliance Scanner

Scans your codebase for common violations:

Check Rule ID What It Finds
strict_types F-P06-001 PHP files missing declare(strict_types=1)
Debug statements F-P07-012 dd(), dump(), ray(), var_dump()
.env in git F-P01-015 Environment files tracked in version control
Missing $fillable F-P08-003 Models without mass assignment protection
Raw env() calls F-P08-041 env() used outside config/ files
Unguarded models F-P01-010 Model::unguard() calls

Auto-fix what's fixable:

5. Deep Code Review

Runs 52 automated checks across all 14 parts — far deeper than fortress:check. Every finding documents both the problem and the recommended solution, with code snippets.

Reports are saved to docs/fortress-reviews/review-{name}-{date}-{time}-{id}.md with:

Part Focus Checks
P01 Application Security 8
P02 Cryptography 3
P03 Auth & Authorization 4
P04 Data Integrity 3
P05 Financial Accuracy 4
P06 PHP Language 5
P07 Clean Code 4
P08 Laravel Framework 6
P09 Database 4
P10 Frontend 3
P11 Testing 3
P12 APIs & Queues 2
P13 Logging 1
P14 Infrastructure 2

6. PR Merge Protection

A GitHub Actions workflow template that:

Installed to .github/workflows/fortress-pr-protection.yml — configure branch protection rules on GitHub to require these checks.


Configuration

After installation, edit .fortress.yml in your project root:

Full template: rules/.fortress.example.yml


Artisan Commands

Command Purpose
fortress:install Interactive installer — select components to install
fortress:install --all Install everything without prompts
fortress:hooks install Install git hooks
fortress:hooks install --select Choose which hooks to install interactively
fortress:hooks install --with-stubs Include server-side stub hooks
fortress:hooks list Show installed fortress hooks
fortress:hooks uninstall Remove fortress hooks, restore backups
fortress:hooks update Re-copy hooks after composer update
fortress:check Run compliance scan
fortress:check --fix Auto-fix issues where possible
fortress:check --select Choose which check to run
fortress:check --part=P01 Scan a specific part
fortress:review Run deep code review (52 checks, markdown report)
fortress:review my-sprint Named review for organized reports
fortress:review --part=P01 Review specific parts
fortress:review --severity=critical Filter by minimum severity
fortress:review --select Interactive part selection
fortress:review --format=console Print findings to terminal

Using the Fortress

During Code Review

  1. Map the PR's changed files to fortress Parts (controllers → P01/P03/P08, models → P09, money logic → P05)
  2. Ask your AI assistant: "Review this PR against fortress Parts P01 and P08. Flag violations with rule IDs."
  3. Reference findings as [F-P01-003] in PR comments — traceable and searchable

During Sprint Planning

Scan the relevant Parts before scoping a feature. Identify security, correctness, and testing requirements upfront — not as afterthoughts.

For Onboarding

Give new team members Parts VI–VIII (PHP, Clean Code, Laravel Mastery) as required reading. Faster than explaining conventions one PR at a time.

As an Audit Checklist

Walk through the full checklist systematically when preparing for a security audit, compliance review, or SOC 2 / ISO 27001 assessment.

With Laravel Boost (recommended)

Laravel Boost gives your AI agent direct access to your running app — database schema, routes, config, logs, Artisan commands, and Tinker. This transforms fortress enforcement from static code reading to live application verification.

With Boost installed, your AI agent can verify fortress rules against your actual database schema, route list, config values, and application state. See rules/README.md for the full tool-to-fortress mapping.


Scope

Laravel 9–12 · PHP 8.1–8.4 · MySQL / PostgreSQL · Vue / React / Blade · Tailwind CSS · Redis · Pest / PHPUnit

The AI skill system is version-agnostic — it detects your project's actual versions and applies only the relevant rules. A PHP 8.1 project won't be told to use PHP 8.4 features.

Not a Style Guide

This does not prescribe tabs vs spaces or where to put braces. It prescribes engineering discipline: how to handle money without rounding errors, how to prevent race conditions on financial records, how to structure authentication so privilege escalation is impossible, how to design migrations that don't cause downtime.

Style is preference. Discipline is survival.

Contributing

Contributions welcome. See CONTRIBUTING.md.

The bar: "Would this have prevented a real bug, security vulnerability, or production incident?" If yes, it belongs. If it's preference, it doesn't.

License

MIT


Built with hard-won lessons from production. Maintained by the community.


All versions of laravel-fortress with dependencies

PHP Build Version
Package Version
Requires php Version ^8.1
symfony/finder 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 chuxolab/laravel-fortress contains the following files

Loading the files please wait ...