PHP code example of asad / zoho-cliq

1. Go to this page and download the library: Download asad/zoho-cliq library. Choose the download type require.

2. Extract the ZIP file and open the index.php.

3. Add this code to the index.php.
    
        
<?php
require_once('vendor/autoload.php');

/* Start to develop here. Best regards https://php-download.com/ */

    

asad / zoho-cliq example snippets


use Asad\ZohoCliq\ZCliq;

// Inside method
ZCliq::to('channel_name')->card([
            'title' => 'ANNOUNCEMENT',
            'theme' => 'modern-inline',
            'thumbnail' => 'https://www.zoho.com/cliq/help/restapi/images/announce_icon.png'
        ])->send("Send Message to Cliq Channel using asad/zoho-cliq package");

//Without Card
ZCliq::to('channel_name')->send("Send Message to Cliq Channel using asad/zoho-cliq package");

bash
php artisan vendor:publish --provider="Asad\ZohoCliq\ZohoCliqServiceProvider"