manish-pareek / gsuite-addon-php
For the gsuite addon card services alternatives
Installs: 5 540
Dependents: 0
Suggesters: 0
Security: 0
Stars: 0
Watchers: 1
Forks: 0
Open Issues: 0
Requires
- php: ^7.0|^8.0
Requires (Dev)
- phpunit/phpunit: ^6|^7|^8|^9
This package is auto-updated.
Last update: 2024-11-11 06:10:41 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 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.