PHP code example of opencoreemr / oce-module-sinch-conversations

1. Go to this page and download the library: Download opencoreemr/oce-module-sinch-conversations 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/ */

    

opencoreemr / oce-module-sinch-conversations example snippets

bash
# Inspect your Sinch configuration
export SINCH_PROJECT_ID="your-project-id"
export SINCH_APP_ID="your-app-id"
export SINCH_API_KEY="your-api-key"
export SINCH_API_SECRET="your-api-secret"

./cli.php sinch:inspect

# List all apps
./cli.php sinch:app:list

# Create a webhook
./cli.php sinch:webhook:create "https://your-openemr.com/webhook.php"
bash
# The installer creates a sites/default/sqlconf.php file
# If this file exists, installer is complete
docker compose exec openemr ls -la /var/www/localhost/htdocs/openemr/sites/default/sqlconf.php