Download the PHP package phenixphp/sqlite without Composer

On this page you can find all versions of the php package phenixphp/sqlite. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.

FAQ

After the download, you have to make one include require_once('vendor/autoload.php');. After that you have to import the classes with use statements.

Example:
If you use only one package a project is not needed. But if you use more then one package, without a project it is not possible to import the classes with use statements.

In general, it is recommended to use always a project to download your libraries. In an application normally there is more than one library needed.
Some PHP packages are not free to download and because of that hosted in private repositories. In this case some credentials are needed to access such packages. Please use the auth.json textarea to insert credentials, if a package is coming from a private repository. You can look here for more information.

  • Some hosting areas are not accessible by a terminal or SSH. Then it is not possible to use Composer.
  • To use Composer is sometimes complicated. Especially for beginners.
  • Composer needs much resources. Sometimes they are not available on a simple webspace.
  • If you are using private repositories you don't need to share your credentials. You can set up everything on our site and then you provide a simple download link to your team member.
  • Simplify your Composer build process. Use our own command line tool to download the vendor folder as binary. This makes your build process faster and you don't need to expose your credentials for private repositories.
Please rate this library. Is it a good library?

Informations about the package sqlite

phenixphp/sqlite

Asynchronous SQLite 3 client for PHP based on Amp.

Tests Latest Version on Packagist Total Downloads PHP Version License


phenixphp/sqlite is part of the Phenix PHP framework ecosystem. Phenix is a web framework built on pure PHP, without external extensions, based on the Amphp ecosystem, which provides non-blocking operations, asynchronism and parallel code execution natively. It runs in the PHP SAPI CLI and on its own server — it is simply powerful.


Table of Contents


Requirements

Requirement Version
PHP ^8.2
ext-sqlite3 *

Installation

Install the package via Composer:


Configuration

The SqliteConfig class is the entry point for configuring the SQLite connection. It allows you to define the database path and connection parameters aligned with the Amphp SQL ecosystem.

You can use :memory: as the database path to create an in-memory SQLite database, which is ideal for testing scenarios.


Usage

Establishing a Connection

Use SqliteConfig to create and manage asynchronous connections to your SQLite database. Since this package is built on top of Amphp, all database operations are non-blocking and run asynchronously using fibers.


Executing Queries

Once you have an active connection, you can execute SQL statements — CREATE, INSERT, SELECT, UPDATE, and DELETE — all asynchronously without blocking the event loop.

Creating a Table

Inserting Records

Selecting Records

Updating Records

Deleting Records


Prepared Statements

Prepared statements allow you to precompile a SQL template and execute it repeatedly with different bound parameters. This improves both performance and security by preventing SQL injection.

Preparing and Executing a Statement

Prepared Statement with Named Parameters

Closing a Prepared Statement


Transactions

Transactions group multiple SQL operations into a single atomic unit. If any operation fails, all changes within the transaction are rolled back, ensuring data consistency.

Basic Transaction

Transaction with Prepared Statements


Learning Phenix

You can learn about Phenix in the official documentation and discover the power of asynchronous and concurrent applications in native PHP.

Security Vulnerabilities

If you discover a security vulnerability within Phenix, please send an e-mail to Omar Barbosa via [email protected]. All security vulnerabilities will be promptly addressed.

License

This package is open-sourced software licensed under the MIT license.


All versions of sqlite with dependencies

PHP Build Version
Package Version
Requires php Version ^8.2
ext-sqlite3 Version *
amphp/amp Version ^3
amphp/parser Version ^1.1
amphp/pipeline Version ^1
amphp/sql Version ^2
amphp/sql-common Version ^2
amphp/parallel Version ^2.3
Composer command for our command line client (download client) This client runs in each environment. You don't need a specific PHP version etc. The first 20 API calls are free. Standard composer command

The package phenixphp/sqlite contains the following files

Loading the files please wait ...