Download the PHP package filastudio/laravel-vigil without Composer

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

Laravel Vigil

Laravel Vigil

Latest Version on Packagist GitHub Tests Action Status PHP Version Laravel Version License

Security audit tool for Laravel. Scans your application's filesystem, PHP configuration, HTTP headers, and Composer dependencies for common vulnerabilities and misconfigurations. Ships with 15 checks out of the box, a scoring system, and an optional Filament v5 dashboard.

Features

Why this package

We kept running into the same issues across projects: .env files accessible via HTTP, debug mode left on in production, API keys committed to repos, malicious files sneaking into upload directories. Vigil automates the checks we were doing manually.

A few things we focused on:

Requirements

Installation

The service provider registers automatically.

Publish the config:

If you want scan history stored in the database:

This creates vigil_scans and vigil_check_results tables. Old records are cleaned up automatically based on the retention setting in config.

Run your first scan:

Configuration

The configuration file config/vigil.php allows you to enable/disable individual checks and customize behavior:

Usage

Artisan Commands

vigil:audit

Runs all enabled checks and prints results as a table:

Options:

Examples:

vigil:baseline

Generates SHA-256 hashes of files in public/ and storage/app/public/ for integrity monitoring:

Saves to storage/app/vigil_baseline.json. Once a baseline exists, enable the ext.file_integrity check in config to compare against it on subsequent scans.

vigil:list

Shows all 15 checks with their category, severity, and enabled/disabled status:

Detailed Output

The --detailed flag adds full context to each check result: untruncated messages, exact file paths with line numbers, and specific recommendations.

Useful for investigating failures, generating compliance reports, or just understanding what exactly triggered a check.

Programmatic Usage

You can also run scans from code:

Filament Integration

If you use Filament v5, Vigil ships with a dashboard page and widgets.

Register the plugin in your AdminPanelProvider:

The dashboard includes:

Handy for tracking trends over time, sharing results with the team, or pulling up a quick overview during a meeting.

All Security Checks

Check ID Title Category Severity Description
fs.public_folder Public Folder Security filesystem high Scans for unexpected files in public directory
fs.malicious_js Malicious JavaScript Detection filesystem critical Detects obfuscated/malicious JS patterns
fs.storage_dangerous Dangerous Files in Storage filesystem critical Finds executable files in public storage
fs.permissions File Permissions Check filesystem high Verifies Unix file permissions (Linux/Mac only)
fs.sensitive_exposure Sensitive Files Exposure filesystem critical Checks if .env, composer.json, .git are accessible via HTTP
cfg.php_ini PHP Configuration Check configuration high Validates PHP ini directives for security
cfg.env Environment Configuration configuration critical Checks APP_DEBUG, APP_KEY, APP_ENV settings
cfg.session Session Configuration configuration medium Validates session security settings
cfg.cors CORS Configuration configuration high Detects dangerous CORS misconfigurations
http.headers Security Headers Check http_headers high Ensures HSTS, CSP, X-Frame-Options, etc. are set
dep.composer_audit Composer Dependencies Audit dependencies critical Runs composer audit to find vulnerable packages
ext.hardcoded_secrets Hardcoded Secrets Detection extended critical Scans for hardcoded passwords, API keys, tokens
ext.debug_routes Debug Routes Detection extended high Finds debug endpoints (phpinfo, dd, dump) in routes
ext.telescope_debugbar Telescope & Debugbar Check extended high Ensures debug tools are secured in production
ext.file_integrity File Integrity Check extended critical Compares files against baseline to detect tampering

Custom Checks

Implement the SecurityCheck interface:

Register it in a service provider:

After that, php artisan vigil:audit will include your check alongside the built-in ones.

CheckResult has four static constructors: passed(), failed(), warning(), skipped(). Use skipped() when a check doesn't apply to the current environment.

Enums

PHP 8.2 backed enums are available for type-safe values:

Cleanup

Scan results accumulate in the database over time. The retention period is configurable:

To delete records older than the retention period:

Or schedule it:

CI/CD Integration

The --fail-on flag makes Vigil work as a pipeline gate. If any check with the specified severity fails, the command exits with code 1.

GitHub Actions example:

GitLab CI:

Jenkins:

You can adjust the threshold: --fail-on=critical for lenient, --fail-on=critical,high,medium for strict.

Development

Contributing

Pull requests are welcome.

License

MIT. See LICENSE.


All versions of laravel-vigil with dependencies

PHP Build Version
Package Version
Requires php Version ^8.2
illuminate/support Version ^11.0|^12.0
illuminate/console Version ^11.0|^12.0
illuminate/http Version ^11.0|^12.0
illuminate/database Version ^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 filastudio/laravel-vigil contains the following files

Loading the files please wait ...