Download the PHP package deniscosmin/logservice without Composer
On this page you can find all versions of the php package deniscosmin/logservice. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Download deniscosmin/logservice
More information about deniscosmin/logservice
Files in deniscosmin/logservice
Package logservice
Short Description A package to log data to server
License MIT
Homepage https://github.com/deniscosmin/logservice
Informations about the package logservice
A package to log data to server
This is where your description should go. Limit it to a paragraph or two. Consider adding a small example.
Project setup
In the .env file you should add the fields :
API_CREDENTIALS_USER and API_CREDENTIALS_PASSWORD
These sould be set to the authentification credentials of the api. If these are misssing or are wrong written, the api will return the response Invalid authentification.
Installation
You can install the package via composer:
You can publish and run the migrations with:
You can publish the config file with:
This is the contents of the published config file:
Optionally, you can publish the views using
Usage
First option :
Second option :
The methods available : 1.
sets the source of the log for example logs.mezoni.ro
2.
sets the details of the log, and maybe the type if you want. Else the type will be info.
3.
contains an array of emails to which the log will be sent by email. example .
4.
sends the log to the phone number by sms
5.
sets the type of the log
6.
sends the data to the api and returns the response from the api
It can use any order but the last method used should be the send() method.
Testing
Changelog
Please see CHANGELOG for more information on what has changed recently.
Contributing
Please see CONTRIBUTING for details.
Security Vulnerabilities
Please review our security policy on how to report security vulnerabilities.
Credits
- Draghici Denis Cosmin
- All Contributors
License
The MIT License (MIT). Please see License File for more information.
All versions of logservice with dependencies
spatie/laravel-package-tools Version ^1.16
illuminate/contracts Version ^10.0||^11.0