Download the PHP package darkterminal/libsql-php-ext without Composer
On this page you can find all versions of the php package darkterminal/libsql-php-ext. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Download darkterminal/libsql-php-ext
More information about darkterminal/libsql-php-ext
Files in darkterminal/libsql-php-ext
Package libsql-php-ext
Short Description LibSQL Native Extension for PHP
License MIT
Informations about the package libsql-php-ext
🚨 THIS REPOSITORY IS READ-ONLY 🚨
This repository is no longer under maintenance and has been moved to
the official Turso Database repository under the name Turso Client PHP
the official Turso Database repository under the name Turso Client PHP
LibSQL Extension for PHP
The Core Dependency of LibSQL Client PHP
Requirements
- Linux or Darwin OS
- C/C++ Compiler
- jq
- Rust Installed
- PHP Installed
- FFI Extension is Enabled (Why? I read the C heder definition from wrapper)
🚨 DON'T WORRY ABOUT REQUIREMENTS 🚨
Everything will be prepared when you install this extension. But, if you encountered an error; create an issue.
How To Try it?
Install
💡 Usage Examples and Available Features
Exec
Execute Batch
Convenience method to run multiple SQL statements (that cannot take any parameters).
Get Last Insert ID
Query Database
Return as Raw Format
Fetch a Result
Fetches a result row as an associative or numerically indexed array or both like SQLite3. default is LIBSQLPHP_BOTH
, other options is: LIBSQLPHP_ASSOC
or LIBSQLPHP_NUM
Fetch Default
Fetch Assoc
Fetch Num
Query Single
Get Total Columns
Get The Column Names
Get The Column Types
Parameters Bindings
bindParam
bindValue
What Prepare Query Have?
The prepare
query give a result of LibSQLPHPStmt
object that contains other method:
bindParam
- Bind a PHP variable to a parameter in the prepared statement.bindValue
- Bind a value to a parameter in the prepared statement.execute
- Execute the prepared statement with bound parameters.getSQL
- Get the SQL query string with parameter values replaced.paramCount
- Get the number of parameters in the prepared statement.readOnly
- Check if the prepared statement is read-only.reset
- Reset the prepared statement, clearing bound parameters.clear
- Clear the values of bound parameters in the prepared statement.close
- Close the prepared statement, freeing resources.
Transaction
NOTE: After
commit
orrollback
the$tx
will be free from memory
If this library is useful and wants to support what I do. Please say a prayer to the God you believe in to always give you and me health and blessings in life, or you can become my GitHub Sponsor.