承接 mateusjunges/laravel-cloudflare-mail 相关项目开发

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

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

mateusjunges/laravel-cloudflare-mail

Composer 安装命令:

composer require mateusjunges/laravel-cloudflare-mail

包简介

Cloudflare Email Service transport for Laravel.

README 文档

README

Packagist Version Packagist Downloads MIT Licensed Continuous Integration

Readme Banner

A Laravel mail driver for Cloudflare Email Service, the outbound email API on Cloudflare's network. Once installed and configured, every Mail::send, queued mailable, and notification routes through Cloudflare via Laravel's mail abstraction.

Requirements

PHP 8.4 or newer. Laravel 12 or 13. A Cloudflare account with a verified sender domain and an API token that has the email sending permission.

Installation

composer require mateusjunges/laravel-cloudflare-mail

The service provider auto registers via Laravel's package discovery. No manual registration needed.

Quick start

Set the credentials in your .env:

CLOUDFLARE_EMAIL_ACCOUNT_ID=your-account-id
CLOUDFLARE_EMAIL_API_TOKEN=your-api-token
MAIL_MAILER=cloudflare

Add the cloudflare mailer to config/mail.php:

'mailers' => [
    // ...
    'cloudflare' => [
        'transport' => 'cloudflare',
    ],
],

Add the credentials block to config/services.php (the same convention Laravel's built in Postmark and SES drivers follow):

'cloudflare' => [
    'account_id' => env('CLOUDFLARE_EMAIL_ACCOUNT_ID'),
    'api_token' => env('CLOUDFLARE_EMAIL_API_TOKEN'),
],

That's it. Your existing mailables and notifications will now be delivered through Cloudflare. Any key set on the mailer block overrides the matching value in services.cloudflare, which is handy for scoping a second mailer entry to a different account.

Documentation

The docs/ folder covers each topic in more depth:

  • Installation. Composer install and provider registration.
  • Configuration. Environment variables, config files, and Cloudflare dashboard setup.
  • Usage. Sending mail through the facade, mailables, notifications, and queued jobs.
  • Error handling. Exception types, Cloudflare error codes, and retry semantics.

Versioning

This package follows Semantic Versioning. The public API consists of the cloudflare mailer configuration keys and the Junges\CloudflareMail\Exceptions\CloudflareTransportException class. Every other class is marked @internal and may change in any release, so depend only on the documented configuration and the Laravel mail abstraction.

Testing

composer test

The composer cs script runs Rector, Pint, and PHPStan together.

Changelog

See CHANGELOG.md for what has changed recently.

Contributing

Contributions are welcome. Please open an issue to discuss substantial changes before submitting a pull request, and make sure composer test and composer cs pass.

Security

If you discover a security vulnerability, please review our security policy for how to report it.

Credits

License

The MIT License (MIT). See LICENSE for details.

统计信息

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

GitHub 信息

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

其他信息

  • 授权协议: MIT
  • 更新时间: 2026-05-15

承接程序开发

PHP开发

VUE

Vue开发

前端开发

小程序开发

公众号开发

系统定制

数据库设计

云部署

网站建设

安全加固