PHPackages                             zyna/l1 - PHPackages - PHPackages  [Skip to content](#main-content)[PHPackages](/)[Directory](/)[Categories](/categories)[Trending](/trending)[Leaderboard](/leaderboard)[Changelog](/changelog)[Analyze](/analyze)[Collections](/collections)[Log in](/login)[Sign up](/register)

1. [Directory](/)
2. /
3. [Database &amp; ORM](/categories/database)
4. /
5. zyna/l1

ActiveLibrary[Database &amp; ORM](/categories/database)

zyna/l1
=======

This is a forked package from Ntanduy and renoki-co, I plan to maintain this to future laravel version. a Star ⭐⭐⭐⭐ would be enough as a motivation and encouragement for me to continue maintaining this package

v1.0.1(1y ago)128[1 issues](https://github.com/sencin/l1/issues)[1 PRs](https://github.com/sencin/l1/pulls)Apache-2.0PHPPHP ^8.2CI failing

Since Mar 21Pushed 10mo ago1 watchersCompare

[ Source](https://github.com/sencin/l1)[ Packagist](https://packagist.org/packages/zyna/l1)[ Docs](https://github.com/sencin/d1)[ GitHub Sponsors](https://github.com/sencin)[ RSS](/packages/zyna-l1/feed)WikiDiscussions main Synced today

READMEChangelog (1)Dependencies (12)Versions (4)Used By (0)

D1 - Cloudflare bindings for Laravel 12
=======================================

[](#d1---cloudflare-bindings-for-laravel-12)

[![Packagist Dependency Version](https://camo.githubusercontent.com/a9ff790c016c7942d0a1ccae1dcea997ca4f78093e83954ff5ee8643dd0756d5/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f646570656e64656e63792d762f7a796e612f6c312f706870)](https://camo.githubusercontent.com/a9ff790c016c7942d0a1ccae1dcea997ca4f78093e83954ff5ee8643dd0756d5/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f646570656e64656e63792d762f7a796e612f6c312f706870)[![Latest Stable Version](https://camo.githubusercontent.com/25ab2e12f9f65f438e46f84945e53eeb63793830fe62eefe14a409c337cbe5df/68747470733a2f2f706f7365722e707567782e6f72672f7a796e612f6c312f762f737461626c65)](https://packagist.org/packages/zyna/l1)[![Total Downloads](https://camo.githubusercontent.com/e9cc5e92c4a3edabe49713557d41c407609d282e088e1f993f79bfd14aed8ba6/68747470733a2f2f706f7365722e707567782e6f72672f7a796e612f6c312f646f776e6c6f616473)](https://packagist.org/packages/zyna/l1)[![Monthly Downloads](https://camo.githubusercontent.com/51e407a0de619536be70956fa2a71aa3a0111c0ab1715b23745a029c72bd144d/68747470733a2f2f706f7365722e707567782e6f72672f7a796e612f6c312f642f6d6f6e74686c79)](https://packagist.org/packages/zyna/l1)[![License](https://camo.githubusercontent.com/817a538f04ce539ff7dec19180119b4c5465da225a8c31078b62e887346c9393/68747470733a2f2f706f7365722e707567782e6f72672f7a796e612f6c312f6c6963656e7365)](https://packagist.org/packages/zyna/l1)

#### This is a forked package from [renoki-co](https://packagist.org/packages/renoki-co/l1) and [Ntanduy](https://packagist.org/packages/ntanduy/cloudflare-d1-database), I plan to maintain this to future laravel versions.

[](#this-is-a-forked-package-from-renoki-co-and-ntanduy-i-plan-to-maintain-this-to-future-laravel-versions)

#### a star ⭐⭐⭐⭐ on [GitHub](https://github.com/sencin/l1) would be enough as a motivation and encouragement for me to continue maintaining this package.

[](#a-star--on-github-would-be-enough-as-a-motivation-and-encouragement-for-me-to-continue-maintaining-this-package)

Integrate Cloudflare bindings into your PHP/Laravel application.

This package offers support for:

- [Cloudflare D1](https://developers.cloudflare.com/d1)

🚀 Installation
--------------

[](#-installation)

```
composer require zyna/l1
```

👏 Usage
-------

[](#-usage)

### Integrate Cloudflare D1 with Laravel

[](#integrate-cloudflare-d1-with-laravel)

Add a new connection in your `config/database.php` file:

```
'connections' => [
    'd1' => [
        'driver' => 'd1',
        'prefix' => '',
        'database' => env('CLOUDFLARE_D1_DATABASE_ID', ''),
        'api' => 'https://api.cloudflare.com/client/v4',
        'auth' => [
            'token' => env('CLOUDFLARE_TOKEN', ''),
            'account_id' => env('CLOUDFLARE_ACCOUNT_ID', ''),
        ],
    ],
]
```

Next, configure your Cloudflare credentials in the `.env` file:

```
CLOUDFLARE_TOKEN=
CLOUDFLARE_ACCOUNT_ID=
CLOUDFLARE_D1_DATABASE_ID=xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx

```

The `d1` driver will forward PDO queries to the Cloudflare D1 API to execute them.

🌱 Testing
---------

[](#-testing)

Start the built-in Worker to simulate the Cloudflare API:

```
cd tests/worker
npm ci
npm run start
```

In a separate terminal, run the tests:

```
vendor/bin/phpunit
```

🤝 Contributing
--------------

[](#-contributing)

Please see [CONTRIBUTING](CONTRIBUTING.md) for details.

🔒 Security
----------

[](#--security)

If you discover any security related issues, please Make Issue Request on Github.

🎉 Credits
---------

[](#-credits)

- [renoki-co](https://github.com/renoki-co)
- [TanDuy03](https://github.com/TanDuy03)
- [Senchin](https://github.com/sencin)
- [All Contributors](../../contributors)

###  Health Score

26

—

LowBetter than 41% of packages

Maintenance29

Infrequent updates — may be unmaintained

Popularity8

Limited adoption so far

Community7

Small or concentrated contributor base

Maturity52

Maturing project, gaining track record

 Bus Factor1

Top contributor holds 100% of commits — single point of failure

How is this calculated?**Maintenance (25%)** — Last commit recency, latest release date, and issue-to-star ratio. Uses a 2-year decay window.

**Popularity (30%)** — Total and monthly downloads, GitHub stars, and forks. Logarithmic scaling prevents top-heavy scores.

**Community (15%)** — Contributors, dependents, forks, watchers, and maintainers. Measures real ecosystem engagement.

**Maturity (30%)** — Project age, version count, PHP version support, and release stability.

###  Release Activity

Cadence

Every ~0 days

Total

2

Last Release

469d ago

### Community

Maintainers

![](https://avatars.githubusercontent.com/u/2562202?v=4)[Zyna](/maintainers/Zyna)[@zyna](https://github.com/zyna)

---

Top Contributors

[![sencin](https://avatars.githubusercontent.com/u/123338460?v=4)](https://github.com/sencin "sencin (5 commits)")

---

Tags

laraveldatabasecloudflared1Zyna

###  Code Quality

TestsPest

### Embed Badge

![Health badge](/badges/zyna-l1/health.svg)

```
[![Health](https://phpackages.com/badges/zyna-l1/health.svg)](https://phpackages.com/packages/zyna-l1)
```

###  Alternatives

[psalm/plugin-laravel

Psalm plugin for Laravel

3355.3M346](/packages/psalm-plugin-laravel)[ntanduy/cloudflare-d1-database

Cloudflare D1 database driver for Laravel — full Eloquent &amp; Query Builder support.

267.8k](/packages/ntanduy-cloudflare-d1-database)[laravel/pulse

Laravel Pulse is a real-time application performance monitoring tool and dashboard for your Laravel application.

1.7k15.1M131](/packages/laravel-pulse)[roots/acorn

Framework for Roots WordPress projects built with Laravel components.

9762.4M131](/packages/roots-acorn)[api-platform/laravel

API Platform support for Laravel

58170.8k14](/packages/api-platform-laravel)[renoki-co/l1

Laravel integration for Cloudflare Workers services.

16321.9k](/packages/renoki-co-l1)

PHPackages © 2026

[Directory](/)[Categories](/categories)[Trending](/trending)[Changelog](/changelog)[Analyze](/analyze)
