承接 pylesoft/mailbox 相关项目开发

从需求分析到上线部署,全程专人跟进,保证项目质量与交付效率

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

pylesoft/mailbox

Composer 安装命令:

composer require pylesoft/mailbox

包简介

Multi-provider mailbox abstraction for Laravel

README 文档

README

CI PHPStan PHP Laravel License

A unified, driver-based mailbox SDK for Laravel.

What Makes It Great

  • One API, every provider -- swap between Microsoft 365 and Google Workspace without changing a line of application code.
  • Fluent query builder -- filter messages by folder, read status, date range, and free-text search with an Eloquent-like syntax.
  • Delta sync built in -- track changes with provider-native delta tokens so you only process what is new.
  • Typed DTOs everywhere -- every message, folder, and attachment comes back as a strict, readonly data-transfer object.
  • Retry, rate-limit, and batch -- resilient HTTP handling with configurable backoff, concurrency locks, and queue-aware retry strategies.
  • Rule matching engine -- evaluate inbound messages against user-defined filter rules with MessageMatcher and expose filterable fields to your UI.

Quick Look

use Pyle\Mailbox\Facades\Mailbox;
use Pyle\Mailbox\Enums\WellKnownFolder;

$invoices = Mailbox::mailbox('invoices@acme.com')
    ->messages()
    ->inFolder(WellKnownFolder::INBOX)
    ->where('isRead', false)
    ->take(25)
    ->get(); // Collection<int, MessageDto>

Five lines of code -- that is all it takes to pull the 25 most recent unread messages from any supported provider. Mailbox handles authentication, pagination, and provider-specific quirks behind the scenes so you can focus on what your application does with those messages.

Supported Drivers

Driver Key Auth Model
Microsoft 365 (Graph API) ms-graph Client credentials with mailbox-scoping policies
Google Workspace (Gmail API) gmail Service-account delegation or user OAuth

Tip The alias key google-workspace resolves to the gmail driver, so you can use whichever name feels more natural in your configuration.

Documentation

Full documentation lives in the docs/ directory. Here are the pages you will reach for most often:

  • Installation -- requirements, Composer setup, publishing config and migrations.
  • Configuration -- every option in config/mailbox.php, explained.
  • Quickstart -- a working example in under two minutes.
  • Messages -- querying, reading, moving, and deleting messages.
  • Authentication -- provider-specific credential setup for MS Graph and Gmail.

Contributing

  1. Create a feature branch from the latest default branch.
  2. Implement changes with tests and documentation updates where applicable.
  3. Run the full quality suite:
vendor/bin/pest
vendor/bin/phpstan analyse
vendor/bin/pint --test
  1. Open a pull request with a clear summary, migration impact, and validation notes.

CI runs on PHP 8.2, 8.3, and 8.4 with latest dependencies, plus a PHP 8.2 prefer-lowest lane.

License

Mailbox is open-source software licensed under the MIT license.

统计信息

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

GitHub 信息

  • Stars: 1
  • Watchers: 0
  • Forks: 0
  • 开发语言: PHP

其他信息

  • 授权协议: MIT
  • 更新时间: 2026-02-26

承接程序开发

PHP开发

VUE

Vue开发

前端开发

小程序开发

公众号开发

系统定制

数据库设计

云部署

网站建设

安全加固