richan-fongdasen/laravel-gcr-worker
Composer 安装命令:
composer require richan-fongdasen/laravel-gcr-worker
包简介
Google Cloud Run Worker for Laravel
关键字:
README 文档
README
Laravel GCR Worker
Simple background processing implementation with Google Cloud Run and Google Cloud Pub/Sub
Synopsis
This package would help you to implement any background processing in Laravel like queue worker or scheduled job in Google Cloud Run by handling the triggered HTTP event invocation.
Table of contents
Setup
Install the package via Composer :
$ composer require richan-fongdasen/laravel-gcr-worker
Laravel version compatibility
| Laravel version | Package version |
|---|---|
| 5.7 - 8.x | 1.0 - 1.3 |
| 8.x - 11.x | ^1.6 |
Configuration
Publish configuration file using php artisan command
$ php artisan vendor:publish --provider="RichanFongdasen\GCRWorker\ServiceProvider"
The command above would copy a new configuration file to /config/gcr-worker.php
return [ /* |-------------------------------------------------------------------------- | Allow Event invocation |-------------------------------------------------------------------------- | | Specify whether the application would allow and handle any event | invocations, such as Pub/Sub topic message published events, Cloud | scheduler jobs, etc. | */ 'allow_event_invocation' => (bool) env('ALLOW_EVENT_INVOCATION', false), /* |-------------------------------------------------------------------------- | Maximum Execution Time |-------------------------------------------------------------------------- | | Set the max execution time in seconds, the default value is 15 minutes. | | Warning: | This value doesn't update the maximum execution time defined in your | nginx, apache or php-fpm configuration. You need to update them manually. | */ 'max_execution_time' => 60 * 15, /* |-------------------------------------------------------------------------- | Middleware |-------------------------------------------------------------------------- | | Define the middleware which should be attached in every GCR worker route. | */ 'middleware' => [ \Illuminate\Routing\Middleware\SubstituteBindings::class, \RichanFongdasen\GCRWorker\Middleware\AllowEventInvocation::class, ], /* |-------------------------------------------------------------------------- | Path prefix |-------------------------------------------------------------------------- | | Define the path prefix of the Pub/Sub event handler url. | */ 'path_prefix' => 'gcr-worker', ];
Usage
The content for this section is under development.
License
The MIT License (MIT). Please see License File for more information.
richan-fongdasen/laravel-gcr-worker 适用场景与选型建议
richan-fongdasen/laravel-gcr-worker 是一款 基于 PHP 开发的 Composer 扩展包,目前已累计 71.45k 次下载、GitHub Stars 达 4, 最近一次更新时间为 2020 年 11 月 25 日, 在 PHP 生态内属于活跃度较高的组件。
它主要适用于以下技术方向: 「laravel」 「laravel-package」 等业务场景。在实际项目中,围绕这些方向常见需要落地的问题包括:接口对接、性能调优、并发安全、与既有框架(Laravel / ThinkPHP / Yii / Webman 等)的兼容适配,以及生产环境的日志埋点与稳定性保障。
我们在过去多个企业项目中使用过 richan-fongdasen/laravel-gcr-worker 或与其功能相近的方案,如果你在选型或落地过程中遇到问题,例如 版本兼容、二次改造、私有化封装、与内部系统对接、生产 BUG 排查,欢迎联系我们协助评估。
基于 richan-fongdasen/laravel-gcr-worker 在你已有业务上做功能扩展、字段裁剪、UI 适配、与内部账号 / 权限 / 日志系统的深度对接。
线上偶发问题、内存泄漏、慢查询、并发异常等排查修复;针对高流量场景做缓存、队列、索引层面的调优。
承接完整的项目从需求 → 设计 → 开发 → 上线 → 长期运维;也可按月提供技术保姆服务。
与 richan-fongdasen/laravel-gcr-worker 相关的其它包
同方向 / 同关键字的高下载量 PHP Composer 包推荐,方便对比选型:
A Laravel package for converting English numbers into Bangla digits, Bangla words, Bangla month names, and Bangla money format with an easy-to-use API.
Laravel table comments loader (part of Diplodocker project)
jitone-ai is a powerful FilamentPHP plugin that integrates AI-powered features directly into your Filament forms.
Laravel JWT auth service package
Laravel package for Kavenegar sms
Alfabank REST API integration
统计信息
- 总下载量: 71.45k
- 月度下载量: 0
- 日度下载量: 0
- 收藏数: 4
- 点击次数: 25
- 依赖项目数: 0
- 推荐数: 0
其他信息
- 授权协议: MIT
- 更新时间: 2020-11-25