spatie/ignition
's direct dependencies. Data on all dependencies, including transitive ones, is available via CSV download.Name | Version | Size | License | Type | Vulnerabilities |
---|---|---|---|---|---|
spatie/backtrace | 1.6.1 | - | MIT | prod | |
spatie/flare-client-php | 1.5.1 | - | MIT | prod | |
symfony/console | v7.0.7 | - | MIT | prod dev | |
symfony/process | v7.0.7 | - | MIT | prod dev | |
symfony/var-dumper | v7.0.7 | - | MIT | prod dev |
Spatie/Ignition is a critical tool for delivering visually appealing and detailed error pages in PHP applications. By integrating Ignition, developers gain the ability to comprehensively understand errors at a glance. The tool features a robust, customizable interface that goes beyond just standard error reporting – it offers a smart solution finding system and supports both light and dark modes for optimum accessibility.
To take advantage of Spatie/Ignition's capabilities, you first need to install the package using composer. It's as simple as running the following command:
composer require spatie/ignition
Basic implementation in your PHP project requires adding the following code. Insert this in your application's bootstrap section.
\Spatie\Ignition\Ignition::make()->register();
You can customize Ignition's behavior according to your needs. For instance, to use the package's dark mode feature, adjust the code like this:
\Spatie\Ignition\Ignition::make()
->useDarkMode()
->register();
Ignition also allows for solution integrations directly into thrown exceptions. This is done by letting the exception implement the Spatie\Ignition\Contracts\ProvidesSolution
interface, similar to the sample below:
use Spatie\Ignition\Contracts\Solution;
use Spatie\Ignition\Contracts\ProvidesSolution;
class CustomException extends Exception implements ProvidesSolution
{
public function getSolution(): Solution
{
return new CustomSolution();
}
}
More complex application needs can be addressed by incorporating other Ignition features, such as integrating artificial intelligence for solution searching and managing display settings for different environments.
Additional information and details about integrating and managing the Spatie/Ignition package can be found in the official Ignition documentation at https://flareapp.io/docs/ignition-for-laravel/introduction. You'll find guides for both Laravel and non-Laravel PHP applications here, alongside a wealth of use case examples and solutions for common issues.