shailesh-matariya / gsuite-addon-php
For the gsuite addon card services alternatives
dev-master
2020-10-30 09:03 UTC
Requires
- php: ^7.0
Requires (Dev)
- phpunit/phpunit: ^7.0
This package is auto-updated.
Last update: 2025-03-29 00:49:37 UTC
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 shailesh-matariya/gsuite-addon-php
Usage
use ShaileshMatariya\Gsuite\Addon\Card; use ShaileshMatariya\Gsuite\Addon\Image; use ShaileshMatariya\Gsuite\Addon\Navigation; use ShaileshMatariya\Gsuite\Addon\ResponseAction; use ShaileshMatariya\Gsuite\Addon\ResponseBuilder; use ShaileshMatariya\Gsuite\Addon\Section; use ShaileshMatariya\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 patel.shailesh987@gmail.com instead of using the issue tracker.
Credits
License
The MIT License (MIT). Please see License File for more information.