
Security News
RubyGems Adds Cooldown Feature to Bundler for Newly Published Gems
RubyGems and Bundler 4.0.13 introduced an opt-in cooldown feature that delays newly published gems during dependency resolution.
pdo-cfd1 is the Cloudflare D1 PDO driver extension used by php-wasm.
This package exists mainly so custom php-wasm builds can vendor and compile the pdo_cfd1 extension.
It does not ship a separate JavaScript entrypoint from this folder.
At runtime, support is enabled by passing Cloudflare D1 bindings into the PHP runtime.
pdo_cfd1 requires PHP 8.1 or newer.
Pass your Worker's D1 bindings into the cfd1 object when you construct the runtime.
Each key becomes a PDO target name inside PHP.
import { PhpWorker } from 'php-wasm/PhpWorker.mjs';
export default {
async fetch(request, env) {
const php = new PhpWorker({
version: '8.4',
cfd1: {
mainDb: env.mainDb,
},
});
await php.run(`<?php
$pdo = new PDO('cfd1:mainDb');
var_dump($pdo instanceof PDO);
`);
return new Response('ok');
},
};
Once the binding is present, use cfd1:<bindingName> as the DSN:
await php.run(`<?php
$pdo = new PDO('cfd1:mainDb');
$select = $pdo->prepare(
'SELECT PageTitle, PageContent FROM WikiPages WHERE PageTitle = ?'
);
$select->execute(['Home']);
$page = $select->fetch(PDO::FETCH_ASSOC);
var_dump($page);
`);
php-wasm runtimes that execute in a Cloudflare Worker-compatible environment.php-wasm packages do not import anything from this package directly.Enable the extension in .php-wasm-rc:
WITH_PDO_CFD1=1
Build-related variables:
WITH_PDO_CFD1: defaults to 0. Set it to 1 to compile the extension into a custom build.PDO_CFD1_DEV_PATH: optional local checkout used instead of cloning the upstream repository during the build.FAQs
PGlite connector for pdo & php-wasm.
We found that pdo-cfd1 demonstrated a healthy version release cadence and project activity because the last version was released less than a year ago. It has 1 open source maintainer collaborating on the project.
Did you know?

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Security News
RubyGems and Bundler 4.0.13 introduced an opt-in cooldown feature that delays newly published gems during dependency resolution.

Security News
pnpm 11.5 now recognizes npm staged publish approvals in release metadata, preventing those releases from being mistaken for lower-trust package publishes.

Security News
Federal audit finds NIST lacked a plan to clear the NVD backlog, wasted funds on duplicate work, and delayed use of CISA data.