mwi/laravel-kit
Composer 安装命令:
composer require mwi/laravel-kit
包简介
MWI Starter Kit for Laravel Projects
README 文档
README
If you haven't already, make sure you have your local environment setup.
Set Up
We have an NPM package that handles the entire setup process
MWI Laravel Setup
cd ~/projects/ mkdir project-name && cd project-name npm i mwi-laravel-setup
Run the Script
For instructions on the setup script visit MWI Laravel Setup
python setup.py -n -p
Aliases
For ease of use we'll add some composer scripts to our composer.json file.
"sniff": "phpcs -p ./app", "sniff:fix": "phpcbf -p ./app", "test": "phpunit", "sniff:test": "composer sniff && phpunit"
The first just sniffs, second fixes the sniff errors it can, third runs phpunit tests and four sniffs and tests together.
Package Specific Setup
These are additional packages that will help in the development of the project.
MWI Laravel CRUD
This package is setup by default
MWI Laravel CRUD Documentation
MWI Laravel Forms
Super handy components for form creation
composer require mwi/laravel-forms
MWI Laravel Forms Documentation
Spatie Laravel Permission
This package is set up by default
Spatie Permissions Documentation
JavaScript/CSS Assets
Always be sure to run the following command during a projects set up
npm install
We utilize laravel mix to handle the building of assets. Visit the MIX Documentation for more information.
Structure your assets by core, theme and application as necessary in the webpack.mix.js file.
// Theme Styles mix.styles('resources/assets/css/theme.css', 'public/css/theme.css') // Application Styles .sass('resources/assets/sass/app.scss', 'public/css'); // Core Scripts for Every Page .scripts([ // -- Your Core Scripts/Dependencies "resources/assets/lib/jquery/jquery.min.js", "resources/assets/js/main.js" ], 'public/js/core.js') // Scripts for the Theme .scripts([ // -- Your Theme Scripts/Dependencies "node_modules/select2/dist/select2.js" "resources/assets/js/theme.js", ], 'public/js/theme.js') // Application JavaScript .js('resources/assets/js/app.js', 'public/js/app.js') .sourceMaps();
Standard Packages
These packages are on an as need basis. If a theme was incorporated they may not be necessary.
For masking inputs
npm install inputmask
For form validation
npm install parsleyjs
For select dropdowns/multiselects
npm install select2
For card based layouts
npm install masonry-layout
Additional References and Guides
Note Some of these guides are still a work in progress.
For more information on how to utilize various features of this kit visit the following:
mwi/laravel-kit 适用场景与选型建议
mwi/laravel-kit 是一款 基于 PHP 开发的 Composer 扩展包,目前已累计 8.58k 次下载、GitHub Stars 达 1, 最近一次更新时间为 2017 年 11 月 03 日, 在 PHP 生态内属于活跃度较高的组件。
它主要适用于以下技术方向: 「laravel」 「starter」 等业务场景。在实际项目中,围绕这些方向常见需要落地的问题包括:接口对接、性能调优、并发安全、与既有框架(Laravel / ThinkPHP / Yii / Webman 等)的兼容适配,以及生产环境的日志埋点与稳定性保障。
我们在过去多个企业项目中使用过 mwi/laravel-kit 或与其功能相近的方案,如果你在选型或落地过程中遇到问题,例如 版本兼容、二次改造、私有化封装、与内部系统对接、生产 BUG 排查,欢迎联系我们协助评估。
基于 mwi/laravel-kit 在你已有业务上做功能扩展、字段裁剪、UI 适配、与内部账号 / 权限 / 日志系统的深度对接。
线上偶发问题、内存泄漏、慢查询、并发异常等排查修复;针对高流量场景做缓存、队列、索引层面的调优。
承接完整的项目从需求 → 设计 → 开发 → 上线 → 长期运维;也可按月提供技术保姆服务。
与 mwi/laravel-kit 相关的其它包
同方向 / 同关键字的高下载量 PHP Composer 包推荐,方便对比选型:
Laravel Filament Starter.
Slim starter / Slim skeleton package to boost your development with Slim framework
Alfabank REST API integration
A Craft CMS scaffolding project
Nette project example for contributte/api-router library by @f3l1x and @paveljanda
The Attogram Framework provides developers a PHP skeleton starter site with a content module system, file-based URL routing, IP-protected backend, Markdown parser, jQuery and Bootstrap. Core modules available to add an integrated SQLite database with web admin, user system, and more.
统计信息
- 总下载量: 8.58k
- 月度下载量: 0
- 日度下载量: 0
- 收藏数: 1
- 点击次数: 9
- 依赖项目数: 0
- 推荐数: 0
其他信息
- 授权协议: MIT
- 更新时间: 2017-11-03