inboxcom/mailcore-laravel 问题修复 & 功能扩展

解决BUG、新增功能、兼容多环境部署,快速响应你的开发需求

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

inboxcom/mailcore-laravel

Composer 安装命令:

composer require inboxcom/mailcore-laravel

包简介

Laravel integration (service provider + facade) for the Mailcore PHP client.

README 文档

README

Latest Version License

Laravel bridge for the Mailcore mail-server control API — a service provider, config, and facade around the inboxcom/mailcore-php core client.

Unofficial. Third-party package; not published by Mailcore.

AI-assisted. Code, tests, and docs were written largely by AI (Claude Code) under human direction and review.

Install

composer require inboxcom/mailcore-laravel

Requires PHP >= 8.4. The service provider is auto-discovered.

Configuration

Set your key in .env:

MAILCORE_API_KEY=your-api-key
# MAILCORE_BASE_URI=https://api.example.com   # optional
# MAILCORE_TIMEOUT=30          # optional, request timeout in seconds (0 disables)
# MAILCORE_CONNECT_TIMEOUT=10  # optional, connect timeout in seconds (0 disables)

To customise more, publish the config:

php artisan vendor:publish --tag=mailcore-config

Usage

Via the facade:

use Inboxcom\Mailcore\Laravel\Facades\Mailcore;

$users = Mailcore::users()->list(filter: '*');
$user  = Mailcore::users()->get('holger@example.com');

…or resolve the client from the container (constructor injection, app(), etc.):

use Inboxcom\Mailcore\MailcoreClient;

public function __construct(private MailcoreClient $mailcore) {}

See the core package for the full client surface and error handling. Every non-2xx response throws a subclass of Inboxcom\Mailcore\Exception\ApiException; the API key is never included in any exception message.

Development & full docs

This package is developed in the Fjordmail/mailcore-sdk monorepo (this repository is a read-only subtree split). Issues and contributions belong there.

License

MIT — see LICENSE.

统计信息

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

GitHub 信息

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

其他信息

  • 授权协议: MIT
  • 更新时间: 2026-06-28