iqual/drupal-platform 问题修复 & 功能扩展

解决BUG、新增功能、兼容多环境部署,快速响应你的开发需求

邮箱:yvsm@zunyunkeji.com | QQ:316430983 | 微信:yvsm316

iqual/drupal-platform

Composer 安装命令:

composer require iqual/drupal-platform

包简介

Project asset package for the iqual internal developer platform's Drupal integration.

README 文档

README

This package contains assets for scaffolding configuration files in a Drupal project. It is an "asset package" for the iqual/project-scaffold Composer plugin that can create new or updating existing projects with pre-defined assets.

The bundled assets are for the iqual internal developer platform's Drupal integration. It supports a DDEV setup using VS Code as IDE. Additionally it contains integrations for a remote deployment to Upsun (formerly Platform.sh) and CI/CD workflows for automation using GitHub Actions.

Platform Features

  • Local development environment with DDEV
  • VS Code IDE setup
  • Workflows for Drupal automation using GitHub Actions
  • Integration for deployment to Upsun (formerly Platform.sh)
  • Makefile commands for project and app tasks

Quick Start

Make sure to set up the iqual/project-scaffold Composer plugin first:

composer config --no-plugins allow-plugins.iqual/project-scaffold
composer config extra.project-scaffold --json {"allowed-packages":["iqual/drupal-platform"]}
composer require iqual/project-scaffold

Install the asset package, using:

composer require iqual/drupal-platform

Package Variables

During scaffolding it will prompt for package variables that are used when the files are being templated:

  • name: Code name of the project (e.g. iqual)
  • title: Title of the project (e.g. iqual AG)
  • url: URL to the current remote live deployment (e.g. https://www.iqual.ch)
  • drupal_spot: The drupal single point of truth for asset synchronization (e.g. main-bvxea6i)
  • runtime.php_version: PHP version of the platform (e.g. 8.3)
  • runtime.db_version: Database version of the platform (e.g. 10.6)
  • deployment: Remote deployment integration (e.g. platform.sh)

Check the documentation for a full list of the Drupal Platform's available package variables.

Managed Assets

List of files that are going to be managed in the destination project by this package.

Added Assets

Assets that are only added if it doesn't exist in the target yet:

Show structure of added assets
assets/add/
├── .platform
│   └── routes.yaml.twig
└── @web-root
    └── sites
        └── default
            ├── all.settings.php
            ├── local.services.yml
            └── local.settings.php.twig

Replaced Assets

Assets that are fully managed by the package and will be created if inexistent or otherwise overwritten in the target destination:

Show structure of replaced assets
assets/replace/
├── @app-root
│   ├── .environment.twig
│   ├── drush
│   │   ├── drush.yml
│   │   ├── platformsh_generate_drush_yml.php.twig
│   │   └── sites
│   │       └── self.site.yml.twig
│   ├── php.ini.twig
│   ├── phpcs.xml.dist
│   ├── phpstan.neon
│   ├── phpunit.xml.dist
│   └── resources
│       ├── build.sh.twig
│       ├── deploy.sh.twig
│       └── robots.txt.twig
├── .ddev
│   ├── .env.solr.twig
│   ├── commands
│   │   └── web
│   │       ├── lint
│   │       ├── phpcbf
│   │       ├── phpcs
│   │       ├── phpstan
│   │       └── phpunit
│   ├── config.solr.yaml.twig
│   ├── config.yaml.twig
│   ├── docker-compose.solr.yaml.twig
│   ├── homeadditions
│   │   └── .bash_aliases.twig
│   └── php
│       └── my-php.ini.twig
├── .editorconfig
├── .github
│   ├── actions
│   │   ├── install-local
│   │   │   └── action.yml.twig
│   │   └── upgrade
│   │       ├── rector.php
│   │       └── upgrader.sh
│   └── workflows
│       ├── config-pull.yml.twig
│       ├── phpcs.yml.twig
│       ├── phpunit-functional-testing.yml.twig
│       ├── phpunit-unit-testing.yml.twig
│       ├── testing.yml.twig
│       ├── update.yml.twig
│       ├── upgrade.yml.twig
│       └── visual-regression-testing.yml.twig
├── Makefile
├── README.md.twig
├── solr
│   └── site_search
│       └── conf
│           └── README.md.twig
├── .vscode
│   ├── extensions.json
│   ├── launch.json
│   ├── settings.json.twig
│   └── tasks.json
└── @web-root
    └── sites
        └── default
            ├── settings.php
            └── settings.platformsh.php.twig

Warning

These files should not be modified in a project anymore, since they will be overwritten by this package.

Merged Assets

Assets that will be merged into existing destination files or added if inexistent:

Show structure of merged assets
assets/merge/
├── .dockerignore
├── .env.twig
├── .env.visreg.twig
├── .gitattributes
├── .gitignore.twig
├── .platform
│   └── services.yaml.twig
├── .platform.app.yaml.twig
└── playwright-vrt.config.json.twig

Documentation

iqual/drupal-platform 适用场景与选型建议

iqual/drupal-platform 是一款 基于 Twig 开发的 Composer 扩展包,目前已累计 23k 次下载、GitHub Stars 达 0, 最近一次更新时间为 2023 年 02 月 21 日, 在 PHP 生态内属于活跃度较高的组件。

我们在过去多个企业项目中使用过 iqual/drupal-platform 或与其功能相近的方案,如果你在选型或落地过程中遇到问题,例如 版本兼容、二次改造、私有化封装、与内部系统对接、生产 BUG 排查,欢迎联系我们协助评估。

围绕 iqual/drupal-platform 我们能提供哪些服务?
定制开发 / 二次开发

基于 iqual/drupal-platform 在你已有业务上做功能扩展、字段裁剪、UI 适配、与内部账号 / 权限 / 日志系统的深度对接。

BUG 修复 & 性能优化

线上偶发问题、内存泄漏、慢查询、并发异常等排查修复;针对高流量场景做缓存、队列、索引层面的调优。

项目外包 & 长期维护

承接完整的项目从需求 → 设计 → 开发 → 上线 → 长期运维;也可按月提供技术保姆服务。

yvsm@zunyunkeji.com QQ:316430983 微信:yvsm316 西安尊云信息科技 · 专注 PHP / Go / 分布式系统研发

统计信息

  • 总下载量: 23k
  • 月度下载量: 0
  • 日度下载量: 0
  • 收藏数: 1
  • 点击次数: 1
  • 依赖项目数: 0
  • 推荐数: 0

GitHub 信息

  • Stars: 0
  • Watchers: 3
  • Forks: 0
  • 开发语言: Twig

其他信息

  • 授权协议: GPL-2.0-or-later
  • 更新时间: 2023-02-21