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 1mo 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 1mo ago

READMEChangelog (4)Dependencies (10)Versions (10)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

37

—

LowBetter than 83% of packages

Maintenance70

Regular maintenance activity

Popularity4

Limited adoption so far

Community10

Small or concentrated contributor base

Maturity56

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

482d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/3adfd44e64a5a6500f8621c6d3ab79f964d5c06c80cca3ebbf30a55a37f0d19d?d=identicon)[AdamRollinson](/maintainers/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.

16113.1k](/packages/renoki-co-l1)[ntanduy/cloudflare-d1-database

Easy configuration and setup for D1 Database connections in Laravel.

215.4k](/packages/ntanduy-cloudflare-d1-database)[clickbar/laravel-magellan

This package provides functionality for working with the postgis extension in Laravel.

423715.4k1](/packages/clickbar-laravel-magellan)[jerome/filterable

Streamline dynamic Eloquent query filtering with seamless API request integration and advanced caching strategies.

19226.1k](/packages/jerome-filterable)[calebdw/laravel-sql-entities

Manage SQL entities in Laravel with ease.

301.3k](/packages/calebdw-laravel-sql-entities)

PHPackages © 2026

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