PHP code example of alan01777 / laravel-chatwoot

1. Go to this page and download the library: Download alan01777/laravel-chatwoot 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/ */

    

alan01777 / laravel-chatwoot example snippets


use Chatwoot;

// Get all contacts
$contacts = Chatwoot::getContacts();

// Send a simple message
Chatwoot::sendMessage($conversationId, new MessageDTO(content: 'Hi!'));

// Use a specific account
Chatwoot::account('marketing')->getInboxes();
bash
php artisan vendor:publish --tag="chatwoot-config"