manish-pareek/gsuite-addon-php
Composer 安装命令:
composer require manish-pareek/gsuite-addon-php
包简介
For the gsuite addon card services alternatives
README 文档
README
By using this library, you will get a quick start and focus on the developing your business logic rather than creating JSONs as response. This is a same naming conventions what google addon has for the app script.
Installation
You can install the package via composer:
composer require manish-pareek/gsuite-addon-php
Usage
use ManishPareek\Gsuite\Addon\Card; use ManishPareek\Gsuite\Addon\Image; use ManishPareek\Gsuite\Addon\Navigation; use ManishPareek\Gsuite\Addon\ResponseAction; use ManishPareek\Gsuite\Addon\ResponseBuilder; use ManishPareek\Gsuite\Addon\Section; use ManishPareek\Gsuite\Addon\Widget; $imageWidget = (new Widget())->setImage( (new Image())->setImageUrl("https://storage.googleapis.com/gweb-uniblog-publish-prod/images/logo_Google_FullColor_3x_830x271px.max-2800x2800.png") ); $widgetSection = (new Section())->addWidget($imageWidget); $homeCard = (new Card())->addSection($widgetSection); $navigation = (new Navigation())->setPushCard($homeCard); $responseAction = (new ResponseAction())->addNavigation($navigation); $responseBuilder = (new ResponseBuilder())->setAction($responseAction); return $responseBuilder->send();
Changelog
Please see CHANGELOG for more information what has changed recently.
Contributing
Please see CONTRIBUTING for details.
Security
If you discover any security related issues, please email pareek.manish558@gmail.com instead of using the issue tracker.
Credits
License
The MIT License (MIT). Please see License File for more information.
统计信息
- 总下载量: 10.11k
- 月度下载量: 0
- 日度下载量: 0
- 收藏数: 0
- 点击次数: 3
- 依赖项目数: 0
- 推荐数: 0
其他信息
- 授权协议: MIT
- 更新时间: 2022-05-21