dappur/dapp
Composer 安装命令:
composer require dappur/dapp
包简介
dApp || The Command line interface for the Dappur PHP Framework
README 文档
README
This is the command line interface for the Dappur PHP Framework
Pre-Requisites
Composer - Dependency manager is required in order to use the Dappur PHP Framework. Installation Instructions
Phinx - Phinx is required in order to utilize the database migrations. It is recommended that you install Phinx globally via composer by running:
$ composer global require robmorgan/phinx
Installation
$ composer global require dappur/dapp
Usage
new
This command creates a new Dappur application in the specified folder using the composer create-project command.
- name - The folder name for your new appliciation.
- --theme -t (Optional) - Install a custom frontend theme from a git repo. Default:
git@github.com:dappur/theme-dappur.git - --dashboard -d (Optional) - Install a custom dashboard theme from a git repo. Default:
git@github.com:dappur/theme-AdminLTE.git - --vagrant (Optional) - If set, runs
vagrant upwhen installation is complete. Default:false
$ dapp new name (--theme=THEME_REPO --dashboard=THEME_REPO --vagrant)
theme
This command allows you to install official and custom themes from git repositories.
- url (Optional) - Git repo url for the theme that you wish to install. If no url is set, you will be presented a list of official themes to install.
- --download-only (Optional) - If set, the theme will be copied into the view folder, but the database will not be updated.
$ dapp theme (url --download-only)
controller
This command generated a new controller class in app/src/Controller as well as having the controller automatically added to the container dependencies with an entry in app/src/bootstrap/controllers.php
- name - The name of your controller class in
PascalCaseformat. This command also supports generating nested class names, i.e.NewController\SubController.
$ dapp controller name
app
This command generated a new App class template in app/src/App using the class name that you specify.
- name - The name of your class in
PascalCaseformat. This command also supports generating nested class names, i.e.NewController\SubController.
$ dapp app name
middleware
This command generated a new App class template in app/src/Middleware using the class name that you specify.
- name - The name of your class in
PascalCaseformat. This command also supports generating nested class names, i.e.MyMiddleware\SubMiddleware.
$ dapp middleware name
twigex
This command generated a new App class template in app/src/TwigExtensions using the class name that you specify.
- name - The name of your class in
PascalCaseformat. This command also supports generating nested class names, i.e.MainExtension\SubExtension.
$ dapp twigex name
server
This command launches an instance of PHP's built-in web server, php -S defaulted to port 8181.
- port (Optional) - Port to run the web server on. Default is 8181.
$ dapp server (port=PORT)
dappur/dapp 适用场景与选型建议
dappur/dapp 是一款 基于 PHP 开发的 Composer 扩展包,目前已累计 34 次下载、GitHub Stars 达 1, 最近一次更新时间为 2018 年 09 月 15 日, 在 PHP 生态内属于活跃度较高的组件。
它主要适用于以下技术方向: 「console」 「command」 「dappur」 等业务场景。在实际项目中,围绕这些方向常见需要落地的问题包括:接口对接、性能调优、并发安全、与既有框架(Laravel / ThinkPHP / Yii / Webman 等)的兼容适配,以及生产环境的日志埋点与稳定性保障。
我们在过去多个企业项目中使用过 dappur/dapp 或与其功能相近的方案,如果你在选型或落地过程中遇到问题,例如 版本兼容、二次改造、私有化封装、与内部系统对接、生产 BUG 排查,欢迎联系我们协助评估。
基于 dappur/dapp 在你已有业务上做功能扩展、字段裁剪、UI 适配、与内部账号 / 权限 / 日志系统的深度对接。
线上偶发问题、内存泄漏、慢查询、并发异常等排查修复;针对高流量场景做缓存、队列、索引层面的调优。
承接完整的项目从需求 → 设计 → 开发 → 上线 → 长期运维;也可按月提供技术保姆服务。
与 dappur/dapp 相关的其它包
同方向 / 同关键字的高下载量 PHP Composer 包推荐,方便对比选型:
This class provides you with an easy-to-use interface to progress bars.
A Wrapper for exec and it's results
Symfony bundle to monitor and execute commands
A Laravel package to retrieve data from Google Search Console
Additional artisan commands for Laravel
Shell command module for PHP.
统计信息
- 总下载量: 34
- 月度下载量: 0
- 日度下载量: 0
- 收藏数: 1
- 点击次数: 14
- 依赖项目数: 0
- 推荐数: 0
其他信息
- 授权协议: MIT
- 更新时间: 2018-09-15