t0date/php-google-chat-v2
最新稳定版本:0.1.0
Composer 安装命令:
composer require t0date/php-google-chat-v2
包简介
PHP library for sending messages to Google Chat via incoming webhook
README 文档
README
A PHP library template for Google Chat Incoming Webhooks.
Requirements
- Docker
- Docker Compose
Development Workflow
- Install dependencies
make setup
- Run tests
make test
- Run static analysis and coding style checks
make lint
- Apply formatting fixes (when needed)
make fix
Common Commands
make setup:composer installmake test: Run PHPUnitmake stan: Run PHPStanmake cs: Run PHP-CS-Fixer in dry-run modemake lint:test + stan + csmake fix: Apply PHP-CS-Fixer fixesmake example FILE=simple_text_message: Run any script underexamples/
Usage
<?php require __DIR__ . '/vendor/autoload.php'; use T0date\GoogleChat\GoogleChatSender; use T0date\GoogleChat\Message; $sender = new GoogleChatSender(); $sender->send( 'https://chat.googleapis.com/v1/spaces/xxx/messages?key=xxx&token=xxx', (new Message())->setText('Hello from php-google-chat-v2') );
Notes
DecoratedText.iconis deprecated in Google Chat Cards v2. This library intentionally does not implement it.
统计信息
- 总下载量: 1
- 月度下载量: 0
- 日度下载量: 0
- 收藏数: 0
- 点击次数: 3
- 依赖项目数: 0
- 推荐数: 0
其他信息
- 授权协议: MIT
- 更新时间: 2026-02-14