Download the PHP package larasofthu/laravel-guardian without Composer

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

Laravel Guardian

Laravel Guardian is a security-focused integrity scanner for Laravel projects.

It combines Git-based integrity checks (what changed compared to a reference) with runtime disk/public path security scanning (what suspicious files currently exist in storage/public).
This makes it useful for CI/CD, deployment validation, and continuous monitoring on production servers.

What It Detects

1) Git integrity changes

2) Storage/public security findings

Requirements

Installation

The package is auto-discovered by Laravel.

Publish Assets

Publish config:

Publish mail view (optional):

Published mail view path:

resources/views/vendor/file-integrity/file-integrity-report.blade.php

Quick Start

Run the default scan:

CI-friendly JSON output:

Scan specific disks on demand:

Command Options

file-integrity:scan supports:

Configuration Reference

All options are in config/file-integrity.php.

Git integrity scope

Disk/public scanning

Reporting behavior

Output Overview

The report includes:

Example JSON:

Exit Code Rules

Environment Variables

Variable Description
FILE_INTEGRITY_BASE_REF Default value for base_ref
FILE_INTEGRITY_INCLUDE_UNTRACKED Set false to disable untracked detection
FILE_INTEGRITY_DISK_SCAN Comma-separated disks (e.g. local,uploads)
FILE_INTEGRITY_CONTENT_SCAN_MAX_BYTES Max bytes read per file for content scans
FILE_INTEGRITY_SCAN_PUBLIC_PATH Set false to skip public/ path-pattern scan
FILE_INTEGRITY_OUTPUT console, json, or both
FILE_INTEGRITY_FAIL_ON_CHANGES Set true for non-zero exit on findings
FILE_INTEGRITY_LOG Set true to log report output
FILE_INTEGRITY_MAIL Set true to send mail report
FILE_INTEGRITY_MAIL_TO Mail recipients (single or comma-separated)

Scheduler Integration

Recommended for periodic monitoring (for example every hour).

Laravel 11+ (routes/console.php):

Laravel 10 (app/Console/Kernel.php):

CI Example (GitHub Actions)

Testing

License

MIT


All versions of laravel-guardian with dependencies

PHP Build Version
Package Version
Requires php Version ^8.2
illuminate/contracts Version ^10.0|^11.0|^12.0|^13.0
spatie/laravel-package-tools Version ^1.91.1
symfony/process 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 larasofthu/laravel-guardian contains the following files

Loading the files please wait ...