A Laravel package to display a customizable site down overlay.
anasnasr/site-downer-laravel is a Laravel package for a laravel package to display a customizable site down overlay..
It currently has 3 GitHub stars and 3 downloads on Packagist (latest version v1.0.0).
Install it with composer require anasnasr/site-downer-laravel.
Discover more Laravel packages by anasnasr
or browse all Laravel packages to compare alternatives.
Last updated
Site Downer Laravel is a Laravel package that allows developers to easily display a customizable "site down" overlay message when needed, such as when payments are overdue. This overlay provides a simple way to notify site owners about payment issues without taking the entire site offline.
Display an optional "site down" overlay on all pages. Fully customizable overlay message and design. Easy-to-use configuration options. Compatible with Laravel 8.x, 9.x, and 10.x.
Name: Anas Nasr
Email: [email protected]
GitHub: anasn5020
Run the following command in your Laravel project directory:
composer require anasnasr/site-downer-laravel
If you're using Laravel 7.x or earlier, manually register the service provider in config/app.php by adding this line to the providers array:
Anasnasr\SiteDownerLaravel\PaymentCheckerServiceProvider::class,
For Laravel 8.x and above, this step is not required as the package uses auto-discovery.
Publish the configuration file and views using the following commands:
php artisan vendor:publish --tag=config
php artisan vendor:publish --tag=views
Add the following variables to your .env file to activate the overlay and customize the message:
PAYMENT_CHECKER_ACTIVE=true
PAYMENT_CHECKER_MESSAGE="Payment is pending. Please contact the developer."
Configuration
The configuration file config/paymentchecker.php provides the following default options:
return [
'active' => env('PAYMENT_CHECKER_ACTIVE', false),
'message' => env('PAYMENT_CHECKER_MESSAGE', 'Please contact the developer to clear payments.'),
];
When PAYMENT_CHECKER_ACTIVE is set to true, the "site down" overlay will appear across all pages. The overlay message can be customized via the PAYMENT_CHECKER_MESSAGE environment variable. Customizing the Overlay The default overlay view is located in resources/views/vendor/paymentchecker/overlay.blade.php. Feel free to edit this file to match your design or add custom styles.
Laravel 8.x, 9.x, and 10.x are fully supported. Requires PHP 7.4, 8.0, or above.
This package is open-source and licensed under the MIT License. See the LICENSE file for details.
Contributions are welcome! To report issues or submit pull requests, visit the GitHub repository.