codificar/scaffolder 问题修复 & 功能扩展

解决BUG、新增功能、兼容多环境部署,快速响应你的开发需求

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

codificar/scaffolder

Composer 安装命令:

composer require codificar/scaffolder

包简介

Laravel scaffolder

README 文档

README

Scaffolder for laravel Software license Quality score Laravel version Waffle board

Remove the headache of creating over and over again the base code for most of your projects. Scaffolder is tailored following the principle that the development process must be a happy thing so, code and enjoy ! You are free to extend it the way you need. This package only generate things that you need to start, always keeping the code clean and abstract. Are you hungry ? Fork it !

Installation

  1. Get laravel up and running

  2. Add the following packages to your composer.json

    "laravelcollective/html": "5.1.*",
    "yajra/laravel-datatables-oracle": "~5.0",
    "codificar/scaffolder-theme-material": "dev-master",
    "codificar/scaffolder": "dev-master",
  3. Update your packages

    composer update
  4. Add the service providers to the providers array in {laravel-root}\config\app.php

    ScaffolderTheme\ScaffolderThemeServiceProvider::class,
    Scaffolder\ScaffolderServiceProvider::class,
    yajra\Datatables\DatatablesServiceProvider::class,
  5. Add the following aliases in {laravel-root}\config\app.php

    'Form'       => Collective\Html\FormFacade::class,
    'Html'       => Collective\Html\HtmlFacade::class,
    'Datatables' => yajra\Datatables\Datatables::class,

Getting started

First you need to publish the configuration files and assets

./artisan vendor:publish --provider="Scaffolder\ScaffolderServiceProvider"
./artisan vendor:publish --provider="ScaffolderTheme\ScaffolderThemeServiceProvider" --force

Here we are using the theme codificar/scaffolder-theme-material, but you can fork it, and do whatever you want/need :)

At this point, you already can start to scaffold things. You have two ways to use the package.

Command line way (Hardcore devs)

When you execute the artisan publish command, the service provider creates the folder {laravel-root}\scaffolder-config that has the following structure:

- scaffolder-config
-- app.json
-- models
-- cache

The app.json file contains global settings, also you will get some demo files for models. All you need to scaffold an application is to edit the app.json file, and create the json files for the models you want. After you have all the files ready, you have the following commands:

This command generate the application using the files that you have provided.

./artisan scaffolder:generate

For instance, when you update the package, you should clear the cache files stored in {laravel-root}\scaffolder-config\cache

./artisan scaffolder:cache:clear
User interface way (Lazy devs)

All you need to do, is go to your http://{crazyhost}/scaffolder/generator and fill some inputs :)

Next steps

Check out the wiki to get more information about things that you need to know

Contributing

Just let me know your ideas and let's work together

License

The scaffolder package is licensed under the MIT license

codificar/scaffolder 适用场景与选型建议

codificar/scaffolder 是一款 基于 PHP 开发的 Composer 扩展包,目前已累计 6.53k 次下载、GitHub Stars 达 2, 最近一次更新时间为 2015 年 12 月 18 日, 在 PHP 生态内属于活跃度较高的组件。

它主要适用于以下技术方向: 「generator」 「migration」 「model」 「crud」 「scaffold」 「laravel」 等业务场景。在实际项目中,围绕这些方向常见需要落地的问题包括:接口对接、性能调优、并发安全、与既有框架(Laravel / ThinkPHP / Yii / Webman 等)的兼容适配,以及生产环境的日志埋点与稳定性保障。

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

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

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

BUG 修复 & 性能优化

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

项目外包 & 长期维护

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

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

统计信息

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

GitHub 信息

  • Stars: 2
  • Watchers: 2
  • Forks: 8
  • 开发语言: PHP

其他信息

  • 授权协议: MIT
  • 更新时间: 2015-12-18