定制 iqual/project-scaffold 二次开发

按需修改功能、优化性能、对接业务系统,提供一站式技术支持

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

iqual/project-scaffold

Composer 安装命令:

composer require iqual/project-scaffold

包简介

Interactive project scaffolding and initializing.

README 文档

README

This Composer plugin provides the ability to add and update project scaffolding files in your project.

Using this plugin it is possible to manage scaffolding files in a composer project. The scaffolding files can be located in a separate composer package which can define assets to be added, replaced or merged into the project. When such a project asset package is added to a project interactively, including on project creation (with composer create-project) and during composer updates, the user can be prompted questions to fill in variables which can then be used for dynamically templated scaffolding assets.

The idea behind the plugin being, that git-commited project files which are essential to the development experience (e.g. .lando.yml, .devcontainer, .ddev, .env, etc.) or repository (e.g. README.md, .gitignore, .github/workflows, etc.) can be managed with composer. This allows centrally managing and codifying generic project templates. While composer allows creating new project from an existing package using composer create-project this adds the capability of making the bootstrapping interactive with support for templating and also adds the ability to update existing projects.

This plugin is heavily inspired by Drupal's drupal/core-composer-scaffold reusing some of it's code for a more "general" approach to the scaffolding issue. Credit to the contributors on that project. Similar approaches that are standalone tools include Phabalicious or Phint.

Quick Start 🚀

Require the Project Scaffold Plugin with composer in your project and allowing the plugin. It is recommended to only require the plugin as development dependency.

composer require iqual/project-scaffold --dev

To manage project scaffolding one (or more) composer package containing the assets has to be required. Once the plugin is required, the user will be prompted (if in an interactive CLI) for questions defined by the package. The answers will then be saved to the extra.project-scaffold section of the root project's composer.json. Once all required variables are available the assets will then be managed by the Project Scaffold Plugin according to the asset package's assets definition.

See Creating a project asset package for a guide on how to create a project asset package.

Features ⭐

  • Scaffolding new projects (i.e. initializing or bootstrapping)
  • Interactive prompts during project creation or during updates
  • Updating existing project assets or composer projects
  • Managing project assets in separate versioned packages
  • Managing your environment with copmoser
  • Adding, replacing (including deletion) and merging of assets
  • Templating assets based on variables using twig
  • Saving project variables in extra.project-scaffold of the project's composer file
  • Automating project scaffolding using composer (e.g. composer update in your CI)

Commands ⚡

To initialize a new project (i.e. always prompting for package questions) use:

composer project:init

To update an existing project by prompting for the package questions again, and re-applying the scaffolding, use:

composer project:update

To (re-)apply the project scaffold from all asset packages use:

composer project:scaffold

Documentation 📕

iqual/project-scaffold 适用场景与选型建议

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

它主要适用于以下技术方向: 「bootstrap」 「template」 「scaffold」 「kickstart」 「init」 等业务场景。在实际项目中,围绕这些方向常见需要落地的问题包括:接口对接、性能调优、并发安全、与既有框架(Laravel / ThinkPHP / Yii / Webman 等)的兼容适配,以及生产环境的日志埋点与稳定性保障。

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

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

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

BUG 修复 & 性能优化

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

项目外包 & 长期维护

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

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

统计信息

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

GitHub 信息

  • Stars: 2
  • Watchers: 3
  • Forks: 0
  • 开发语言: PHP

其他信息

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