1. Go to this page and download the library: Download logsea/paddle 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/ */
logsea / paddle example snippets
public static $logCode = "key"; //用于判断后端写日志时身份验证的秘钥
public static $clientCode = ["client1_code","client2_code"];// 客户端接收的秘钥
public static $cacheOpt=[];//缓存配置,目前仅支持redis(单机版)/File文件缓存
public static $host = "127.0.0.1"; //监听的host地址
public static $port = 4002;//端口号
public static $option=[];// swoole的基础配置,可根据自己的环境修改
public static $events=[];//注册的回调事件类,该出文件均放在events目录
public static $logExtStatic =[
"method"=>ClassName::class
]; //扩展第三个系统写入日志的类,静态调用
public static $logExt = [ //用于扩展日志模块,配置静态方法
"method"=>ClassName::class //普通对象方式调用(与静态调用配置互斥).优先级,静态调用优先
];
shell
php Ship.php
php Paddle.php
Loading please wait ...
Before you can download the PHP files, the dependencies should be resolved. This can take some minutes. Please be patient.