lokal/processor 问题修复 & 功能扩展

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

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

lokal/processor

最新稳定版本:1.0

Composer 安装命令:

composer require lokal/processor

包简介

Lokal Koder Processor

README 文档

README

Supporting package for lokalkoder development environment.

Installation

Install this project with composer

  composer require lokal/processor

Usage/Examples

Define data mapping by extending \Lokal\Processor\Action\Parameter class

class Parameter extends \Lokal\Processor\Action\Parameter
{
    /**
     * {@inheritDoc}
     */
    public function mapping(): array
    {
        return [
            'name' => 'name',
            'address' => 'address',
            'status' => 'status',
            'rental' => 'rental_term',
            'tag' => 'tags',
            'latitude' => 'latitude',
            'longitude' => 'longitude',
        ];
    }
}

Define method of processing by extending \Lokal\Processor\Action\Processor class

class RepositoryProcessor extends Lokal\Processor\Action\Processor
{
    /**
     * {@inheritDoc}
     */
    protected function saving(array $parameters, mixed $identity = null): mixed
    {
        // Define processing method here
    }

}

Execute the processor using Lokal\Processor\Manager\Action class

(new Lokal\Processor\Manager\Action(
    new Parameter($request->input()),
    new Processor
))->process()

License

MIT

统计信息

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

GitHub 信息

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

其他信息

  • 授权协议: MIT
  • 更新时间: 2025-03-08