Download the PHP package kaffe-software/l1 without Composer
On this page you can find all versions of the php package kaffe-software/l1. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Download kaffe-software/l1
More information about kaffe-software/l1
Files in kaffe-software/l1
Package l1
Short Description Laravel integration for Cloudflare Workers services.
License Apache-2.0
Homepage https://github.com/Kaffe-Software/l1
Informations about the package l1
L1 - Cloudflare bindings for Laravel
Extend your PHP/Laravel application with Cloudflare bindings.
This package offers support for:
- [x] Cloudflare D1
- [ ] Cloudflare KV
- [ ] Cloudflare Queues
π 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
- All Contributors
All versions of l1 with dependencies
illuminate/cache Version *
illuminate/database Version ^10.23
saloonphp/laravel-http-sender Version ^1.2
saloonphp/laravel-plugin Version ^2.1
saloonphp/saloon Version ^2.11