定制 dhii/bootstrap 二次开发

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

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

dhii/bootstrap

Composer 安装命令:

composer require dhii/bootstrap

包简介

Bootstraps a new Dhii project.

README 文档

README

Latest Stable Version

A bootstrap tool for quickly creating standard Dhii packages.

Phing is used to build your project files, based on project information provided during the bootstrapping phase, either through command line prompts or arguments.

  • Composer package info file
  • CS Fixer configuration file
  • PHPUnit configuration file
  • Convenient composer scripts for testing and fixing code standards
  • Travis configuration file
  • CodeClimate configuration file
  • Netbeans Project Info
  • License file
  • Changelog file
  • Readme file
  • Functional and unit test templates
  • Git repository info

Usage

Step 1. Cloning

Via Composer

Use composer's built-in create-project command, as follows:

composer create-project dhii/bootstrap my-project

This will create the my-project directory and download the bootstrap files.

Via PHPStorm

Go to File, then New Project. On the left-hand side, under PHP-Specific, choose Composer Project.

Enter the location of the project, including the name of the project as a directory name. For example: some/path/my-project.

Under package, search for dhii/bootstrap, select the search result and click Create.

PHPStorm will download the bootstrap files and automatically install its dependencies.

Step 2. Bootstrapping

From the newly created project directory simply invoke Phing, which should be installed locally to the project.

cd my-project
vendor/bin/phing

This will run in interactive mode, which will prompt you to enter information about the project. Information regarding the prompts can be found below.

Quiet Mode

You can invoke the bootstrapping process in quiet mode via the -Dquiet=true argument. This will make the script run silently without prompts but also requires you to pass the values of the prompts as command arguments, prefixed with -D. For example:

vendor/bin/phing -Dquiet=true -Dcomposer.vendor=dhii -Dcomposer.name=my-project -Dorganization="Dhii Team"...

Properties

Name Description Default
project.name The human-readable name of the project. A human-readable version of the project's directory name.
organization The name of the organization that owns the package. Used in the license and readme files. "Dhii"
composer.vendor The vendor name of the Composer package. "dhii"
composer.name The key-like name of the Composer package. The project's directory name.
composer.desc The description of the Composer package. None
composer.type The Composer package type. "library"
composer.author The name of the author of the Composer package. "Dhii Team"
composer.email The email of the author of the Composer package. "development@dhii.co"
composer.license The license of the Composer package (currently only MIT and GPL-3.0 are supported) "MIT"
composer.minstab The "minimum-stability" for the Composer package. "dev"
composer.phpver The PHP version constraint for the Composer package. "^5.4 | ^7.0"
composer.autoload.dir The directory from which to autoload classes. "src"
autoload.ns The namespace to use in autoloading. A\B, where A and B are the the camel-case versions of the composer.vendor and project.name respectively.
git.remote The URL of the Git remote repository. "https://github.com/<composer.vendor>/<composer.name>"

For more information about these properties, take a peek inside the build.xml file.

Known Issues

  • Due to a Composer bug it is currently not possible to automatically invoke phing after project creation.

dhii/bootstrap 适用场景与选型建议

dhii/bootstrap 是一款 基于 PHP 开发的 Composer 扩展包,目前已累计 228 次下载、GitHub Stars 达 0, 最近一次更新时间为 2017 年 07 月 07 日, 在 PHP 生态内属于活跃度较高的组件。

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

围绕 dhii/bootstrap 我们能提供哪些服务?
定制开发 / 二次开发

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

BUG 修复 & 性能优化

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

项目外包 & 长期维护

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

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

统计信息

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

GitHub 信息

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

其他信息

  • 授权协议: MIT
  • 更新时间: 2017-07-07