Get started with Turso and PHP using the libSQL client in a few simple steps.
Retrieve database credentials
.env
.Install
Connect
Embedded Replica
Local only
Local only
Remote only
Execute
Sync (Embedded Replicas only)
sync()
on the database type
to sync your local database with the primary database: