PHP code example of subvitamine / laravel-a-ray
1. Go to this page and download the library: Download subvitamine/laravel-a-ray library. Choose the download type require. 2. Extract the ZIP file and open the index.php. 3. Add this code to the index.php.
<?php
require_once('vendor/autoload.php');
/* Start to develop here. Best regards https://php-download.com/ */
subvitamine / laravel-a-ray example snippets
use Subvitamine\LaravelARay\ARay;
use Subvitamine\LaravelARay\CommitStatus;
// Check config
ARay::checkConfig()
// Init push
$push = ARay::initPush()
/**
* Add a commit status
* All status :
* SUCCESS
* INFO
* WARNING
* ERROR
*/
$push->addCommit('commit message', ['commit' => 'data'], CommitStatus::SUCCESS)
// Send push
ARay::sendPush($push)
use Subvitamine\LaravelARay\ARay;
//...
public function register() {
$this->reportable(function (Throwable $e) {
ARay::handleErrors($e);
//...
});
}
//...