承接 t0date/php-google-chat-v2 相关项目开发

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

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

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

  1. Install dependencies
make setup
  1. Run tests
make test
  1. Run static analysis and coding style checks
make lint
  1. Apply formatting fixes (when needed)
make fix

Common Commands

  • make setup: composer install
  • make test: Run PHPUnit
  • make stan: Run PHPStan
  • make cs: Run PHP-CS-Fixer in dry-run mode
  • make lint: test + stan + cs
  • make fix: Apply PHP-CS-Fixer fixes
  • make example FILE=simple_text_message: Run any script under examples/

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.icon is deprecated in Google Chat Cards v2. This library intentionally does not implement it.

统计信息

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

GitHub 信息

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

其他信息

  • 授权协议: MIT
  • 更新时间: 2026-02-14