Download the PHP package xlited/laravel-d1 without Composer
On this page you can find all versions of the php package xlited/laravel-d1. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Download xlited/laravel-d1
More information about xlited/laravel-d1
Files in xlited/laravel-d1
Package laravel-d1
Short Description Laravel integration for Cloudflare D1.
License Apache-2.0
Homepage https://github.com/xlited/laravel-d1
Informations about the package laravel-d1
Cloudflare D1 bindings for Laravel
Extend your PHP/Laravel application with Cloudflare D1 bindings.
π Installation
You can install the package via Composer:
π Usage
D1 with raw PDO
Though D1 is not connectable via SQL protocols, it can be used as a PDO driver via the package connector. This proxies the query and bindings to the D1's /query
endpoint in the Cloudflare API.
D1 with Laravel
In your config/database.php
file, add a new connection:
Then in your .env
file, set up your Cloudflare credentials:
The d1
Β driver will proxy the PDO queries to the Cloudflare D1 API to run queries.
π Testing
Start the built-in Worker that simulates the Cloudflare API:
In a separate terminal, run the tests:
π€ Contributing
Please see CONTRIBUTING for details.
π Security
If you discover any security related issues, please email [email protected] instead of using the issue tracker.
π Credits
- Alex Renoki
- Ion Caliman
- All Contributors
All versions of laravel-d1 with dependencies
illuminate/cache Version ^10.23|^11.0
illuminate/database Version ^10.23|^11.0
saloonphp/laravel-http-sender Version ^1.2|^2.0|^3.0
saloonphp/laravel-plugin Version ^2.1|^3.0