sandimvlyadi / smdev
A laravel library for smdev
1.0.2
2023-01-29 14:12 UTC
Requires
- php: >=7.4
- guzzlehttp/guzzle: ^6.3.1|^7.0.1
This package is auto-updated.
Last update: 2024-08-29 06:02:10 UTC
README
1. Installation
Use Composer, so you can install via CLI:
composer require sandimvlyadi/smdev
and run composer install
on your terminal.
2. How to Use
2.1. SMDEV Webhooks
Add this line to your .env file:
SMDEV_WEBHOOK="[YOUR WEBHOOK URL]"
You can call this library:
use Sandimvlyadi\Smdev\Hook;
Send message to your webhook:
Hook::send('your message goes here');
2.1. RENOT (Real Time Error Notification)
Add this line to your .env file:
RENOT_URL="[YOUR RENOT SERVICE URL]"
You can call this library:
use Sandimvlyadi\Smdev\Renot;
Send message:
Renot::send('your message goes here');
or
Renot::send('your message goes here', 'XXXXXX,YYYYYY');
XXXXXX
and YYYYYY
are targets (bot's user PID)