定制 spurroute/laravel 二次开发

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

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

spurroute/laravel

Composer 安装命令:

composer require spurroute/laravel

包简介

Laravel integration for SpurRoute — webhook ingest, retry, replay and fan-out infrastructure.

README 文档

README

Tests Latest Version on Packagist License: MIT

Laravel integration for SpurRoute — webhook ingest, retry, replay and fan-out infrastructure.

Status: early scaffold. The client surface is a stub today; the real API (ingest, retry, replay, fan-out) is being filled in. The package is installable, auto-discoverable and ready to grow.

Requirements

  • PHP ^8.2
  • Laravel ^12.0 or ^13.0

Installation

composer require spurroute/laravel

The service provider and the SpurRoute facade are registered automatically via Laravel package discovery.

Configuration

Publish the configuration file:

php artisan vendor:publish --tag="spurroute-config"

This creates config/spurroute.php. Set your credentials in .env:

SPURROUTE_API_KEY=your-api-key
# Optional — defaults to https://spurroute.dev
SPURROUTE_BASE_URL=https://spurroute.dev

Usage

The client is currently a stub. ping() is a placeholder that always returns true; real endpoints are coming.

Resolve the client from the container:

use SpurRoute\Laravel\SpurRoute;

$spurroute = app(SpurRoute::class);

$spurroute->ping(); // true (stub)

Or use the facade:

use SpurRoute\Laravel\Facades\SpurRoute;

SpurRoute::ping(); // true (stub)

You may also type-hint SpurRoute\Laravel\SpurRoute anywhere the container resolves dependencies (controllers, jobs, commands, …).

Testing

composer test

Code style

This package uses Laravel Pint:

composer lint    # check only
composer format  # apply fixes

License

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

统计信息

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

GitHub 信息

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

其他信息

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

承接程序开发

PHP开发

VUE

Vue开发

前端开发

小程序开发

公众号开发

系统定制

数据库设计

云部署

网站建设

安全加固