作者 邓超

x

... ... @@ -5,22 +5,21 @@
"license": "MIT",
"require": {
"php": "^8.0.2",
"ext-pdo": "*",
"ext-redis": "*",
"ext-mbstring": "*",
"ext-json": "*",
"ext-iconv": "*",
"ext-imap": "*",
"phpmailer/phpmailer": "^6.7"
},
"require-dev": {
"ext-json": "*",
"ext-mbstring": "*",
"ext-pdo": "*",
"ext-redis": "*",
"phpmailer/phpmailer": "^6.7",
"swlib/saber": "^1.0"
},
"autoload": {
"psr-4": {
"Model\\": "model/",
"Controller\\": "controller/",
"Lib\\": "lib/"
"Lib\\": "lib/",
"Event\\": "event/"
},
"files": [
"config.php",
... ...
<?php
namespace Event;
use Model\folderSql;
use Swlib\Saber;
use Swlib\SaberGM;
/**
* 邮件同步成功的事件
* @author:dc
* @time 2024/8/22 15:47
* Class syncMail
* @package Event
*/
class syncMail {
public function __construct($id,$header,$data)
{
$db = db();
// 是否在指定文件夹内
$f = $db->value(folderSql::first($data['folder_id'],'folder'));
$f = folderAlias($f);
if($f=='收件箱'){
$f = 's';
}elseif($f=='发件箱'){
$f = 'f';
}elseif($f=='垃圾箱'){
$f = 'l';
}
if(in_array($f,['s','f','l'])){
// 是否是预热邮件 aicc专用
if(!empty($header['Aicc-Hot-Mail']) || !empty($header['aicc-hot-mail'])){
$is_hot = 1;
}
if(empty($is_hot)){
if($f == 's' && $db->count('select count(*) from `hot_mail` where `email` = "'.$data['from'].'"')){
$is_hot = 1;
}
}
if(!empty($is_hot)){
try {
// 记录日志
logs('识别到aicc预热邮件 '.$id.'-'.$data['email_id'].'-'.$data['from'],LOG_PATH.'/hot-mail.log');
$db->throw()->insert('fob_hot_mail',[
'lists_id' => $id,
'email_id' => $data['email_id'],
'hot_form' => $data['from'],
'folder' => $f
],false);
}catch (\Throwable $exception){
logs($exception->getMessage());
}
}else{
if($f == 's'){
// 通知黑格 2024-08-22 新上 这个是异步的不会阻塞当前进程
SaberGM::post('https://fob.ai.cc/api/email_new_push',[
'sign' => md5(date('ymd').'fob.ai.cc.email'),
'id' => $id,
'subject' => $data['subject'],
'udate' => $data['udate'],
'from' => $data['from'],
'tos' => array_column(json_decode($data['to_name'],1),'email')
]);
}
}
}
}
}
\ No newline at end of file
... ...
... ... @@ -2,6 +2,7 @@
namespace Lib\Mail;
use Event\syncMail;
use Lib\DbPool;
use Model\bodySql;
use Model\folderSql;
... ... @@ -441,33 +442,9 @@ class Mail {
try {
$id = $db->throw()->insert(listsSql::$table,$data);
if($id){
// 是否是预热邮件 aicc专用
if(!empty($header['Aicc-Hot-Mail']) || !empty($header['aicc-hot-mail'])){
try {
// 记录日志
logs('识别到aicc预热邮件 '.$id.'-'.$data['email_id'].'-'.$data['from'],LOG_PATH.'/hot-mail.log');
$f = $db->value(folderSql::first($data['folder_id'],'folder'));
$f = folderAlias($f);
if($f=='收件箱'){
$f = 's';
}elseif($f=='发件箱'){
$f = 'f';
}elseif($f=='垃圾箱'){
$f = 'l';
}
if(in_array($f,['s','f','l'])){
$db->throw()->insert('fob_hot_mail',[
'lists_id' => $id,
'email_id' => $data['email_id'],
'hot_form' => $data['from'],
'folder' => $f
],false);
}
}catch (\Throwable $exception){
logs($exception->getMessage());
}
}
go(function ($id,$header,$data){
new syncMail($id,$header,$data);
},[$id,$header,$data]);
}
}catch (\Throwable $e){
... ...
... ... @@ -21,6 +21,8 @@ use Composer\Semver\VersionParser;
* See also https://getcomposer.org/doc/07-runtime.md#installed-versions
*
* To require its presence, you can require `composer-runtime-api ^2.0`
*
* @final
*/
class InstalledVersions
{
... ...
... ... @@ -2,15 +2,106 @@
// autoload_classmap.php @generated by Composer
$vendorDir = dirname(dirname(__FILE__));
$vendorDir = dirname(__DIR__);
$baseDir = dirname($vendorDir);
return array(
'Composer\\InstalledVersions' => $vendorDir . '/composer/InstalledVersions.php',
'Controller\\Base' => $baseDir . '/controller/Base.php',
'Controller\\Blacklist' => $baseDir . '/controller/Blacklist.php',
'Controller\\Folder' => $baseDir . '/controller/Folder.php',
'Controller\\Home' => $baseDir . '/controller/Home.php',
'Controller\\Job' => $baseDir . '/controller/Job.php',
'Controller\\Login' => $baseDir . '/controller/Login.php',
'Controller\\Test' => $baseDir . '/controller/Test.php',
'Controller\\Upload' => $baseDir . '/controller/Upload.php',
'Controller\\fob_ai\\MailList' => $baseDir . '/controller/fob_ai/MailList.php',
'Controller\\v2\\Home' => $baseDir . '/controller/v2/Home.php',
'Event\\syncMail' => $baseDir . '/event/syncMail.php',
'Lib\\App' => $baseDir . '/lib/App.php',
'Lib\\Db' => $baseDir . '/lib/Db.php',
'Lib\\DbException' => $baseDir . '/lib/DbException.php',
'Lib\\DbPool' => $baseDir . '/lib/DbPool.php',
'Lib\\DbQuery' => $baseDir . '/lib/DbQuery.php',
'Lib\\Err' => $baseDir . '/lib/Err.php',
'Lib\\Lang' => $baseDir . '/lib/Lang.php',
'Lib\\Log' => $baseDir . '/lib/Log.php',
'Lib\\Mail\\Body' => $baseDir . '/lib/Mail/Body.php',
'Lib\\Mail\\DeCoding' => $baseDir . '/lib/Mail/DeCoding.php',
'Lib\\Mail\\Imap' => $baseDir . '/lib/Mail/Imap.php',
'Lib\\Mail\\Mail' => $baseDir . '/lib/Mail/Mail.php',
'Lib\\Mail\\MailFun' => $baseDir . '/lib/Mail/MailFun.php',
'Lib\\Redis' => $baseDir . '/lib/Redis.php',
'Lib\\RedisPool' => $baseDir . '/lib/RedisPool.php',
'Lib\\RedisQuery' => $baseDir . '/lib/RedisQuery.php',
'Lib\\Route' => $baseDir . '/lib/Route.php',
'Lib\\UploadFile' => $baseDir . '/lib/UploadFile.php',
'Lib\\Verify' => $baseDir . '/lib/Verify.php',
'Model\\blacklist' => $baseDir . '/model/blacklist.php',
'Model\\bodySql' => $baseDir . '/model/bodySql.php',
'Model\\emailSql' => $baseDir . '/model/emailSql.php',
'Model\\folderSql' => $baseDir . '/model/folderSql.php',
'Model\\hostSql' => $baseDir . '/model/hostSql.php',
'Model\\listsSql' => $baseDir . '/model/listsSql.php',
'Model\\sendJobStatusSql' => $baseDir . '/model/sendJobStatusSql.php',
'Model\\sendJobsSql' => $baseDir . '/model/sendJobsSql.php',
'PHPMailer\\PHPMailer\\Exception' => $vendorDir . '/phpmailer/phpmailer/src/Exception.php',
'PHPMailer\\PHPMailer\\OAuth' => $vendorDir . '/phpmailer/phpmailer/src/OAuth.php',
'PHPMailer\\PHPMailer\\OAuthTokenProvider' => $vendorDir . '/phpmailer/phpmailer/src/OAuthTokenProvider.php',
'PHPMailer\\PHPMailer\\PHPMailer' => $vendorDir . '/phpmailer/phpmailer/src/PHPMailer.php',
'PHPMailer\\PHPMailer\\POP3' => $vendorDir . '/phpmailer/phpmailer/src/POP3.php',
'PHPMailer\\PHPMailer\\SMTP' => $vendorDir . '/phpmailer/phpmailer/src/SMTP.php',
'Psr\\Http\\Message\\MessageInterface' => $vendorDir . '/psr/http-message/src/MessageInterface.php',
'Psr\\Http\\Message\\RequestInterface' => $vendorDir . '/psr/http-message/src/RequestInterface.php',
'Psr\\Http\\Message\\ResponseInterface' => $vendorDir . '/psr/http-message/src/ResponseInterface.php',
'Psr\\Http\\Message\\ServerRequestInterface' => $vendorDir . '/psr/http-message/src/ServerRequestInterface.php',
'Psr\\Http\\Message\\StreamInterface' => $vendorDir . '/psr/http-message/src/StreamInterface.php',
'Psr\\Http\\Message\\UploadedFileInterface' => $vendorDir . '/psr/http-message/src/UploadedFileInterface.php',
'Psr\\Http\\Message\\UriInterface' => $vendorDir . '/psr/http-message/src/UriInterface.php',
'Swlib\\Http\\BufferStream' => $vendorDir . '/swlib/http/src/BufferStream.php',
'Swlib\\Http\\ContentType' => $vendorDir . '/swlib/http/src/ContentType.php',
'Swlib\\Http\\Cookie' => $vendorDir . '/swlib/http/src/Cookie.php',
'Swlib\\Http\\Cookies' => $vendorDir . '/swlib/http/src/Cookies.php',
'Swlib\\Http\\CookiesManagerTrait' => $vendorDir . '/swlib/http/src/CookiesManagerTrait.php',
'Swlib\\Http\\Exception\\BadResponseException' => $vendorDir . '/swlib/http/src/Exception/BadResponseException.php',
'Swlib\\Http\\Exception\\ClientException' => $vendorDir . '/swlib/http/src/Exception/ClientException.php',
'Swlib\\Http\\Exception\\ConnectException' => $vendorDir . '/swlib/http/src/Exception/ConnectException.php',
'Swlib\\Http\\Exception\\HttpExceptionMask' => $vendorDir . '/swlib/http/src/Exception/HttpExceptionMask.php',
'Swlib\\Http\\Exception\\RequestException' => $vendorDir . '/swlib/http/src/Exception/RequestException.php',
'Swlib\\Http\\Exception\\ServerException' => $vendorDir . '/swlib/http/src/Exception/ServerException.php',
'Swlib\\Http\\Exception\\TooManyRedirectsException' => $vendorDir . '/swlib/http/src/Exception/TooManyRedirectsException.php',
'Swlib\\Http\\Exception\\TransferException' => $vendorDir . '/swlib/http/src/Exception/TransferException.php',
'Swlib\\Http\\Message' => $vendorDir . '/swlib/http/src/Message.php',
'Swlib\\Http\\PumpStream' => $vendorDir . '/swlib/http/src/PumpStream.php',
'Swlib\\Http\\Request' => $vendorDir . '/swlib/http/src/Request.php',
'Swlib\\Http\\Response' => $vendorDir . '/swlib/http/src/Response.php',
'Swlib\\Http\\Rfc7230' => $vendorDir . '/swlib/http/src/Rfc7230.php',
'Swlib\\Http\\Status' => $vendorDir . '/swlib/http/src/Status.php',
'Swlib\\Http\\Stream' => $vendorDir . '/swlib/http/src/Stream.php',
'Swlib\\Http\\Suffix' => $vendorDir . '/swlib/http/src/Suffix.php',
'Swlib\\Http\\SwUploadFile' => $vendorDir . '/swlib/http/src/SwUploadFile.php',
'Swlib\\Http\\UploadedFile' => $vendorDir . '/swlib/http/src/UploadedFile.php',
'Swlib\\Http\\Uri' => $vendorDir . '/swlib/http/src/Uri.php',
'Swlib\\Http\\UriNormalizer' => $vendorDir . '/swlib/http/src/UriNormalizer.php',
'Swlib\\Http\\UriResolver' => $vendorDir . '/swlib/http/src/UriResolver.php',
'Swlib\\Http\\Util' => $vendorDir . '/swlib/http/src/Util.php',
'Swlib\\Saber' => $vendorDir . '/swlib/saber/src/Saber.php',
'Swlib\\SaberGM' => $vendorDir . '/swlib/saber/src/SaberGM.php',
'Swlib\\Saber\\ClientPool' => $vendorDir . '/swlib/saber/src/ClientPool.php',
'Swlib\\Saber\\Request' => $vendorDir . '/swlib/saber/src/Request.php',
'Swlib\\Saber\\RequestQueue' => $vendorDir . '/swlib/saber/src/RequestQueue.php',
'Swlib\\Saber\\Response' => $vendorDir . '/swlib/saber/src/Response.php',
'Swlib\\Saber\\ResponseMap' => $vendorDir . '/swlib/saber/src/ResponseMap.php',
'Swlib\\Saber\\WebSocket' => $vendorDir . '/swlib/saber/src/WebSocket.php',
'Swlib\\Saber\\WebSocketFrame' => $vendorDir . '/swlib/saber/src/WebSocketFrame.php',
'Swlib\\Util\\ArrayMap' => $vendorDir . '/swlib/util/src/ArrayMap.php',
'Swlib\\Util\\DataParser' => $vendorDir . '/swlib/util/src/DataParser.php',
'Swlib\\Util\\Helper' => $vendorDir . '/swlib/util/src/Helper.php',
'Swlib\\Util\\InterceptorTrait' => $vendorDir . '/swlib/util/src/InterceptorTrait.php',
'Swlib\\Util\\MapPool' => $vendorDir . '/swlib/util/src/MapPool.php',
'Swlib\\Util\\Serialize' => $vendorDir . '/swlib/util/src/Serialize.php',
'Swlib\\Util\\SingletonTrait' => $vendorDir . '/swlib/util/src/SingletonTrait.php',
'Swlib\\Util\\SpecialMarkTrait' => $vendorDir . '/swlib/util/src/SpecialMarkTrait.php',
'Swlib\\Util\\StringDataParserTrait' => $vendorDir . '/swlib/util/src/StringDataParserTrait.php',
'Swlib\\Util\\TypeDetector' => $vendorDir . '/swlib/util/src/TypeDetector.php',
);
... ...
... ... @@ -2,10 +2,12 @@
// autoload_files.php @generated by Composer
$vendorDir = dirname(dirname(__FILE__));
$vendorDir = dirname(__DIR__);
$baseDir = dirname($vendorDir);
return array(
'045cd5d476702c3529ef3e1b9f615e70' => $vendorDir . '/swlib/http/src/functions.php',
'3a6b4a1bc7c69c0620b4ef88fb5d27d0' => $vendorDir . '/swlib/saber/src/include/functions.php',
'bb03d338bda3db8d7d2ebaa9ed85fbb8' => $baseDir . '/config.php',
'64f502373aeb3a4fc478eb2a271aa6eb' => $baseDir . '/function.php',
);
... ...
... ... @@ -2,7 +2,7 @@
// autoload_namespaces.php @generated by Composer
$vendorDir = dirname(dirname(__FILE__));
$vendorDir = dirname(__DIR__);
$baseDir = dirname($vendorDir);
return array(
... ...
... ... @@ -2,12 +2,17 @@
// autoload_psr4.php @generated by Composer
$vendorDir = dirname(dirname(__FILE__));
$vendorDir = dirname(__DIR__);
$baseDir = dirname($vendorDir);
return array(
'Swlib\\Util\\' => array($vendorDir . '/swlib/util/src'),
'Swlib\\Saber\\' => array($vendorDir . '/swlib/saber/src'),
'Swlib\\Http\\' => array($vendorDir . '/swlib/http/src'),
'Psr\\Http\\Message\\' => array($vendorDir . '/psr/http-message/src'),
'PHPMailer\\PHPMailer\\' => array($vendorDir . '/phpmailer/phpmailer/src'),
'Model\\' => array($baseDir . '/model'),
'Lib\\' => array($baseDir . '/lib'),
'Event\\' => array($baseDir . '/event'),
'Controller\\' => array($baseDir . '/controller'),
);
... ...
... ... @@ -25,38 +25,15 @@ class ComposerAutoloaderInit510d7d2d197bed575e1fdc26074f60e5
require __DIR__ . '/platform_check.php';
spl_autoload_register(array('ComposerAutoloaderInit510d7d2d197bed575e1fdc26074f60e5', 'loadClassLoader'), true, true);
self::$loader = $loader = new \Composer\Autoload\ClassLoader(\dirname(\dirname(__FILE__)));
self::$loader = $loader = new \Composer\Autoload\ClassLoader(\dirname(__DIR__));
spl_autoload_unregister(array('ComposerAutoloaderInit510d7d2d197bed575e1fdc26074f60e5', 'loadClassLoader'));
$useStaticLoader = PHP_VERSION_ID >= 50600 && !defined('HHVM_VERSION') && (!function_exists('zend_loader_file_encoded') || !zend_loader_file_encoded());
if ($useStaticLoader) {
require __DIR__ . '/autoload_static.php';
call_user_func(\Composer\Autoload\ComposerStaticInit510d7d2d197bed575e1fdc26074f60e5::getInitializer($loader));
} else {
$map = require __DIR__ . '/autoload_namespaces.php';
foreach ($map as $namespace => $path) {
$loader->set($namespace, $path);
}
$map = require __DIR__ . '/autoload_psr4.php';
foreach ($map as $namespace => $path) {
$loader->setPsr4($namespace, $path);
}
$classMap = require __DIR__ . '/autoload_classmap.php';
if ($classMap) {
$loader->addClassMap($classMap);
}
}
require __DIR__ . '/autoload_static.php';
\Composer\Autoload\ComposerStaticInit510d7d2d197bed575e1fdc26074f60e5::getInitializer($loader)();
$loader->register(true);
if ($useStaticLoader) {
$includeFiles = Composer\Autoload\ComposerStaticInit510d7d2d197bed575e1fdc26074f60e5::$files;
} else {
$includeFiles = require __DIR__ . '/autoload_files.php';
}
$includeFiles = \Composer\Autoload\ComposerStaticInit510d7d2d197bed575e1fdc26074f60e5::$files;
foreach ($includeFiles as $fileIdentifier => $file) {
composerRequire510d7d2d197bed575e1fdc26074f60e5($fileIdentifier, $file);
}
... ...
... ... @@ -7,13 +7,22 @@ namespace Composer\Autoload;
class ComposerStaticInit510d7d2d197bed575e1fdc26074f60e5
{
public static $files = array (
'045cd5d476702c3529ef3e1b9f615e70' => __DIR__ . '/..' . '/swlib/http/src/functions.php',
'3a6b4a1bc7c69c0620b4ef88fb5d27d0' => __DIR__ . '/..' . '/swlib/saber/src/include/functions.php',
'bb03d338bda3db8d7d2ebaa9ed85fbb8' => __DIR__ . '/../..' . '/config.php',
'64f502373aeb3a4fc478eb2a271aa6eb' => __DIR__ . '/../..' . '/function.php',
);
public static $prefixLengthsPsr4 = array (
'S' =>
array (
'Swlib\\Util\\' => 11,
'Swlib\\Saber\\' => 12,
'Swlib\\Http\\' => 11,
),
'P' =>
array (
'Psr\\Http\\Message\\' => 17,
'PHPMailer\\PHPMailer\\' => 20,
),
'M' =>
... ... @@ -24,6 +33,10 @@ class ComposerStaticInit510d7d2d197bed575e1fdc26074f60e5
array (
'Lib\\' => 4,
),
'E' =>
array (
'Event\\' => 6,
),
'C' =>
array (
'Controller\\' => 11,
... ... @@ -31,6 +44,22 @@ class ComposerStaticInit510d7d2d197bed575e1fdc26074f60e5
);
public static $prefixDirsPsr4 = array (
'Swlib\\Util\\' =>
array (
0 => __DIR__ . '/..' . '/swlib/util/src',
),
'Swlib\\Saber\\' =>
array (
0 => __DIR__ . '/..' . '/swlib/saber/src',
),
'Swlib\\Http\\' =>
array (
0 => __DIR__ . '/..' . '/swlib/http/src',
),
'Psr\\Http\\Message\\' =>
array (
0 => __DIR__ . '/..' . '/psr/http-message/src',
),
'PHPMailer\\PHPMailer\\' =>
array (
0 => __DIR__ . '/..' . '/phpmailer/phpmailer/src',
... ... @@ -43,6 +72,10 @@ class ComposerStaticInit510d7d2d197bed575e1fdc26074f60e5
array (
0 => __DIR__ . '/../..' . '/lib',
),
'Event\\' =>
array (
0 => __DIR__ . '/../..' . '/event',
),
'Controller\\' =>
array (
0 => __DIR__ . '/../..' . '/controller',
... ... @@ -51,12 +84,103 @@ class ComposerStaticInit510d7d2d197bed575e1fdc26074f60e5
public static $classMap = array (
'Composer\\InstalledVersions' => __DIR__ . '/..' . '/composer/InstalledVersions.php',
'Controller\\Base' => __DIR__ . '/../..' . '/controller/Base.php',
'Controller\\Blacklist' => __DIR__ . '/../..' . '/controller/Blacklist.php',
'Controller\\Folder' => __DIR__ . '/../..' . '/controller/Folder.php',
'Controller\\Home' => __DIR__ . '/../..' . '/controller/Home.php',
'Controller\\Job' => __DIR__ . '/../..' . '/controller/Job.php',
'Controller\\Login' => __DIR__ . '/../..' . '/controller/Login.php',
'Controller\\Test' => __DIR__ . '/../..' . '/controller/Test.php',
'Controller\\Upload' => __DIR__ . '/../..' . '/controller/Upload.php',
'Controller\\fob_ai\\MailList' => __DIR__ . '/../..' . '/controller/fob_ai/MailList.php',
'Controller\\v2\\Home' => __DIR__ . '/../..' . '/controller/v2/Home.php',
'Event\\syncMail' => __DIR__ . '/../..' . '/event/syncMail.php',
'Lib\\App' => __DIR__ . '/../..' . '/lib/App.php',
'Lib\\Db' => __DIR__ . '/../..' . '/lib/Db.php',
'Lib\\DbException' => __DIR__ . '/../..' . '/lib/DbException.php',
'Lib\\DbPool' => __DIR__ . '/../..' . '/lib/DbPool.php',
'Lib\\DbQuery' => __DIR__ . '/../..' . '/lib/DbQuery.php',
'Lib\\Err' => __DIR__ . '/../..' . '/lib/Err.php',
'Lib\\Lang' => __DIR__ . '/../..' . '/lib/Lang.php',
'Lib\\Log' => __DIR__ . '/../..' . '/lib/Log.php',
'Lib\\Mail\\Body' => __DIR__ . '/../..' . '/lib/Mail/Body.php',
'Lib\\Mail\\DeCoding' => __DIR__ . '/../..' . '/lib/Mail/DeCoding.php',
'Lib\\Mail\\Imap' => __DIR__ . '/../..' . '/lib/Mail/Imap.php',
'Lib\\Mail\\Mail' => __DIR__ . '/../..' . '/lib/Mail/Mail.php',
'Lib\\Mail\\MailFun' => __DIR__ . '/../..' . '/lib/Mail/MailFun.php',
'Lib\\Redis' => __DIR__ . '/../..' . '/lib/Redis.php',
'Lib\\RedisPool' => __DIR__ . '/../..' . '/lib/RedisPool.php',
'Lib\\RedisQuery' => __DIR__ . '/../..' . '/lib/RedisQuery.php',
'Lib\\Route' => __DIR__ . '/../..' . '/lib/Route.php',
'Lib\\UploadFile' => __DIR__ . '/../..' . '/lib/UploadFile.php',
'Lib\\Verify' => __DIR__ . '/../..' . '/lib/Verify.php',
'Model\\blacklist' => __DIR__ . '/../..' . '/model/blacklist.php',
'Model\\bodySql' => __DIR__ . '/../..' . '/model/bodySql.php',
'Model\\emailSql' => __DIR__ . '/../..' . '/model/emailSql.php',
'Model\\folderSql' => __DIR__ . '/../..' . '/model/folderSql.php',
'Model\\hostSql' => __DIR__ . '/../..' . '/model/hostSql.php',
'Model\\listsSql' => __DIR__ . '/../..' . '/model/listsSql.php',
'Model\\sendJobStatusSql' => __DIR__ . '/../..' . '/model/sendJobStatusSql.php',
'Model\\sendJobsSql' => __DIR__ . '/../..' . '/model/sendJobsSql.php',
'PHPMailer\\PHPMailer\\Exception' => __DIR__ . '/..' . '/phpmailer/phpmailer/src/Exception.php',
'PHPMailer\\PHPMailer\\OAuth' => __DIR__ . '/..' . '/phpmailer/phpmailer/src/OAuth.php',
'PHPMailer\\PHPMailer\\OAuthTokenProvider' => __DIR__ . '/..' . '/phpmailer/phpmailer/src/OAuthTokenProvider.php',
'PHPMailer\\PHPMailer\\PHPMailer' => __DIR__ . '/..' . '/phpmailer/phpmailer/src/PHPMailer.php',
'PHPMailer\\PHPMailer\\POP3' => __DIR__ . '/..' . '/phpmailer/phpmailer/src/POP3.php',
'PHPMailer\\PHPMailer\\SMTP' => __DIR__ . '/..' . '/phpmailer/phpmailer/src/SMTP.php',
'Psr\\Http\\Message\\MessageInterface' => __DIR__ . '/..' . '/psr/http-message/src/MessageInterface.php',
'Psr\\Http\\Message\\RequestInterface' => __DIR__ . '/..' . '/psr/http-message/src/RequestInterface.php',
'Psr\\Http\\Message\\ResponseInterface' => __DIR__ . '/..' . '/psr/http-message/src/ResponseInterface.php',
'Psr\\Http\\Message\\ServerRequestInterface' => __DIR__ . '/..' . '/psr/http-message/src/ServerRequestInterface.php',
'Psr\\Http\\Message\\StreamInterface' => __DIR__ . '/..' . '/psr/http-message/src/StreamInterface.php',
'Psr\\Http\\Message\\UploadedFileInterface' => __DIR__ . '/..' . '/psr/http-message/src/UploadedFileInterface.php',
'Psr\\Http\\Message\\UriInterface' => __DIR__ . '/..' . '/psr/http-message/src/UriInterface.php',
'Swlib\\Http\\BufferStream' => __DIR__ . '/..' . '/swlib/http/src/BufferStream.php',
'Swlib\\Http\\ContentType' => __DIR__ . '/..' . '/swlib/http/src/ContentType.php',
'Swlib\\Http\\Cookie' => __DIR__ . '/..' . '/swlib/http/src/Cookie.php',
'Swlib\\Http\\Cookies' => __DIR__ . '/..' . '/swlib/http/src/Cookies.php',
'Swlib\\Http\\CookiesManagerTrait' => __DIR__ . '/..' . '/swlib/http/src/CookiesManagerTrait.php',
'Swlib\\Http\\Exception\\BadResponseException' => __DIR__ . '/..' . '/swlib/http/src/Exception/BadResponseException.php',
'Swlib\\Http\\Exception\\ClientException' => __DIR__ . '/..' . '/swlib/http/src/Exception/ClientException.php',
'Swlib\\Http\\Exception\\ConnectException' => __DIR__ . '/..' . '/swlib/http/src/Exception/ConnectException.php',
'Swlib\\Http\\Exception\\HttpExceptionMask' => __DIR__ . '/..' . '/swlib/http/src/Exception/HttpExceptionMask.php',
'Swlib\\Http\\Exception\\RequestException' => __DIR__ . '/..' . '/swlib/http/src/Exception/RequestException.php',
'Swlib\\Http\\Exception\\ServerException' => __DIR__ . '/..' . '/swlib/http/src/Exception/ServerException.php',
'Swlib\\Http\\Exception\\TooManyRedirectsException' => __DIR__ . '/..' . '/swlib/http/src/Exception/TooManyRedirectsException.php',
'Swlib\\Http\\Exception\\TransferException' => __DIR__ . '/..' . '/swlib/http/src/Exception/TransferException.php',
'Swlib\\Http\\Message' => __DIR__ . '/..' . '/swlib/http/src/Message.php',
'Swlib\\Http\\PumpStream' => __DIR__ . '/..' . '/swlib/http/src/PumpStream.php',
'Swlib\\Http\\Request' => __DIR__ . '/..' . '/swlib/http/src/Request.php',
'Swlib\\Http\\Response' => __DIR__ . '/..' . '/swlib/http/src/Response.php',
'Swlib\\Http\\Rfc7230' => __DIR__ . '/..' . '/swlib/http/src/Rfc7230.php',
'Swlib\\Http\\Status' => __DIR__ . '/..' . '/swlib/http/src/Status.php',
'Swlib\\Http\\Stream' => __DIR__ . '/..' . '/swlib/http/src/Stream.php',
'Swlib\\Http\\Suffix' => __DIR__ . '/..' . '/swlib/http/src/Suffix.php',
'Swlib\\Http\\SwUploadFile' => __DIR__ . '/..' . '/swlib/http/src/SwUploadFile.php',
'Swlib\\Http\\UploadedFile' => __DIR__ . '/..' . '/swlib/http/src/UploadedFile.php',
'Swlib\\Http\\Uri' => __DIR__ . '/..' . '/swlib/http/src/Uri.php',
'Swlib\\Http\\UriNormalizer' => __DIR__ . '/..' . '/swlib/http/src/UriNormalizer.php',
'Swlib\\Http\\UriResolver' => __DIR__ . '/..' . '/swlib/http/src/UriResolver.php',
'Swlib\\Http\\Util' => __DIR__ . '/..' . '/swlib/http/src/Util.php',
'Swlib\\Saber' => __DIR__ . '/..' . '/swlib/saber/src/Saber.php',
'Swlib\\SaberGM' => __DIR__ . '/..' . '/swlib/saber/src/SaberGM.php',
'Swlib\\Saber\\ClientPool' => __DIR__ . '/..' . '/swlib/saber/src/ClientPool.php',
'Swlib\\Saber\\Request' => __DIR__ . '/..' . '/swlib/saber/src/Request.php',
'Swlib\\Saber\\RequestQueue' => __DIR__ . '/..' . '/swlib/saber/src/RequestQueue.php',
'Swlib\\Saber\\Response' => __DIR__ . '/..' . '/swlib/saber/src/Response.php',
'Swlib\\Saber\\ResponseMap' => __DIR__ . '/..' . '/swlib/saber/src/ResponseMap.php',
'Swlib\\Saber\\WebSocket' => __DIR__ . '/..' . '/swlib/saber/src/WebSocket.php',
'Swlib\\Saber\\WebSocketFrame' => __DIR__ . '/..' . '/swlib/saber/src/WebSocketFrame.php',
'Swlib\\Util\\ArrayMap' => __DIR__ . '/..' . '/swlib/util/src/ArrayMap.php',
'Swlib\\Util\\DataParser' => __DIR__ . '/..' . '/swlib/util/src/DataParser.php',
'Swlib\\Util\\Helper' => __DIR__ . '/..' . '/swlib/util/src/Helper.php',
'Swlib\\Util\\InterceptorTrait' => __DIR__ . '/..' . '/swlib/util/src/InterceptorTrait.php',
'Swlib\\Util\\MapPool' => __DIR__ . '/..' . '/swlib/util/src/MapPool.php',
'Swlib\\Util\\Serialize' => __DIR__ . '/..' . '/swlib/util/src/Serialize.php',
'Swlib\\Util\\SingletonTrait' => __DIR__ . '/..' . '/swlib/util/src/SingletonTrait.php',
'Swlib\\Util\\SpecialMarkTrait' => __DIR__ . '/..' . '/swlib/util/src/SpecialMarkTrait.php',
'Swlib\\Util\\StringDataParserTrait' => __DIR__ . '/..' . '/swlib/util/src/StringDataParserTrait.php',
'Swlib\\Util\\TypeDetector' => __DIR__ . '/..' . '/swlib/util/src/TypeDetector.php',
);
public static function getInitializer(ClassLoader $loader)
... ...
... ... @@ -88,6 +88,261 @@
}
],
"install-path": "../phpmailer/phpmailer"
},
{
"name": "psr/http-message",
"version": "1.1",
"version_normalized": "1.1.0.0",
"source": {
"type": "git",
"url": "https://github.com/php-fig/http-message.git",
"reference": "cb6ce4845ce34a8ad9e68117c10ee90a29919eba"
},
"dist": {
"type": "zip",
"url": "https://api.github.com/repos/php-fig/http-message/zipball/cb6ce4845ce34a8ad9e68117c10ee90a29919eba",
"reference": "cb6ce4845ce34a8ad9e68117c10ee90a29919eba",
"shasum": "",
"mirrors": [
{
"url": "https://mirrors.aliyun.com/composer/dists/%package%/%reference%.%type%",
"preferred": true
}
]
},
"require": {
"php": "^7.2 || ^8.0"
},
"time": "2023-04-04T09:50:52+00:00",
"type": "library",
"extra": {
"branch-alias": {
"dev-master": "1.1.x-dev"
}
},
"installation-source": "dist",
"autoload": {
"psr-4": {
"Psr\\Http\\Message\\": "src/"
}
},
"notification-url": "https://packagist.org/downloads/",
"license": [
"MIT"
],
"authors": [
{
"name": "PHP-FIG",
"homepage": "http://www.php-fig.org/"
}
],
"description": "Common interface for HTTP messages",
"homepage": "https://github.com/php-fig/http-message",
"keywords": [
"http",
"http-message",
"psr",
"psr-7",
"request",
"response"
],
"support": {
"source": "https://github.com/php-fig/http-message/tree/1.1"
},
"install-path": "../psr/http-message"
},
{
"name": "swlib/http",
"version": "v1.0.8",
"version_normalized": "1.0.8.0",
"source": {
"type": "git",
"url": "https://github.com/swlib/http.git",
"reference": "e97d9d05b741d4ee7ef58824a280acf983354d5e"
},
"dist": {
"type": "zip",
"url": "https://api.github.com/repos/swlib/http/zipball/e97d9d05b741d4ee7ef58824a280acf983354d5e",
"reference": "e97d9d05b741d4ee7ef58824a280acf983354d5e",
"shasum": "",
"mirrors": [
{
"url": "https://mirrors.aliyun.com/composer/dists/%package%/%reference%.%type%",
"preferred": true
}
]
},
"require": {
"php": ">=7.1",
"psr/http-message": "~1.0"
},
"require-dev": {
"phpunit/phpunit": "~7"
},
"time": "2020-08-15T10:36:45+00:00",
"type": "library",
"installation-source": "dist",
"autoload": {
"files": [
"src/functions.php"
],
"psr-4": {
"Swlib\\Http\\": "src"
}
},
"notification-url": "https://packagist.org/downloads/",
"license": [
"MIT"
],
"authors": [
{
"name": "twosee",
"email": "twose@qq.com"
}
],
"description": "Swlib-HTTP base class repository, PSR implementation",
"keywords": [
"http",
"php",
"psr7",
"swoole"
],
"support": {
"issues": "https://github.com/swlib/http/issues",
"source": "https://github.com/swlib/http/tree/v1.x"
},
"install-path": "../swlib/http"
},
{
"name": "swlib/saber",
"version": "v1.0.18",
"version_normalized": "1.0.18.0",
"source": {
"type": "git",
"url": "https://github.com/swlib/saber.git",
"reference": "24034ea70d64063cc9032c4aa08cb888995df190"
},
"dist": {
"type": "zip",
"url": "https://api.github.com/repos/swlib/saber/zipball/24034ea70d64063cc9032c4aa08cb888995df190",
"reference": "24034ea70d64063cc9032c4aa08cb888995df190",
"shasum": "",
"mirrors": [
{
"url": "https://mirrors.aliyun.com/composer/dists/%package%/%reference%.%type%",
"preferred": true
}
]
},
"require": {
"php": ">=7.1",
"swlib/http": "^1.0",
"swlib/util": "^1.0"
},
"require-dev": {
"phpunit/phpunit": "~7"
},
"time": "2021-04-20T06:28:59+00:00",
"type": "library",
"installation-source": "dist",
"autoload": {
"files": [
"src/include/functions.php"
],
"psr-4": {
"Swlib\\Saber\\": "src"
},
"classmap": [
"src/Saber.php",
"src/SaberGM.php"
]
},
"notification-url": "https://packagist.org/downloads/",
"license": [
"Apache-2.0"
],
"authors": [
{
"name": "twosee",
"email": "twose@qq.com"
}
],
"description": "Swoole coroutine HTTP client",
"keywords": [
"ajax",
"axios",
"client",
"coroutine",
"curl",
"http",
"php",
"psr7",
"requests",
"swoole"
],
"support": {
"issues": "https://github.com/swlib/saber/issues",
"source": "https://github.com/swlib/saber/tree/v1.0.18"
},
"install-path": "../swlib/saber"
},
{
"name": "swlib/util",
"version": "v1.0.3",
"version_normalized": "1.0.3.0",
"source": {
"type": "git",
"url": "https://github.com/swlib/util.git",
"reference": "300f551753702f5bfcbfb814d53bdbf057719a43"
},
"dist": {
"type": "zip",
"url": "https://api.github.com/repos/swlib/util/zipball/300f551753702f5bfcbfb814d53bdbf057719a43",
"reference": "300f551753702f5bfcbfb814d53bdbf057719a43",
"shasum": "",
"mirrors": [
{
"url": "https://mirrors.aliyun.com/composer/dists/%package%/%reference%.%type%",
"preferred": true
}
]
},
"require": {
"php": ">=7.0"
},
"require-dev": {
"phpunit/phpunit": "~7"
},
"time": "2020-08-24T10:00:58+00:00",
"type": "library",
"installation-source": "dist",
"autoload": {
"psr-4": {
"Swlib\\Util\\": "src"
}
},
"notification-url": "https://packagist.org/downloads/",
"license": [
"Apache-2.0"
],
"authors": [
{
"name": "twosee",
"email": "twose@qq.com"
}
],
"description": "Swlib Toolkit",
"keywords": [
"php",
"swlib",
"swoole",
"util"
],
"support": {
"issues": "https://github.com/swlib/util/issues",
"source": "https://github.com/swlib/util/tree/v1.0.3"
},
"install-path": "../swlib/util"
}
],
"dev": true,
... ...
<?php return array(
'root' => array(
'pretty_version' => 'dev-master',
'version' => 'dev-master',
'pretty_version' => '1.0.0+no-version-set',
'version' => '1.0.0.0',
'type' => 'project',
'install_path' => __DIR__ . '/../../',
'aliases' => array(),
'reference' => '977da5b2ffd636c1a21437e7f56a9b1fb6ebeaf2',
'reference' => NULL,
'name' => 'globalso/email',
'dev' => true,
),
'versions' => array(
'globalso/email' => array(
'pretty_version' => 'dev-master',
'version' => 'dev-master',
'pretty_version' => '1.0.0+no-version-set',
'version' => '1.0.0.0',
'type' => 'project',
'install_path' => __DIR__ . '/../../',
'aliases' => array(),
'reference' => '977da5b2ffd636c1a21437e7f56a9b1fb6ebeaf2',
'reference' => NULL,
'dev_requirement' => false,
),
'phpmailer/phpmailer' => array(
... ... @@ -28,5 +28,41 @@
'reference' => '49cd7ea3d2563f028d7811f06864a53b1f15ff55',
'dev_requirement' => false,
),
'psr/http-message' => array(
'pretty_version' => '1.1',
'version' => '1.1.0.0',
'type' => 'library',
'install_path' => __DIR__ . '/../psr/http-message',
'aliases' => array(),
'reference' => 'cb6ce4845ce34a8ad9e68117c10ee90a29919eba',
'dev_requirement' => false,
),
'swlib/http' => array(
'pretty_version' => 'v1.0.8',
'version' => '1.0.8.0',
'type' => 'library',
'install_path' => __DIR__ . '/../swlib/http',
'aliases' => array(),
'reference' => 'e97d9d05b741d4ee7ef58824a280acf983354d5e',
'dev_requirement' => false,
),
'swlib/saber' => array(
'pretty_version' => 'v1.0.18',
'version' => '1.0.18.0',
'type' => 'library',
'install_path' => __DIR__ . '/../swlib/saber',
'aliases' => array(),
'reference' => '24034ea70d64063cc9032c4aa08cb888995df190',
'dev_requirement' => false,
),
'swlib/util' => array(
'pretty_version' => 'v1.0.3',
'version' => '1.0.3.0',
'type' => 'library',
'install_path' => __DIR__ . '/../swlib/util',
'aliases' => array(),
'reference' => '300f551753702f5bfcbfb814d53bdbf057719a43',
'dev_requirement' => false,
),
),
);
... ...