Download the PHP package pandasir/laravel-sls without Composer
On this page you can find all versions of the php package pandasir/laravel-sls. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Informations about the package laravel-sls
Aliyun SLS Log For Laravel
说明
此包来源于 lokielse/laravel-sls
Install
Via Composer
Config
If you’re on Laravel 5.5 or later the package will be auto-discovered. Otherwise you will need to manually configure it in your config/app.php.
Add following service providers into your providers array in config/app.php
If you’re need Log you can replace Log alias in your config/app.php
Publish sls.php
to config
folder
Edit your .env
file
You should update SLS_ENDPOINT
to internal endpoint
in production mode
Usage
First create a project and store at Aliyun SLS Console
Then update SLS_ENDPOINT
, SLS_PROJECT
, SLS_STORE
in .env
Push a test message to queue
Security
Create RAM access control at Aliyun RAM Console
-
Create a custom policy such as
AliyunSLSFullAccessFoobar
-
Create a user for you app such as
foobar
-
Assign the policy
AliyunSLSFullAccessFoobar
to the userfoobar
-
Create and get the
AccessKeyId
andAccessKeySecret
for userfoorbar
- update
QUEUE_SLS_ACCESS_KEY
andQUEUE_SLS_ACCESS_SECRET
in.env
Change log
Please see CHANGELOG for more information what has changed recently.
Testing
Contributing
Please see CONDUCT for details.
Credits
- Loki Else
- abrahamgreyson
- All Contributors
License
The MIT License (MIT). Please see License File for more information.
All versions of laravel-sls with dependencies
php Version >=5.5
lokielse/aliyun-open-api-sls Version ^1.0.0