PHPackages                             adamrollinson/laravel-cloudflare-driver - 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. adamrollinson/laravel-cloudflare-driver

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

adamrollinson/laravel-cloudflare-driver
=======================================

Laravel integration for Cloudflare Workers services

v1.0.3(1y ago)05[4 PRs](https://github.com/AdamRollinson/laravel-cloudflare-driver/pulls)MITPHPPHP ^8.2CI passing

Since Jan 15Pushed 2mo ago1 watchersCompare

[ Source](https://github.com/AdamRollinson/laravel-cloudflare-driver)[ Packagist](https://packagist.org/packages/adamrollinson/laravel-cloudflare-driver)[ Docs](https://github.com/adamrollinson/laravel-cloudflare-driver)[ RSS](/packages/adamrollinson-laravel-cloudflare-driver/feed)WikiDiscussions main Synced today

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

Laravel Cloudflare Driver
=========================

[](#laravel-cloudflare-driver)

Installation
------------

[](#installation)

You can install the package via composer:

```
composer require adamrollinson/laravel-cloudflare-driver
```

In your `config/database.php` file, add the following to the `connections` array:

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

In your `.env` file, add the following:

```
CLOUDFLARE_TOKEN=
CLOUDFLARE_ACCOUNT_ID=
CLOUDFLARE_D1_DATABASE_ID=
```

Commands
--------

[](#commands)

```
php artisan d1:migrate
php artisan d1:migrate refresh
php artisan d1:migrate reset
php artisan d1:migrate rollback
php artisan d1:migrate status

php artisan make:d1 {name}
```

Command Options
---------------

[](#command-options)

### d1:migrate

[](#d1migrate)

```
--connection= : The database connection to use
--force : Force the operation to run when in production
```

### make:d1

[](#maked1)

```
--name= : The name of the migration file
```

Changelog
---------

[](#changelog)

Please see [CHANGELOG](CHANGELOG.md) for more information on what has changed recently.

Credits
-------

[](#credits)

- [Adam Rollinson](https://github.com/AdamRollinson)
- [Alex Renoki](https://github.com/renoki-co) - For the inspiration and base code for this package.

###  Health Score

36

—

LowBetter than 79% of packages

Maintenance65

Regular maintenance activity

Popularity4

Limited adoption so far

Community10

Small or concentrated contributor base

Maturity57

Maturing project, gaining track record

 Bus Factor1

Top contributor holds 60% 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

4

Last Release

535d ago

### Community

Maintainers

![](https://avatars.githubusercontent.com/u/15811348?v=4)[Adam Rollinson](/maintainers/AdamRollinson)[@AdamRollinson](https://github.com/AdamRollinson)

---

Top Contributors

[![AdamRollinson](https://avatars.githubusercontent.com/u/15811348?v=4)](https://github.com/AdamRollinson "AdamRollinson (9 commits)")[![dependabot[bot]](https://avatars.githubusercontent.com/in/29110?v=4)](https://github.com/dependabot[bot] "dependabot[bot] (3 commits)")[![github-actions[bot]](https://avatars.githubusercontent.com/in/15368?v=4)](https://github.com/github-actions[bot] "github-actions[bot] (3 commits)")

---

Tags

phplaraveldatabasesqlitequerycloudflareserverlesskvworkersr2d1serverless functionsserverless frameworkserverless architectureAdam Rollinsonlaravel-cloudflare-driver

###  Code Quality

Code StyleLaravel Pint

### Embed Badge

![Health badge](/badges/adamrollinson-laravel-cloudflare-driver/health.svg)

```
[![Health](https://phpackages.com/badges/adamrollinson-laravel-cloudflare-driver/health.svg)](https://phpackages.com/packages/adamrollinson-laravel-cloudflare-driver)
```

###  Alternatives

[renoki-co/l1

Laravel integration for Cloudflare Workers services.

16321.9k](/packages/renoki-co-l1)[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.1M132](/packages/laravel-pulse)[spatie/laravel-health

Monitor the health of a Laravel application

87512.0M167](/packages/spatie-laravel-health)[laravel/ai

The official AI SDK for Laravel.

1.0k3.2M203](/packages/laravel-ai)[roots/acorn

Framework for Roots WordPress projects built with Laravel components.

9762.4M131](/packages/roots-acorn)

PHPackages © 2026

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