Instantly discover problems with your Laravel sites.
This is the official Laravel SDK for App:keep
- Supported PHP versions: 7.4, 8.0, 8.1
- Supported Laravel versions: 7.x, 8.x, 9.x
Working with a different framework/PHP version? Shoot us an email at hello@appkeep.co.
composer require appkeep/laravel-appkeep
php artisan appkeep:init
This will publish the config file and configure default checks. You can later change these default checks from app/Providers/AppkeepProvider.php
.
💡 Important: Execute the following steps on your production environment.
Make sure you have a cronjob that runs php artisan schedule:run
every minute. App:keep relies on Laravel's scheduler. See Laravel's documentation to learn more.
This step simply helps set your APPKEEP_KEY
env variable. If you know the key, you can add it into your .env
file yourself.
To sign in / register and create a project key, simply run:
php artisan appkeep:login
Here's other commands that you might find useful:
Run this command to see a list of configured health checks:
php artisan appkeep:list
# +----------------+------------+
# | Check | Expression |
# +----------------+------------+
# | DatabaseCheck | * * * * * |
# | DiskUsageCheck | * * * * * |
# +----------------+------------+
By default, Appkeep will register some default checks for you with some sensible defaults. You can adjust their warning and failure tresholds, or register your own checks in your app/Providers/AppServiceProvider.php
file.
<?php
namespace App\Providers;
use Appkeep\Laravel\Checks\DiskUsageCheck;
use Appkeep\Laravel\Facades\Appkeep;
use Illuminate\Support\ServiceProvider;
class AppServiceProvider extends ServiceProvider
{
public function boot()
{
// Uncomment this to remove all default checks
// Appkeep::forgetDefaultChecks();
Appkeep::checks([
DiskUsageCheck::make()
->warnIfUsedPercentageIsAbove(60)
->failIfUsedPercentageIsAbove(70),
// Register other checks, including custom ones...
]);
}
}
TBD
Please see CHANGELOG for more information what has changed recently.
If you discover any security related issues, please email hello@swiftmade.co instead of using the issue tracker.
The BSD-3-Clause License (BSD-3). Please see License File for more information.