Download the PHP package ellipticmarketing/larasapien without Composer
On this page you can find all versions of the php package ellipticmarketing/larasapien. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Informations about the package larasapien
Larasapien for Laravel
This package creates an endpoint for the Larasapien API. Once installed, you can use this endpoint to connect your application to a Larasapien account.
By default, this package will report the following information:
- Laravel, PHP, and Larasapien package version
- Cache status
- Environment type
- Debug mode value
- CPU load
- Redis and Horizon status
- Scheduler status
- Git branch and last commit hash
You may disable any of these checks using your Larasapien configuration file.
Installation
-
Install this package via composer using the following command:
- Add your Larasapien project token to your .env file:
You can find your project token in the Larasapien dashboard.
- Optional: Publish the configuration file:
Usage
After the package is installed, it will create a new route for the Larasapien endpoint. By default,
this route will be available at /_larasapien
. The package will only serve requests
including the Larasapien token.
In addition to retrieving your application's status through Larasapien, you can
also check it locally using the following command: php artisan larasapien:check
.
Configuring the schedule checker
To make the schedule checker work, it is necessary to invoke the ScheduleChecker
command every
five minutes.
The command can be scheduled in your application's console Kernel locate under app/Console/Kernel.php
:
Enabling specific checks
In some instances, you may not want to run all checks. For example, you may want to disable the Redis check if your application doesn't use Redis.
To disable certain checks, you may comment the appropriate classes in your config/larasapien.php
file:
Acknowledgments
Many of the checks were inspired by the Laravel-health package created by Spatie.
License
You may use this package to connect your application to your Larasapien.com account.
This package is provided "as-is" with no warranties. Usage is subject to the Larasapien Terms & Conditions.
Elliptic Marketing, LLC - All rights reserved.