Download the PHP
package saturio/duckdb without Composer
On this page you can find all versions of the php package
saturio/duckdb. It is possible to download/install
these versions without Composer. Possible dependencies are resolved
automatically.
Vendor saturio Package duckdb Short Description PHP extension for DuckDB License
MIT
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.
[!CAUTION]
This project is in an early development stage and there are no plans to make it stable/production ready for now. Nevertheless, any contribution will be welcome. Check also satur-io/duckdb-php
Prerequisites
Install the DuckDB C library (libduckdb) into a standard system path before using PIE.
Linux
Official downloads: https://duckdb.org/install/?platform=linux&environment=c
#### x86_64 (amd64)
#### arm64 (aarch64)
macOS
Official downloads: https://duckdb.org/install/?platform=macos&environment=c
Windows
Official downloads: https://duckdb.org/install/?platform=windows&environment=c
Open PowerShell as Administrator.
#### x86_64 (amd64)
#### arm64
Installation (PIE)
PIE installs PHP extensions published on Packagist. Once this package is published, install it with:
If PIE cannot enable the extension automatically, add this to your INI:
Library in a non-standard path (advanced)
If you installed libduckdb outside the standard system paths, pass the prefix that contains include/duckdb.h and lib/libduckdb.*:
You can see available configure options with:
PIE lists the available configure options for an extension in pie info. Use those options with pie install.
If pie reports that --with-duckdb-dir does not exist, install a version that includes this option and confirm it appears in pie info before retrying.
As a fallback, you can also pass include and library paths via environment variables:
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 saturio/duckdb contains the following files
Loading the files please wait ...
Loading please wait ...
Before you can download the PHP files, the dependencies should be resolved. This can take some minutes. Please be patient.