nextagencyio/drupal-cloud-project
Composer 安装命令:
composer create-project nextagencyio/drupal-cloud-project
包简介
Decoupled Drupal template with GraphQL, OAuth, and Next.js integration for headless CMS development
README 文档
README
Drupal 11 installation powering the headless backend for
decoupled.io. Custom dc_core install profile,
FrankenPHP-based Docker image, and a fly.toml for building + pushing
the image to Fly.io.
This repo is application code only. Provisioning of Fly tenant apps —
the orchestration that spins up a new Drupal site per customer — lives in
the decoupled-dashboard
repo under scripts/fly/. If you're looking for bin/provision-tenant.sh,
it moved there.
Stack
- Drupal 11 on PHP 8.5
- FrankenPHP (Caddy + PHP worker mode) — Dockerfile + Caddyfile in repo root
- PostgreSQL (Drupal runs on Postgres via
settings.platform.php) - APCu for hot cache bins via Drupal's chainedfast backend
- dc_core install profile (see
web/profiles/dc_core/)- Custom modules:
dc_chatbot,dc_config,dc_import,dc_mail,dc_puck,dc_revalidate - GraphQL Compose for headless API
- OAuth consumers auto-generated per install via
hook_install()
- Custom modules:
Local development
DDEV-based local dev (see .ddev/config.yaml):
ddev start ddev composer install ddev drush site:install dc_core -y
Building the Fly image
Every tenant on Fly pulls its image from the decoupled-drupal-frankenphp
Fly app's registry. To ship a new image:
fly deploy
This builds the FrankenPHP image on Fly's builder, pushes it to
registry.fly.io/decoupled-drupal-frankenphp, and redeploys the source app.
New tenants provisioned after this automatically pick up the new image
(the dashboard's provisioner resolves the current tag at create time).
Rolling the image out to existing tenants is the dashboard's
fly-fleet-deploy.yml GitHub Action — it loops over every tenant-* app
and fly deploys them against the new tag. Run from the dashboard repo.
Repository structure
Dockerfile FrankenPHP build
Caddyfile Caddy config (serves /app/web)
frankenphp-worker.php FrankenPHP worker bootstrap
fly.toml Fly config for the source app
composer.json Drupal + contrib dependencies
docker/
├── apcu.ini Enables APCu (shipped disabled in the image)
└── drupal-settings.php Committed settings.php shim
web/
├── profiles/
│ └── dc_core/ Install profile + custom modules
├── sites/
│ └── default/
│ ├── settings.platform.php Reads DATABASE_URL / HASH_SALT from env
│ └── settings.platformsh.php (legacy, unused on Fly)
└── ...
Requirements
- PHP 8.3+ (or DDEV, which brings its own). Production images run PHP 8.5 via
dunglas/frankenphp:1-php8.5. - Composer 2
flyctlfor deploying the source image to Fly- Drupal 11
License
GPL-2.0-or-later (same as Drupal core).
nextagencyio/drupal-cloud-project 适用场景与选型建议
nextagencyio/drupal-cloud-project 是一款 基于 PHP 开发的 Composer 扩展包,目前已累计 34 次下载、GitHub Stars 达 0, 最近一次更新时间为 2025 年 08 月 27 日, 在 PHP 生态内属于活跃度较高的组件。
它主要适用于以下技术方向: 「api」 「oauth」 「cms」 「drupal」 「headless」 「graphql」 等业务场景。在实际项目中,围绕这些方向常见需要落地的问题包括:接口对接、性能调优、并发安全、与既有框架(Laravel / ThinkPHP / Yii / Webman 等)的兼容适配,以及生产环境的日志埋点与稳定性保障。
我们在过去多个企业项目中使用过 nextagencyio/drupal-cloud-project 或与其功能相近的方案,如果你在选型或落地过程中遇到问题,例如 版本兼容、二次改造、私有化封装、与内部系统对接、生产 BUG 排查,欢迎联系我们协助评估。
基于 nextagencyio/drupal-cloud-project 在你已有业务上做功能扩展、字段裁剪、UI 适配、与内部账号 / 权限 / 日志系统的深度对接。
线上偶发问题、内存泄漏、慢查询、并发异常等排查修复;针对高流量场景做缓存、队列、索引层面的调优。
承接完整的项目从需求 → 设计 → 开发 → 上线 → 长期运维;也可按月提供技术保姆服务。
与 nextagencyio/drupal-cloud-project 相关的其它包
同方向 / 同关键字的高下载量 PHP Composer 包推荐,方便对比选型:
WeChat OAuth SDK
GraphQL authentication for your headless Craft CMS applications.
Ory-Hydra OAuth 2.0 Client Provider for The PHP League OAuth2-Client
Library for ORCID web services
Set Links with a specific language parameter
A lightweight and powerful OAuth 2.0 authorization and resource server library with support for all the core specification grants. This library will allow you to secure your API with OAuth and allow your applications users to approve apps that want to access their data from your API.
统计信息
- 总下载量: 34
- 月度下载量: 0
- 日度下载量: 0
- 收藏数: 0
- 点击次数: 20
- 依赖项目数: 0
- 推荐数: 0
其他信息
- 授权协议: GPL-2.0-or-later
- 更新时间: 2025-08-27