Drupal Planet

Drupal AI Initiative: Drupal AI Summit Paris 2026: Session Recap & Slide Decks

Returning to Paris for its second consecutive year and doubling in size, the Drupal AI Summit brought together end customers, digital agencies, and consultancies actively implementing artificial intelligence solutions.

Speakers, including Drupal AI leaders, Drupal core maintainers, and agency leaders from across Europe, shared real-world enterprise case studies, research on emerging models and agentic techniques, and upcoming innovations in the Drupal AI ecosystem.

The summit anchored the opening day of Future of Software Technologies (FOST), a major three-day conference bringing together over 25 independent technology events, 300+ sessions, and more than 5,000 delegates exploring APIs, AI, agents, cybersecurity, and modern digital infrastructure.

Explore the session lineup below to access the speaker slide decks:

To find details of our upcoming events and webinars, visit drupal.org/ai/events.

Upcoming Webinar: AI Governance for Higher Ed & Public Sector

Join us on Wednesday, December 9, 2026 at 10:00 am Eastern for a practical conversation with the authors of From Policy to Deployment: AI Governance for Institutional Websites. Learn how to assess AI use on your website, decide what safeguards it needs, and know when it is ready to launch. Register at new.drupal.org/ai/ai-governance-webinar.

joshics.in: Beyond the Keynote: Fixing Drupal's Update, Recipe, Product, and Funding Gaps

Beyond the Keynote: Fixing Drupal's Update, Recipe, Product, and Funding Gaps bhavinhjoshi 02/12/2026

Drupal 12 is days away, and Drupal 10 reaches end of life on December 9, 2026. After nearly two decades of architecting and maintaining Drupal platforms since Drupal 5, I still believe Drupal remains one of the strongest structured-content engines in open source.

Reported installations running Drupal 8 or newer actually grew roughly 12.2% over the past year, climbing from 469,925 to 527,443 sites. That momentum is exactly why it is worth talking plainly about the four hard problems that rarely make it onto keynote slides.

None of these gaps are hidden. They sit in plain sight across core issue queues, public service announcements, and Drupal Association board reports. Pointing out cracks is easy, below is an honest breakdown of all four unfinished problems alongside practical engineering and governance fixes the ecosystem can actually ship.

Update (December 2, 2026): On December 1, Drupal Association Interim CEO Tiffany Farriss published In the Open: A bridge to 2027, acknowledging widespread exhaustion from the cadence of security updates, outlining a shift to a reimagined Drupal Certified Program to cover baseline operational costs, and opening early grant-seeking conversations for a new Security and Workflows initiative. That announcement makes fixing these four underlying structural gaps even more urgent.

01

Eight Years In, Core Still Cannot Update Itself

The Automatic Updates initiative launched in September 2018 to eliminate Drupal's biggest day-two adoption barrier: site owners should not need Composer, SSH, and a senior developer just to apply a routine security patch.

Where things stand today:

  • With 12.0.0-rc1 already tagged, Automatic Updates is still not in core. It remains a contributed module (drupal/automatic_updates) built on top of core's experimental Package Manager API.
  • Unattended updates remain off by default, major-version upgrades and multisites are unsupported, and in-place updates cannot run on immutable-filesystem enterprise hosts like Acquia or Pantheon.
  • Meanwhile, PSA-2026-11-02 (November 2, 2026) reduced core minor-release security coverage from 12 months down to 8 months starting with Drupal 11.5 and 12.0. Site owners now face faster forced upgrade cycles on a platform that still expects CLI workflows.

How to fix it: Stop trying to solve shared hosting and enterprise CI/CD with one mechanism. Split the update architecture by deployment reality:

  • Writable & small-team hosting: Ship an official, cryptographically signed atomic artifact-swap updater using pre-built release bundles, mandatory pre-flight database and filesystem snapshots, and one-click rollback—no Composer memory ceilings required.
  • Immutable enterprise hosting: Accept that read-only production filesystems should never update in place. Ship an official, standardized CI bot (GitHub Actions and GitLab CI templates) that automatically opens tested Composer security pull requests on release day.
  • Tie support windows to tooling reality: Pair shorter 8-month minor cycles with effortless automated updates, or offer a funded Long-Term Support track so maintenance pressure does not accelerate migrations away from Drupal.

02

Project Browser Exited Core, and Recipes Lack a Day-Two Lifecycle

Recipes were introduced to replace fragile distributions with composable, lock-in-free configuration. Right as Drupal 12 ships, however, the assembly story is showing clear operational cracks.

