harvest-media/web-app-starter
Composer 安装命令:
composer require harvest-media/web-app-starter
包简介
Yii2 PHP Web App Starter Project
关键字:
README 文档
README
Starter project which uses the scaffolding of the Base Web App project https://github.com/Harvest-Media/base-web-app to provide ready-made user management and templates.
Installation
composer create-project harvest-media/web-app-starter
Then, go to the root project:
cd web-app-starter
or whatever directory name you created.
Next, create your environment file:
cp .env.example .env
Open up that file in your editor of choice. Fill in the site address, site name, and the database information.
Then you need to run the installation program.
./console install
Next, run npm install.
npm install
Adding your own Install Migration
If you want to create other tables during the installation, go to migrations/install.php and
add functions for each table you want to create and them call those functions
in the safeUp function. Also, an uninstall feature is offered just for during
developmemnt. Make sure to add the drop table line in the safeDown function as well.
Development
There are some core classes and templates that are provided already for you in the
base-web-app project. An example of the login form and the dashboard page are
already placed in the controllers\web\ folder for you.
The UserController will be added soon which will provide basic user management.
Currently, when you use one of the base-web-app controllers, it would use the corresponding template in the base-web-app project. Soon, you will have the ability to specifiy to use your own template in the templates folder of this project.
All new pages you add to this project will be done through the controllers, models, and templates folders
at the root of this project. An example is at the controller/web/HelloController.php
Core Concepts
Yii2 PHP Framework
In order to successfully use this starter project, a basic understanding of the Yii2 framework is needed https://www.yiiframework.com/.
Twig Templating
For all of the views (html code), this project uses the /templates folder and the twig templating language https://twig.symfony.com/
Foundation CSS and Tailwind CSS
Both Foundation CSS and Tailwind are already included in the project.
SCSS File Location
src/css/theme.scss
Javascript File Location
src/js/theme.js
Tailwind Config File Location
This file is at the root of the project
tailwind.config.js
Laravel Mix
Laravel Mix is used for the styling and css processing.
Laravel Mix Config File Location
This is at the root of the project
webpack.mix.js
To develop with hot reloading:
npm run watch
To build for production:
npm run build
harvest-media/web-app-starter 适用场景与选型建议
harvest-media/web-app-starter 是一款 基于 CSS 开发的 Composer 扩展包,目前已累计 2 次下载、GitHub Stars 达 0, 最近一次更新时间为 2021 年 03 月 14 日, 在 PHP 生态内属于活跃度较高的组件。
它主要适用于以下技术方向: 「web app」 等业务场景。在实际项目中,围绕这些方向常见需要落地的问题包括:接口对接、性能调优、并发安全、与既有框架(Laravel / ThinkPHP / Yii / Webman 等)的兼容适配,以及生产环境的日志埋点与稳定性保障。
我们在过去多个企业项目中使用过 harvest-media/web-app-starter 或与其功能相近的方案,如果你在选型或落地过程中遇到问题,例如 版本兼容、二次改造、私有化封装、与内部系统对接、生产 BUG 排查,欢迎联系我们协助评估。
基于 harvest-media/web-app-starter 在你已有业务上做功能扩展、字段裁剪、UI 适配、与内部账号 / 权限 / 日志系统的深度对接。
线上偶发问题、内存泄漏、慢查询、并发异常等排查修复;针对高流量场景做缓存、队列、索引层面的调优。
承接完整的项目从需求 → 设计 → 开发 → 上线 → 长期运维;也可按月提供技术保姆服务。
与 harvest-media/web-app-starter 相关的其它包
同方向 / 同关键字的高下载量 PHP Composer 包推荐,方便对比选型:
Model of a web-based resource
Make your bundle an application
Retrieve a WebResourceInterface instance over HTTP
App Version Utility for CakePHP 2.x Applications
Selectize Theme for Bootstrap 4
Provides command to manage a web library directory
统计信息
- 总下载量: 2
- 月度下载量: 0
- 日度下载量: 0
- 收藏数: 0
- 点击次数: 10
- 依赖项目数: 0
- 推荐数: 0
其他信息
- 授权协议: Unknown
- 更新时间: 2021-03-14