PHP code example of darkterminal / turso-syncd

1. Go to this page and download the library: Download darkterminal/turso-syncd 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/ */

    

darkterminal / turso-syncd example snippets




use Darkterminal\TursoSyncd;

e-name";
$organizationName   = "your-organization-name";
$token              = "your-turso-token";
$config             = [
    'file_recorder'     => "/path/to/your/recorder-file/recorded_queries.json",
    'action_log_file'   => "/path/to/your/action-log-file/actions.log",
    'errors_log_file'   => "/path/to/your/error-log-file/errors.log",
];

$tursoSyncd = new TursoSyncd($databaseName, $organizationName, $token, $config);
$tursoSyncd->start();