Where things stand today:

  • Core issue #3628805 removed the Project Browser Initiative from core's MAINTAINERS.txt, keeping it outside core as a contributed piece bundled mainly for Drupal CMS.
  • Recipes remain largely "apply and forget." Core issue #3607162 (opened June 2026 and still under review) is still debating how an unpacked recipe's version should even be recorded without unexpectedly mutating local composer.json files. Clean recipe upgrades and safe uninstalls after local edits remain unsolved.
  • Core removed the article and page content types from the standard profile and recipes (#3587118) and deprecated text_with_summary out of core for Drupal 12 (change record #3568381), forcing downstream ecosystems like Commerce and ECA to scramble around broken assumptions.

How to fix it: Treat Recipes like real software dependencies, not one-off install scripts:

  • Ship a dedicated Recipe Lockfile & Config Ledger: Record applied recipe names, versions, and config ownership hashes in a separate machine-readable manifest (keeping local composer.json untouched). Pair it with a three-way config diff so teams can inspect local vs. upstream changes before upgrading or rolling back a recipe.
  • Adopt a "No Orphaned Removal" policy: Before core removes foundational recipes or field plugins such as article_content_type, page_content_type, or text_with_summary, publish an official, jointly maintained contrib package under the drupal/ namespace first so downstream modules do not fragment into incompatible copies.

03

The "Ambitious Site Builder" Split Created Two Products on Half the Budget

External CMS market-share tracking shows Drupal's overall share has fallen roughly 82% since 2015 as small businesses migrated to managed SaaS platforms. For a decade, Drupal has tried to win back non-developer site builders without losing enterprise engineering teams.

Where things stand today:

  • Layering Drupal CMS on top of Drupal Core doubled the engineering, documentation, and marketing surface area the ecosystem has to support.
  • The two tracks pull in opposite directions: Core keeps getting leaner and more developer-centric (stripping default content types and shortening minor security windows), while Drupal CMS tries to wrap that same Composer and YAML engine in recipes, visual builders, and AI wizards.
  • New adopters still collide with the underlying complexity the moment an update fails or a recipe conflicts with a custom field.

How to fix it: Draw a clean, honest architectural boundary between the engine and the product:

  • Keep Drupal Core boring and rock-solid: Core's mandate should be API stability, predictable upgrades, security longevity, and raw performance—not absorbing short-term consumer UX churn.
  • Run Drupal CMS as a strictly versioned downstream product: Have Drupal CMS consume Core through stable APIs and ship a single, batteries-included release artifact with pre-tested updates, so mid-market teams never have to untangle Core vs. Drupal CMS vs. Composer unpack plugins on day one.

04

Drupal.org Infrastructure Still Has No Working Business Model

Credit belongs to the Drupal Association for publishing uncomfortable numbers openly in its August 2026 Audit and Financial Overview. The figures leave no room for wishful thinking.

Where things stand today:

  • The DA missed its strategic goal of tripling revenue from $3.49M in 2022 to $10.5M by 2026. Its 2024 deficit was restated downward in July 2026 from $570,000 to $923,000, and 2025 became the first year since 2019 reserves dipped below the three-month policy floor.
  • Between 2022 and 2025, the share of Drupal.org costs covered by DrupalCon surpluses collapsed from 76% to 11%. Donated services-in-trade now cover 48% ($1.01M), while general operating revenue absorbs 41% ($859K, up from $56.8K in 2022).
  • Leadership candidly noted that publishing the full measurable cost of running Drupal.org would be the first time anyone—including the board—had seen that complete figure.

How to fix it: Replace conference-dependent charity with procurement-friendly infrastructure rails:

  • Publish line-item infrastructure costs for direct enterprise sponsorship: Governments, universities, and corporations struggle to justify vague donations, but procurement teams can approve an annual operational line item funding measurable security triage, Composer endpoints, or CI runners.
  • Launch an official, opt-in Extended Security Assurance program: Keep Drupal Core 100% GPL and free forever, while offering an official DA-backed extended-support subscription for enterprises that want 24-month minor coverage instead of scrambling every 8 months. Route net revenue directly into paid security maintainers and Drupal.org operations.
  • Retire custom Drupal.org glue aggressively: Keep consolidating onto standard GitLab and Composer infrastructure so fixed maintenance debt shrinks every year instead of compounding.

"Drupal is free. The code of Drupal is free forever. But those of us who run Drupal know that running Drupal has never been free."

Tiffany Farriss, Interim CEO, Drupal Association (In the Open, October 2026) At a Glance: Four Unfinished Gaps and Practical Remedies Gap Current Reality (Dec 2026) Practical Fix Core Updates & Support Automatic Updates still in contrib after 8 years; minor security window cut to 8 months (PSA-2026-11-02). Split atomic artifact-swap updates (writable hosts) from official CI security PR bots (immutable hosts). Recipes & Extensions Project Browser removed from core MAINTAINERS.txt; recipes lack upgrade/uninstall lifecycle and version tracking (#3607162). Add a dedicated recipe lockfile with three-way config diffs; enforce a "No Orphaned Removal" rule for core packages. Core vs. Drupal CMS Two products sharing one strained budget and conflicting UX vs. framework priorities. Keep Core strictly a stable enterprise framework; ship Drupal CMS as an opinionated downstream release artifact. Drupal.org Funding DrupalCon surplus share fell from 76% to 11%; $923K restated 2024 deficit; reserves under 3-month floor. Publish full infra costs for procurement-ready sponsorship and offer opt-in DA-backed Extended Security Assurance. Where We Go From Here

None of these problems exist because the Drupal community lacks engineering talent or commitment. They exist because Drupal is trying to carry enterprise-grade software architecture, consumer site-building ambitions, and global open-source infrastructure on a governance and funding structure built fifteen years ago.

Drupal 12 gives the ecosystem a clean milestone to stop papering over those tensions. Fix the day-two update story for real hosting environments, give Recipes a real lifecycle, keep the contract between Core and Drupal CMS sharp, and put Drupal.org on a funding model that matches the scale of the organizations relying on it.

If you maintain Drupal in production or contribute to core and contrib, where do you agree, where do you think this misses the mark, and which of these four gaps would you fix first?

Bhavin Joshi is Co-Founder and CTO at Joshi Consultancy Services and has been architecting enterprise Drupal platforms since Drupal 5.

02/12/2026 Changed 02/12/2026 Drupal Drupal Planet Drupal 12 Open Source Software Architecture Share this Add new comment

Omega8.cc: Changing Lanes, Not Cars

More Drupal sites report Drupal 11 than Drupal 10 now, 316,801 against 208,688 in the usage table of drupal.org for the week of 22 November, and on Wednesday 9 December 2026 Drupal 10 reaches its end of life, in the week when Drupal 12.0 and 11.5 are due. On BOA, our hosting stack around the Ægir control panel, the move to Drupal 11 is one Upgrade task with a copy to go back to, and for a platform which the panel built with Composer the same dialog can build the Drupal 11 platform first. A site needs Drupal 10.3 or newer for it (18,098 sites still report less, and a 10.1 which we sent the short way on a test server ended in maintenance mode) and a home for six modules which left core. After the move the calendar gets simpler: from 2027 a new minor comes about every six months with two months to move, a rhythm these tasks are made for, and Drupal 11 itself is covered until December 2028.

Freelock Blog: Rent Everything, They Said: How to Avoid Vendor Lock-In

Rent Everything, They Said: How to Avoid Vendor Lock-In Image Anonymous (not verified) Tue, 12/01/2026 - 09:00 Door image All aboard You don't have to run everything yourself. Here's how to avoid vendor lock-in by keeping control of what would be hardest to move, plus three questions to ask before you renew. Year Advent 2026 - 24 days of owning your platform

Drupal Association blog: In the Open: A bridge to 2027

In the Open is a weekly series from Drupal Association Interim CEO Tiffany Farriss, sharing what she is hearing across the Drupal community and where the Association is headed. In this episode: Giving Tuesday, how the new Drupal Certified Program will cover the Association's ongoing operational costs, and early work on a possible initiative around security and workflows.

In this time, the most scarce resource any of us have is our attention.

The following is a transcript of Tiffany's remarks, lightly edited for readability.

Giving Tuesday

It's Giving Tuesday here in the US, and if you're listening to this, I would ask that you consider the Drupal Association in your giving plans this year. Every single gift, no matter its size, is part of the foundation that makes all of Drupal possible.

I'm Tiffany Farriss, the interim CEO of the Drupal Association, and this is In the Open, my regular update on the DA and Drupal as we navigate this time of change.

A bridge to sustainable models

In my last update, I talked a lot about Drupal.org and where we are, where we're going, and its chronic underfunding. And I made an appeal for gifts that could help us to accelerate that work that's already in progress.

Individual gifts like Ripple Maker gifts or end-of-year donations are going to help us be a bridge. They'll become a bridge to the new sustainable models that we're putting into place for 2027.

The way we're reimagining the Drupal Certified Partner Program into the Drupal Certified Program will allow us to start to cover those operational needs, both for the DA and for the project, as ongoing operational costs. Everything from our collaboration infrastructure, to packaging, to the website, and all those essential operational roles are intended to be covered on this ongoing basis.

That allows us to stabilize our baseline operations, and it's structured as a way to understand what our keep-the-lights-on costs are.

More than keeping the lights on

But you and I know it's not enough to just keep the lights on. It never has been for Drupal. We have big ambitions and big plans, and it would be remiss of me to not acknowledge this moment that we're in.

Everyone is exhausted. The near constant cadence of security updates across Drupal and all of our upstream dependencies is taking a toll on everybody, whether you're a member of the core team or the security team, a module maintainer, or an end user who's maintaining your own sites.

Where our attention matters most

In this time, the most scarce resource any of us have is our attention, and what I'm trying to think about is how we might evolve our workflows so that the community can concentrate our human attention where it matters most, and site owners and users can reliably trust that we're doing that.

This isn't just an operational need. This is a transformational need.

So it's important for me, while I'm here trying to think about our daily infrastructure and how we shore up those ongoing costs, that I also be really thinking about how Drupal responds to this moment, this broader moment within all of technology, and how we want to work moving forward.

Toward a security and workflows initiative

Drupal has patterns for this, of course. We have patterns for everything, and we think about these things through initiatives. So right now, I think it might be time for an initiative to think about security and workflows moving forward.

I've already had a couple calls on it as I record this this morning. We're actively having conversations, both ideating around what that future might look like and what our needs might be, and grant-seeking. So it's a discovery process for us around what that future might need to look like, what pieces we might need to put in place, and how we might start to test and pilot such a thing.

I'm having conversations with grant funders. I'm having conversations with other open source projects, because this moment, this need, isn't unique to Drupal, so I'm very interested in the ways in which we can solve it with others.

That scoping, that discovery, those preliminary funding conversations, that's underway now, and I do think that's going to continue to be a focus for me and for the Association and the broader community into 2027.

How you can help

As we start to close out 2026, I do want to let you know how you can help.

Any individual recurring gift at drupal.org/donate directly helps us with that operational foundation I talked about. If you are feeling deep gratitude for the security team and the work that they do, you can donate to them and their infrastructure work directly at drupal.org/security-team/donate. 

But also, if you have any connection with folks who might like to fund that work around reimagining the infrastructure and security processes around Drupal, please let me know. If it's your company, or you have contacts in any of the broader firms who might be interested in underwriting it, please let me know. I think this is a great time for Drupal's ambition and Drupal's innovation to lead the way in that conversation.

I'm available on Drupal Slack at @farriss, on LinkedIn as Tiffany Farriss, or always through drupal.org/contact.

Follow the conversation

New episodes of In the Open publish each week. Subscribe on the Drupal Association YouTube channel to follow along.

With thanks to Stephen Cross of Second Signal Media for producing this series.

Kevinquillen.com: Deploying Drupal

My second book, Deploying Drupal, arrives December 15, 2026. It follows a change from your local DDEV environment through GitHub Actions and into production, with checks along the way to help you ship with confidence.

Centarro: Drupal Commerce vs. WooCommerce

WooCommerce is a free plugin for WordPress. There’s no platform transaction fees, you own your code and data, and you get the web’s most familiar publishing tools and a developer pool so large you could fill a stadium with freelancers. If you already run a WordPress site and just want to sell a few products, it's a sensible choice.

But there’s a catch. WooCommerce turns a publishing platform into a store, and nearly everything beyond the basics arrives as a separate plugin, and usually as a paid plugin. Subscriptions, wholesale pricing, quotes, memberships, multi-currency and more all come with their own vendors, data models, release schedules, and license fees. Imagine trying to build a house where each room was planned and built by a different contractor. Good luck getting all the hallways to line up.

Drupal Commerce is also open source and also free. The real difference is the foundation. Drupal Commerce is a commerce framework built on Drupal's field-based entity system, which was designed to model whatever structured data a business needs. Products, orders, customers, price lists, and workflows share the same APIs, the same permissions, and the same storage patterns. 

eCommerce as a use case simply fits Drupal better.

Read more

Omega8.cc: Cheers, Ægir!

Ægir, the open source hosting system for Drupal, got its first commit on 7 December 2007, so on Monday it is nineteen years old. For the birthday we built it a site, cheers.aegir.us, and did the counting properly: 33 public repositories cloned fresh from drupal.org, GitLab and GitHub and every commit counted once, 39,903 changes in the end, by 158 people and one team. There is a timeline of forty dated entries, each tied to a commit, a tag or a page which records it, the charts (not one empty month in 228, Thursday the busiest day, a record of June 2010 which stood for sixteen years) and a picture of the work passing from hand to hand since Adrian Rossouw's first years. And if you ever committed to Ægir, under your full name or a nickname of the CVS years, you are on the wall of names.

Matt Glaman: Where max-age stops in Drupal

Dynamic Page Cache respects max-age. Internal Page Cache and the Cache-Control header your CDN reads don't. Here's how to keep Dynamic Page Cache working and give pages a real lifetime.

DrupalEasy: Cite for More Eyes

As part of my never-ending effort to keep on top of things going on in the community, I talk to a lot of folks and I read a lot of articles and blog posts about Drupal. 

Some of what I learn I post daily on various social media accounts (I'll leave a list at the bottom of this post) and sometimes there are some really good quotes that I wish I could give a larger platform to - this blog post is just that: my chance to highlight some of the cool things I've heard and read about Drupal over the past few months that have stuck with me, and I hope will get some more play. 

"Drupal 12 Is a Release About Subtraction"

I couldn't agree more with this title of a blog post by Martin Anderson-Clutz. So much has been removed including modules Migrate Drupal, Migrate UI, Search, Shortcut and themes Claro and Olivero as well as .module files, some default views, and ~10,000 lines of code just by moving to constructor property promotion.

"...it recorded more than 217,000 credits for more than 14,000 people"

Drupal's contribution credit system is one-of-a-kind in the open-source world and we should talk about it more often.

"From June through October 2026, Drupal published 256 security advisories."

In case you weren't paying attention, that's a lot. 

"I expect the technical work of moving a website from one platform to another to cost close to zero."

Uhhh - but doesn't part of our ecosystem depend on this type of work? Dries explains.

"Drupal core's static analysis with PHPStan now runs at level 3. It was previously running at level 1."

Even if you're not a coder, this is a big deal, IMHO.

"AI is good at the unglamorous parts of review"

Very few people enjoy the grunt work; let AI do it for you. 

Need help learning how? Check out our AI Inside Drupal Essentials class.

"ASH has made these slides just amazing, every year. Honestly, I've no idea how they knock it out of the park every time."

Indeed, the best part of the Driesnote is the slides (no offense, Dries!)

"Drupal is light-years ahead of its reputation"

Ok, I'll throw Dries a bone here - this might be my favorite quote from the past few months - a frustrating truth!

Interested in a sometimes-opinionated daily dose of Drupal? Follow me on:

Or, follow the any of the official DrupalEasy accounts listed in the footer below.

Not a single word in this blog post was written or edited by AI.

Stuart Clark (Deciphered): Vale (for Drupal) 1.1.0: prose checks while you type

I've been keeping an eye on Vale's progress for a while, and when I saw its new WebAssembly build I knew I had to bring it to Drupal.

So I did. In 1.1.0, findings from your site's style guide appear in CKEditor while your editors are still writing, underlined the way a spelling mistake would be. That's game-changer below, one of the AI tells I lint every post on this site against.

In the five weeks since 1.0.0 it has also learnt to check each translation in its own language, and the text in Drupal Canvas pages.

Vale 3.26.0 ships the CLI's own engine as WebAssembly, and 1.1.0 runs it in a Web Worker beside the editor with your site's .vale.ini and styles. It checks once you stop typing, using the same settings a save does.

Continue reading →

Morpht: DrupalSouth Community Day 2026 wrap-up

What mattered at DrupalSouth Community Day 2026, from 19 recorded talks: the keynotes, the moments worth watching, the themes, the tools, where people disagreed, and what it means for each audience.

DDEV Blog: Video Uploads in DDEV: FFmpeg, Upload Limits, and a Transcode Worker

A site that takes video uploads, whether through a Drupal media field, a WordPress plugin, or a Laravel app, needs FFmpeg for poster images and for transcoding. Phone uploads make the transcode necessary. iPhones record HEVC unless the camera is switched to "Most Compatible" (Apple's notes), and browser support for HEVC depends on the operating system and the hardware: Can I use lists it as partial in Chrome, Edge, and Firefox. H.264 in an MP4 plays in every current browser.

I set this up in a DDEV php project to see what it takes locally: FFmpeg in the web container, uploads larger than 100 MB, and a transcode that doesn't hold the upload request open. Everything below ran on DDEV v1.25.5, and again on v1.25.6, with Colima on an Apple Silicon Mac. The test file was a 90-second, 143 MB, 1080p HEVC clip.

Add FFmpeg to the Web Container

FFmpeg is a Debian package, so webimage_extra_packages is all it takes:

ddev config --webimage-extra-packages=ffmpeg ddev restart ddev exec ffmpeg -version ffmpeg version 7.1.5-0+deb13u1 Copyright (c) 2000-2026 the FFmpeg developers

DDEV builds a project-specific web image with the package added. The first ddev restart took about two minutes while it built, and the image grew from 1.88 GB to 2.41 GB. Later restarts reuse it.

The version is the one Debian 13 ships, so it changes when DDEV moves to a new Debian release, not when FFmpeg releases. Debian's build includes libx264, libx265, libvpx-vp9, libsvtav1, libopus, and FFmpeg's own aac encoder, but not libfdk_aac, which is non-free. If production runs a different build, check that the encoders your code uses exist in both:

ddev exec "ffmpeg -hide_banner -encoders | grep -E 'libx264|aac'" Raise the Upload Limit

DDEV's PHP-FPM accepts uploads up to 100 MB: upload_max_filesize and post_max_size are both 100M. Above that, PHP drops the file before your code runs. $_FILES is empty, and ddev logs shows:

PHP Warning: PHP Request Startup: POST Content-Length of 142710582 bytes exceeds the limit of 104857600 bytes in Unknown on line 0

Check these values from a web request with ini_get() or phpinfo(), not with ddev exec php -i, which reports the CLI's settings. Raise both in a file in .ddev/php/:

; .ddev/php/video-uploads.ini upload_max_filesize = 2G post_max_size = 2G

Then run ddev restart. Nothing else needed changing: DDEV's nginx sets client_max_body_size 0, which means no limit, its fastcgi_read_timeout is 10 minutes, and PHP-FPM's max_execution_time is 600 seconds.

Keep Uploads Out of Mutagen

With Mutagen enabled, the project lives in a volume inside Docker and is synced to your disk, so every upload written in the container gets copied back to the host. ddev start warns about this for a php project with no upload_dirs. Directories listed in upload_dirs are bind-mounted instead and left out of the sync.

I used two: public/videos for the transcoded files the browser loads, and private for the originals, outside the docroot. The paths are relative to the docroot:

ddev config --upload-dirs=videos,../private ddev mutagen reset ddev start

Setting upload_dirs replaces the defaults DDEV uses for your CMS, so on Drupal, list sites/default/files along with any directory you add.

Transcode Outside the Upload Request

Transcoding the test clip to H.264 took 22 to 25 seconds with Colima set to 4 CPUs and nothing else running on the Mac, about a quarter of the clip's length. In earlier runs, while other jobs had the CPUs, the same encode took 82 to 145 seconds, around real time. The container can't use the Mac's hardware encoder, so the encode runs on the CPUs Docker has and slows down with everything else on the machine. At the slower rate, a 10-minute phone video would run past the 10-minute fastcgi_read_timeout, and even at the faster one it would keep a PHP-FPM worker and the browser waiting for minutes, so the upload request should only save the file.

public/upload.php accepts a few video extensions and saves the original in private/incoming:

<?php // Saves an uploaded video to private/incoming, outside the docroot, for the worker. header('Content-Type: application/json'); $file = $_FILES['video'] ?? null; if ($file === null || $file['error'] !== UPLOAD_ERR_OK) { http_response_code(400); echo json_encode(['error' => $file['error'] ?? 'no file received']); exit; } $ext = strtolower(pathinfo($file['name'], PATHINFO_EXTENSION)); if (!in_array($ext, ['mov', 'mp4', 'm4v', 'webm', 'mkv'], true)) { http_response_code(415); echo json_encode(['error' => "unsupported extension: $ext"]); exit; } $incoming = dirname(__DIR__) . '/private/incoming'; is_dir($incoming) || mkdir($incoming, 0775, true); $name = bin2hex(random_bytes(8)) . ".$ext"; // move_uploaded_file() copies across filesystems, so write a dotfile the // worker skips, then rename it, which is atomic within one directory. move_uploaded_file($file['tmp_name'], "$incoming/.$name"); rename("$incoming/.$name", "$incoming/$name"); echo json_encode(['queued' => $name, 'bytes' => $file['size']]);

The dotfile is there because PHP's temporary upload directory and the bind-mounted private directory are different filesystems. move_uploaded_file() can't rename a file from one to the other, so it copies it, and a worker that polls the directory could open a half-written file.

bin/transcode-worker.php polls private/incoming, writes an MP4 and a poster JPEG to public/videos, and moves anything FFmpeg can't read to private/failed:

<?php // Turns each upload in private/incoming into an H.264 MP4 and a poster JPEG. $root = dirname(__DIR__); $incoming = "$root/private/incoming"; $failed = "$root/private/failed"; $videos = "$root/public/videos"; foreach ([$incoming, $failed, $videos] as $dir) { is_dir($dir) || mkdir($dir, 0775, true); } while (true) { foreach (glob("$incoming/*") as $src) { $id = pathinfo($src, PATHINFO_FILENAME); $part = "$videos/.$id.mp4"; $start = microtime(true); $ok = run(['ffmpeg', '-hide_banner', '-loglevel', 'error', '-y', '-i', $src, '-c:v', 'libx264', '-preset', 'veryfast', '-crf', '23', '-pix_fmt', 'yuv420p', '-c:a', 'aac', '-b:a', '128k', '-movflags', '+faststart', $part]) && run(['ffmpeg', '-hide_banner', '-loglevel', 'error', '-y', '-ss', '1', '-i', $part, '-frames:v', '1', '-vf', 'scale=640:-2', "$videos/$id.jpg"]); if ($ok) { rename($part, "$videos/$id.mp4"); unlink($src); printf("transcoded %s in %.0fs\n", basename($src), microtime(true) - $start); } else { is_file($part) && unlink($part); rename($src, "$failed/" . basename($src)); echo 'failed ', basename($src), "\n"; } } sleep(2); } function run(array $cmd): bool { // An array command runs without a shell, so file names need no escaping. $proc = proc_open($cmd, [0 => ['file', '/dev/null', 'r'], 1 => STDOUT, 2 => STDERR], $pipes); return is_resource($proc) && proc_close($proc) === 0; }

-pix_fmt yuv420p keeps the output at 8-bit 4:2:0, which most H.264 profiles use. Without it, a 10-bit source comes out as H.264 High 10: a 10-bit HEVC test clip transcoded without the option gave profile=High 10 in ffprobe. -movflags +faststart moves the MP4's index, the moov atom, ahead of the media data, so a browser can start playing before it has the whole file. My test upload had it at the end. To check a result:

ddev exec "ffprobe -v trace -i public/videos/91df5790335e596b.mp4 2>&1 | grep -o \"type:'\(moov\|mdat\)'\" | head -2" type:'moov' type:'mdat' Run the Worker With web_extra_daemons

web_extra_daemons adds a program to supervisord in the web container, so the worker starts with the project and comes back if it exits. I kept it in its own file, .ddev/config.worker.yaml:

web_extra_daemons: - name: transcode-worker command: php bin/transcode-worker.php directory: /var/www/html

After ddev restart, ddev exec supervisorctl status lists webextradaemons:transcode-worker as RUNNING, and the worker's output, FFmpeg's errors included, shows up in ddev logs. This is the 143 MB clip and a text file renamed to .mov, uploaded together:

[mov,mp4,m4a,3gp,3g2,mj2 @ 0xc74721146d80] moov atom not found failed 5e10d56a47790141.mov transcoded 91df5790335e596b.mov in 26s

supervisord doesn't reload the worker when you edit it. Restart it with:

ddev exec supervisorctl restart webextradaemons:transcode-worker

A framework queue does the same job with retries and a record of what ran. Point command at php artisan queue:work in Laravel or php bin/console messenger:consume async in Symfony, and keep the FFmpeg call in the job.

Serve the Result

DDEV's router and nginx answer byte-range requests with no extra configuration, and Safari on iOS needs them to play video:

curl -sk -o /dev/null -D - -r 0-1023 https://vidlab2.ddev.site/videos/91df5790335e596b.mp4 HTTP/2 206 content-range: bytes 0-1023/110554096 content-type: video/mp4 content-length: 1024

The originals in private/ sit outside the docroot, so no URL reaches them and the web server can't serve them. An upload with an extension outside the list gets a 415 and never lands in private/incoming.

Limits
  • The encode uses the CPUs you give Docker. On a Mac, the container can't use VideoToolbox, so there is no hardware encoding.
  • One worker encodes one file at a time, and uploads wait their turn.
  • Each project that adds FFmpeg builds its own web image, about 540 MB larger here.
  • The worker trusts FFmpeg to reject a file that isn't video. A server that takes uploads from the public also needs a size limit per user and a check on the duration before it spends minutes of CPU on a file.
Try the Demo Project

Everything above is in a small demo project, markksantos/ddev-ffmpeg-video-uploads. Its index page is an upload form that lists the finished videos, and upload_dirs is set as described above. Clone it, run ddev start and ddev launch, and upload a phone video. The README shows how to check the result.

Issues are open on that repository. If the setup behaves differently for you, on another DDEV version, Docker provider, or operating system, or inside Drupal, WordPress, or Laravel, please open one with what you ran and what you saw.

Talking Drupal: Talking Drupal #580 - AI Readiness Index

Today we are talking about AI, if your site's ready, and how you might get it ready with guest Ivan Stegic. We'll also cover Drush 15 as our module of the week.

For show notes visit: https://www.talkingDrupal.com/580

Topics
  • AI Readiness Index Basics
  • How the Index Is Built
  • Four Pillars Reach Read Understand Act
  • Standards Feedback from Dries
  • Why No JavaScript for Agents
  • Edge Cases Web Components and Open Issues
  • AEO Versus SEO Workflows
  • Semantic HTML And Markdown
  • Bot Blocking Strategy Shift
  • AI Readiness Meets Human Delight
  • Common Fixes And Web Census
  • Airbot Testing And Caveats
  • Competition And Open Standards
  • MCP Endpoint And Automation
  • CMS Integrations Drupal Module
Resources Guests

Ivan Stegic - ten7.com ivanstegic

Hosts

Nic Laflin - nLighteneddevelopment.com nicxvan John Picozzi - epam.com johnpicozzi Steve Persch - stevector.com stevector

MOTW Correspondent

Martin Anderson-Clutz - mandclu.com mandclu

  • Brief description:
    • Have you ever wanted all your favorite Drush commands to run through the new CLI that ships with Drupal core? The new version of drush is built for that.
  • Module name/project name:
  • Drush
  • Brief history
    • How old: created in Nov 2006 by Arto Bendiken (Arto), and long maintained by Moshe Weitzman
    • Versions available: 13.8.1 is the latest tagged release; Drush 15 lives on the 15.x branch and works with Drupal 11.5+ and Drupal 12. There's no 14 — that branch is unsupported and won't be released
  • Maintainership
    • Actively maintained, latest release earlier this month, and commits to 15.x just days ago
    • Security coverage
    • Test coverage
    • Documentation: extensive, at drush.org, with a dedicated 15.x section
    • Number of open issues: around 410 open issues and 68 open PRs on GitHub
  • Usage stats:
    • Over 57 million installs on Packagist
  • Module features and usage
    • Drupal 11.4 and up ships with a Symfony Console app called Doctor, which you run on the command line as dr. It only has a handful of commands so far, like cron and install
    • Drush 15 throws its full weight behind Doctor: instead of being its own CLI, it registers nearly all of its commands with dr
    • So you composer require drush/drush ^15, and then dr deploy, dr updatedb, and most of your old friends just work
    • What's gone: the drush entrypoint itself, drush.yml config files, site aliases, and discovery of Drush-style commands in contrib and custom modules
    • Also dropped: lightly used command groups like migrate:, generate, sql:sync, core:rsync, views:, and field:*
    • Because 15 supports Drupal 11.5, you can "pre-upgrade" to it before you move to Drupal 12
    • Porting your own commands: the class moves to src/Command/, uses Symfony's #[AsCommand] attribute, and gets auto-discovered. No more drush.services.yml
    • Core encourages one class per command with an __invoke() method, with #[Argument], #[Option], and even #[Ask] for prompts, right on the parameters
    • Two gotchas: commands return Command::SUCCESS or FAILURE instead of the arrays Drush would auto-format, and the namespace must be your module name with hyphens, like my-module:hello
    • Keep commands thin and push the logic into a service — core's cron command is the model. And keep Drush 13 users happy with an empty wrapper class in your old Drush namespace that just extends the new one
    • The biggest change for ops folks: there's no equivalent to site aliases, and dr has no way to run commands on a remote host
    • If you're on Acquia, Pantheon, or Amazee, tools like Acquia CLI, Terminus, and the Lagoon CLI will cover a lot of that gap
    • But if you're self-hosting or on IaaS, losing @prod aliases — plus sql:sync and rsync — is a significant loss. The suggested alternatives are general tools like PSSH or Fabric, and Composer scripts or Task in place of drush.yml
    • Comparing Drush 15 to dr itself: they're both Symfony Console under the hood, and with Drush 15 installed you're calling the very same dr binary. The difference is that dr is the runner and discovery mechanism, owned by core, while Drush 15 is now essentially a command pack for it — supplying the commands core hasn't merged yet. The long-term plan is for those to land in core, and Drush to fade away

Pages