承接 muilman/processors 相关项目开发

从需求分析到上线部署,全程专人跟进,保证项目质量与交付效率

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

muilman/processors

Composer 安装命令:

composer require muilman/processors

包简介

A simple package to clean up cluttered controllers.

README 文档

README

If there is one thing I hate, its cluttered controllers, to fix that problem in big applications, I came up with my own method/layer to put all the logic in: the processor layer!

Using this package is very simple! This package comes with 2 artisan commands;

  • processor:init - Creates the Processors folder in the App folder and 2 base classes inside the Processors folder.
  • make:processor - Creates a an empty processor.

Calling a processor from anywhere is very simple;

  • Import the processor facade at the top: use Processor;.
  • Call a processor to be executed: return Processor::init('TestProcessor', array('next' => 'home'))->function();.

Installation

Installing this package is very simple;

  • Install the package with composer: composer require muilman/processors.
  • Add the service provider to Config/app.php: Muilman\Processors\ProcessorServiceProvider::class.
  • Optional: Add the Processors alias to the aliases in Config/app.php: 'Processor' => '\App\Processors\BaseProcessor',.

统计信息

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

GitHub 信息

  • Stars: 0
  • Watchers: 1
  • Forks: 0
  • 开发语言: PHP

其他信息

  • 授权协议: Unknown
  • 更新时间: 2015-11-03