PHP code example of arnaudmoncondhuy / synapse-chat

1. Go to this page and download the library: Download arnaudmoncondhuy/synapse-chat 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/ */

    

arnaudmoncondhuy / synapse-chat example snippets


ArnaudMoncondhuy\SynapseChat\SynapseChatBundle::class => ['all' => true],

// Dans un contrôleur
use Symfony\Bundle\FrameworkBundle\Controller\AbstractController;

class ChatController extends AbstractController {
    public function chat() {
        return $this->render('@Synapse/chat/page.html.twig');
    }
}