承接 atlas-php/relay 相关项目开发

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

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

atlas-php/relay

最新稳定版本:v0.14.1

Composer 安装命令:

composer require atlas-php/relay

包简介

Unified Laravel relay lifecycle for capturing and delivering payloads.

README 文档

README

Build coverage License

Atlas Relay is a Laravel package providing a unified, reliable system for receiving webhooks, processing actions, and sending outbound HTTP requests — all with full lifecycle tracking and auditability.

Table of Contents

Overview

Atlas Relay simplifies webhook and payload handling by ensuring every inbound and outbound request is captured, validated, executed, and recorded. It removes the fragility of ad‑hoc webhook handling and replaces it with a consistent, observable pipeline.

Installation

composer require atlas-php/relay

For publishing config, migrations, and scheduler setup: Install Guide

Receive Webhooks

Custom handler:

Relay::request($request)
    ->handler(fn ($payload) => $this->handleEvent($payload));

Async job instead of handler:

Relay::request($request)->dispatch(new ExampleJob);

With guard:

Relay::request($request)
    ->guard(StripeGuard::class)
    ->handler(fn ($payload) => $this->handleEvent($payload));

Relay providers can supply a guard + handler: (recommended)

Relay::request($request)
    ->provider(MyWebhookProvider::class)
    ->handler();

See controller example with guard and response

More inbound examples: Receive Webhook Relay

Send Webhooks

Relay::http()->post('https://api.example.com/webhooks', [
    'event' => 'order.created',
]);

With provider, group, headers, retries, and timeout:

Relay::provider('stripe')
    ->setGroupId(42)
    ->http()
    ->withHeaders(['X-API-KEY' => '123'])
    ->retry(3, 500)
    ->timeout(10)
    ->post('https://partner.com/ingest', $payload);

Tip: setGroupId() scopes relays to your tenant/account identifiers. The value is stored as an unsigned big integer and left entirely to the consumer to interpret.

More outbound examples: Send Webhook Relay

Also See

Contributing

See the Contributing Guide.

License

MIT — see LICENSE.

统计信息

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

GitHub 信息

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

其他信息

  • 授权协议: MIT
  • 更新时间: 2025-11-12