Download the PHP package lightship-core/lightship-laravel without Composer
On this page you can find all versions of the php package lightship-core/lightship-laravel. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Download lightship-core/lightship-laravel
More information about lightship-core/lightship-laravel
Files in lightship-core/lightship-laravel
Package lightship-laravel
Short Description Laravel wrapper to use Lightship PHP.
License MIT
Informations about the package lightship-laravel
lightship-laravel
Laravel wrapper to use Lightship PHP.
Summary
- About
- Features
- Installation
- Examples
- Tests
About
Lightship is a way to get web page audits without using a headless browser.
This package just a wrapper around the PHP implementation of Lightship (https://github.com/lightship-core/lightship-php).
Features
- Provides a Facade to easily use Lightship PHP
Installation
On your terminal, install the package:
Examples
- 1. Using the facade
- 2. Using the comand
- 3. Show failed/passed rules when using the command
1. Using the facade
In this example, we will generate an array report using the Laravel facade.
2. Using the comand
In this example, we will call Lightship from the command.
You can also pass a route name.
You can even pass multiple routes.
And you can mix both.
Since the command do not support passing query strings, you can do it by creating your own command and call this one.
3. Show failed/passed rules when using the command
By default, the command does not show the failed/passed rules of each URLs to save some space. If you want to show the detail, use the --detailed
option.
Or by calling Artisan::call
:
Tests
Or
All versions of lightship-laravel with dependencies
illuminate/support Version 9.*
illuminate/console Version 9.*