PHPackages                             lyignore/sendemail - PHPackages - PHPackages  [Skip to content](#main-content)[PHPackages](/)[Directory](/)[Categories](/categories)[Trending](/trending)[Leaderboard](/leaderboard)[Changelog](/changelog)[Analyze](/analyze)[Collections](/collections)[Log in](/login)[Sign up](/register)

1. [Directory](/)
2. /
3. [Mail &amp; Notifications](/categories/mail)
4. /
5. lyignore/sendemail

ActiveLibrary[Mail &amp; Notifications](/categories/mail)

lyignore/sendemail
==================

Timed tasks automatically query data and send it to the specified mailbox

0.0.3(7y ago)04MITPHP

Since Jun 12Pushed 7y agoCompare

[ Source](https://github.com/LYignore/sendemail)[ Packagist](https://packagist.org/packages/lyignore/sendemail)[ RSS](/packages/lyignore-sendemail/feed)WikiDiscussions master Synced 3w ago

READMEChangelog (3)Dependencies (3)Versions (4)Used By (0)

 sendemail
===========

[](#-sendemail-)

 Timed tasks automatically query data and send it to the specified mailbox.

Installing
----------

[](#installing)

```
$ composer require lyignore/sendemail -vvv
```

Usage
-----

[](#usage)

TODO

```
// 引入composer中的组件
require __DIR__ .'/vendor/autoload.php';
//配置环境
$config = [
    'db' =>[
        'DB_CONNECTION' => 'mysql',
        'DB_HOST' => 'localhost',
        'DB_PORT' => '33060',
        'DB_DATABASE' => 'test',
        'DB_USERNAME' => 'homestead',
        'DB_PASSWORD' => '',
    ],
    'email' => [
        'EMAIL_SENDSERVER'=>'smtp.mxhichina.com',
        'EMAIL_USERNAME' => 'wangyue@aikk.com.cn',
        'EMAIL_PASSWORD' => 'Aikaka12',
        'EMAIL_PORT' => '465',
        'EMAIL_TYPE' => 'ssl',
    ],
];
$sendemail = new \Lyignore\Sendemail\SendEmail($config);

// 判断是查询从上次到这次期间生成的数据还是查询全部的数据，test.txt为临时文件名称，可自定义
$sendemail->setTimeLimit('test.txt');
// 查询的sql语句，预查询，可传入第二个参数，SQL语句用 ？代替变量
$datas = $sendemail->getData("SELECT * FROM `users` WHERE `email` = ? ", ['admin']);
// 按照配置自动发送邮件， 可直接配置邮箱，也可用别名
$receivers = ['liu@aikk.com.cn', 'notify@aikk.com.cn' => 'test'];
$res = $sendemail->send($receivers);

// 也可以按照查询的数据生成Excel文件，SendEmail->send()会自动调用生成Excel方法，返回Excel的临时路径
$path = $sendemail->createExcel();
```

Contributing
------------

[](#contributing)

You can contribute in one of three ways:

1. File bug reports using the [issue tracker](https://github.com/lyignore/sendemail/issues).
2. Answer questions or fix bugs on the [issue tracker](https://github.com/lyignore/sendemail/issues).
3. Contribute new features or update the wiki.

*The code contribution process is not very formal. You just need to make sure that you follow the PSR-0, PSR-1, and PSR-2 coding guidelines. Any new code contributions must be accompanied by unit tests where applicable.*

License
-------

[](#license)

MIT

###  Health Score

22

—

LowBetter than 21% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity3

Limited adoption so far

Community6

Small or concentrated contributor base

Maturity51

Maturing project, gaining track record

 Bus Factor1

Top contributor holds 100% of commits — single point of failure

How is this calculated?**Maintenance (25%)** — Last commit recency, latest release date, and issue-to-star ratio. Uses a 2-year decay window.

**Popularity (30%)** — Total and monthly downloads, GitHub stars, and forks. Logarithmic scaling prevents top-heavy scores.

**Community (15%)** — Contributors, dependents, forks, watchers, and maintainers. Measures real ecosystem engagement.

**Maturity (30%)** — Project age, version count, PHP version support, and release stability.

###  Release Activity

Cadence

Every ~0 days

Total

3

Last Release

2576d ago

### Community

Maintainers

![](https://avatars.githubusercontent.com/u/27730851?v=4)[lyignore](/maintainers/lyignore)[@LYignore](https://github.com/LYignore)

---

Top Contributors

[![LYignore](https://avatars.githubusercontent.com/u/27730851?v=4)](https://github.com/LYignore "LYignore (4 commits)")

### Embed Badge

![Health badge](/badges/lyignore-sendemail/health.svg)

```
[![Health](https://phpackages.com/badges/lyignore-sendemail/health.svg)](https://phpackages.com/packages/lyignore-sendemail)
```

###  Alternatives

[easycorp/easyadmin-bundle

Admin generator for Symfony applications

4.3k17.9M388](/packages/easycorp-easyadmin-bundle)[craftcms/cms

Craft CMS

3.6k3.6M3.0k](/packages/craftcms-cms)[2lenet/crudit-bundle

The easy like Crud'it Bundle.

1616.4k12](/packages/2lenet-crudit-bundle)[backpack/crud

Quickly build admin interfaces using Laravel, Bootstrap and JavaScript.

3.4k3.7M223](/packages/backpack-crud)[pimcore/data-importer

Adds a comprehensive import functionality to Pimcore Datahub

46855.5k5](/packages/pimcore-data-importer)[flow-php/flow

PHP ETL - Extract Transform Load - Data processing framework

85036.3k](/packages/flow-php-flow)

PHPackages © 2026

[Directory](/)[Categories](/categories)[Trending](/trending)[Changelog](/changelog)[Analyze](/analyze)
