t0date/php-google-chat-v2 问题修复 & 功能扩展

解决BUG、新增功能、兼容多环境部署,快速响应你的开发需求

邮箱: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
  • 点击次数: 3
  • 依赖项目数: 0
  • 推荐数: 0

GitHub 信息

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

其他信息

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

承接程序开发

PHP开发

VUE

Vue开发

前端开发

小程序开发

公众号开发

系统定制

数据库设计

云部署

网站建设

安全加固