khs1994 / tencent-mail
A PHP Library for the Tencent Mail
dev-master / 18.06.x-dev
2018-10-21 07:19 UTC
Requires
- php: ^7.1.3
- ext-json: *
- doctrine/cache: ^1.6
- guzzlehttp/guzzle: ^6.3
- pimple/pimple: ~3.0
Requires (Dev)
- phpunit/phpunit: ^7.3
- vlucas/phpdotenv: ~2.5.0
Suggests
- ext-xdebug: *
This package is auto-updated.
Last update: 2024-10-25 18:02:36 UTC
README
A PHP Library for the Tencent Mail
微信订阅号
关注项目作者微信订阅号,接收项目最新动态。
Installation
To Use the package, simply:
$ composer require khs1994/tencent-mail
For latest commit version:
$ composer require khs1994/tencent-mail dev-master
Usage
<?php require __DIR__.'/vendor/autoload.php'; $config = []; $mail = new \TencentMail\TencentMail($config); // get login url $mail->login->getLoginUrl('khs1994@khs1994.com');
Laravel
$ php artisan vendor:publish --tag=config
Then edit config file config/tencent-mail.php
<?php \TencentMail::login()->getLoginUrl('khs1994@khs1994.com');
PHP CaaS
Powered By khs1994-docker/lnmp