{"repo":"renoki-co/l1","free":true,"listed":false,"github":"https://github.com/renoki-co/l1","clone":"git clone https://github.com/renoki-co/l1.git","description":"Extend your PHP/Laravel application with Cloudflare bindings.","language":"PHP","stars":163,"topics":["ai","cloudflare","cloudflare-workers","d1","database","kv","laravel","php","queues","vectorize"],"license":"Apache-2.0","category":"databases-storage","readme_excerpt":"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 instead of using the issue tracker. 🎉 Credits - Alex Renoki - All Contributors","default_branch":null,"files":null,"tree":[],"storefront":"/r/renoki-co","claimed":false,"request_supported":{"post":"https://gitbuyer.com/r/renoki-co/l1/request-supported","requests":0},"note":"indexed from public GitHub; nothing is for sale on this page. Clone it from GitHub. Paid listings live at /search."}