定制 tomaj/imap-mail-downloader 二次开发

按需修改功能、优化性能、对接业务系统,提供一站式技术支持

邮箱:yvsm@zunyunkeji.com | QQ:316430983 | 微信:yvsm316

tomaj/imap-mail-downloader

最新稳定版本:1.3.0

Composer 安装命令:

composer require tomaj/imap-mail-downloader

包简介

IMAP mail downloader

README 文档

README

Library for fetching inbox mails and processing them.

Build Status Code Climate Test Coverage Dependency Status

Latest Stable Version Latest Unstable Version License

Instalation

Install package via composer:

$ composer require tomaj/imap-mail-downloader

Usage

Basic usage in php:

use Tomaj\ImapMailDownloader\Downloader; use Tomaj\ImapMailDownloader\MailCriteria; use Tomaj\ImapMailDownloader\Email; $downloader = new Downloader('*imap host*', *port*, '*username*', '*password*'); $criteria = new MailCriteria(); $criteria->setFrom('some@email.com'); $downloader->fetch($criteria, function(Email $email) { print_r($email); return true; });

You can return false in callback function. In this case this email will be fetched also in next time. For processing emails you will need to create folder INBOX/processed. There is possiblity to setup criteria for fetching emails with MailCriteria. More information in source code.

Library is extremelly simple. Usefull for processing some notification emails. For complex usecases you will need to use native php imap_ functions.

统计信息

  • 总下载量: 95.01k
  • 月度下载量: 0
  • 日度下载量: 0
  • 收藏数: 3
  • 点击次数: 3
  • 依赖项目数: 1
  • 推荐数: 0

GitHub 信息

  • Stars: 3
  • Watchers: 1
  • Forks: 4
  • 开发语言: PHP

其他信息

  • 授权协议: MIT
  • 更新时间: 2026-01-04

承接程序开发

PHP开发

VUE

Vue开发

前端开发

小程序开发

公众号开发

系统定制

数据库设计

云部署

网站建设

安全加固