tchauviere/slim3-kickstarter
Composer 安装命令:
composer create-project tchauviere/slim3-kickstarter
包简介
Slim3 web app starter kit, trying to follow KISS principle and make your dev life easier.
README 文档
README
This slim3 boilerplate is made for everyone who would like to kickstart quickly a web project.
It is composed of many great packages such as:
- Eloquent
- Phinx
- Monolog
- Symfony Console
- PHPMailer
- Bootstrap 4
- JQuery
- leafo/scssphp
- matthiasmullie/minify
- vlucas/phpdotenv
Installation :
composer create-project tchauviere/slim3-kickstarter <app_name>
Will download the project and install everything for you, <app_name> is up to you.
Once packages are installed you will be prompted interactively for .env file creation and global environment setup (assets and DB).
If you do not want to be prompted just add --no-interaction to the composer create-project command up above
If you don't go with interactive mode (default), please mind to do the following once your .env file is ready:
php manager asset:compile
php manager migration:run up
php manager seed:run
Start your developpement :)
Guide :
Assets management
php manager assets:compile [<type>] [--watch]
Will take care of converting your scss files and minify them as well as js files from /assets directory
to respectively /public/css and /public/js directories
(no binary dependencies required).
[<type>](optionnal):scssorjs(Tell compilator to only take care ofassets/jsorassets/css[--watch](optionnal): Watch specified folder and auto-compile whenever a change is made
Migration creation
php manager migration:create <migration_name>
Will automatically creates a new migration file to /db/migrations from this file you can follow Phinx documentation to describe your migration.
http://docs.phinx.org/en/latest/migrations.html
<migration_name>: Camel case migration name (eg.: Users, UsersAndRoles, ...)
Migration running
php manager migration:run <direction> [-t <target>] [--dry-run]
Run your migrations UP or DOWN.
<direction>:upordown(Tell manager to execute migration or rollback them).[-t <target>](optionnal):<target>is the migration timestamp, if specified only this migration will be executed up or down.[--dry-run](optionnal): Tell migration to be tested but not persisted to DB.
Seed creation
php manager seed:create <seed_name>
Will automatically creates a new seed file to /db/seeds
<seed_name>: Camel case seed name (eg.: Users, Roles, ...)
Seed running
php manager seed:run [--seed <name>]
Run your seeds files.
--seed <seed_name>(optionnal): If specified, will only run this seed file (eg.: Users, Roles, ...)
Secret generation
php manager secret:generate
Will replace your secret located in .env file automatically.
BE CAREFUL when using this if you have already users that are created.
Indeed, this secret is used to salt your Users passwords.
Usefull links :
http://docs.phinx.org/en/latest/migrations.html
https://laravel.com/docs/5.8/eloquent
http://www.slimframework.com/docs/
Note :
Feel free to open issues, ask questions or make some pull requests !
I'm maintaining this on my spare time so give me some of yours to get back to you :)
Enjoy !
tchauviere/slim3-kickstarter 适用场景与选型建议
tchauviere/slim3-kickstarter 是一款 基于 SCSS 开发的 Composer 扩展包,目前已累计 34 次下载、GitHub Stars 达 1, 最近一次更新时间为 2019 年 05 月 07 日, 在 PHP 生态内属于活跃度较高的组件。
它主要适用于以下技术方向: 「twig」 「jquery」 「monolog」 「boilerplate」 「scss」 「phinx」 等业务场景。在实际项目中,围绕这些方向常见需要落地的问题包括:接口对接、性能调优、并发安全、与既有框架(Laravel / ThinkPHP / Yii / Webman 等)的兼容适配,以及生产环境的日志埋点与稳定性保障。
我们在过去多个企业项目中使用过 tchauviere/slim3-kickstarter 或与其功能相近的方案,如果你在选型或落地过程中遇到问题,例如 版本兼容、二次改造、私有化封装、与内部系统对接、生产 BUG 排查,欢迎联系我们协助评估。
基于 tchauviere/slim3-kickstarter 在你已有业务上做功能扩展、字段裁剪、UI 适配、与内部账号 / 权限 / 日志系统的深度对接。
线上偶发问题、内存泄漏、慢查询、并发异常等排查修复;针对高流量场景做缓存、队列、索引层面的调优。
承接完整的项目从需求 → 设计 → 开发 → 上线 → 长期运维;也可按月提供技术保姆服务。
与 tchauviere/slim3-kickstarter 相关的其它包
同方向 / 同关键字的高下载量 PHP Composer 包推荐,方便对比选型:
Shoot aims to make providing data to your templates more manageable
A GeoIP decorator/processor for monolog
This Symfony bundle integrates PhpSpreadsheet into Symfony using Twig.
A Twig extension to insert css as inline styles with a tag
Caching and compression for Twig assets (JavaScript and CSS).
Yii2 LightBox image galary widget uses Lightbox v2.10.0 by Lokesh Dhakar
统计信息
- 总下载量: 34
- 月度下载量: 0
- 日度下载量: 0
- 收藏数: 1
- 点击次数: 18
- 依赖项目数: 0
- 推荐数: 0
其他信息
- 授权协议: BSD-3-Clause
- 更新时间: 2019-05-07