承接 spryker-sdk/spryk 相关项目开发

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

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

spryker-sdk/spryk

Composer 安装命令:

composer require spryker-sdk/spryk

包简介

Spryk module

README 文档

README

CI Latest Stable Version Minimum PHP Version PHPStan

Installation

composer require --dev spryker-sdk/spryk

This is a development only "require-dev" module. Please make sure you include it as such.

What are Spryks?

Spryks are some sort of code generators for Spryker. Writing code is often a very repetitive task and you often need to write a lot code just to follow Spryker's clean and complex architecture. To take a way the monkey work from writing wir up code and move faster towards writing business code Spryks are born.

Spryks are written with the help of yml files. The filename of the yml file represents also the Spryk name. In most cases the Spryk yml contains arguments which are needed to fullfill the Spryk build run. Almost all Spryks need the module name to run properly. Some Spryks require much more arguments.

The vast majority of the Spryks need to execute other Spryks before the called Spryk can run. For example Add a Zed Business Facade needs to have a properly created module before the Facade itself can be created. Therefore Spryks have pre and post Spryks and with the call of one Spryk many things can and will be created for you.

How to use Spryks?

  • vendor/bin/spryk-run - Runs Spryks in your project
  • vendor/bin/spryk-dump - Lists all available Spryks
  • vendor/bin/spryk-build - Builds a cache file for all Spryk arguments

Examples:

  1. To get a list of top level spryks run vendor/bin/spryk-dump.
  2. To get a list of all available spryks run vendor/bin/spryk-dump --level=all.
  3. To get a list of all options available for a specific spryk run vendor/bin/spryk-dump {SPRYK NAME}.
  4. To execute one Spryk run vendor/bin/spryk-run {SPRYK NAME}.
  5. To reflect changes in Spryk arguments and generate a new cache for them run vendor/bin/spryk-build.

When you run a Spryk, the console will ask you for all needed arguments to build the Spryk. You also have the ability to pass all known arguments on the console by using --{argument name}={argument value}.

Extending Spryk

Adding Spryks

You can add your own Spryks by creating a Spryk definition in your projects config/spryk/spryks/ directory.

Spryk definitions in this directory will be found by the tool and can be executed as usually.

Adding Spryk templates

You can add your own Spryk templates by creating a template in your projects config/spryk/templates/ directory.

Spryk templates in this directory will be found by the tool and can be used in your Spryks.

Configuration

Spryks need some project related configurations. These are passed automatically to the tool.

The following configurations will be passed to the Spryk tool:

  • Spryker\Shared\Kernel\KernelConstants::PROJECT_NAMESPACE
  • Spryker\Shared\Kernel\KernelConstants::PROJECT_NAMESPACES
  • Spryker\Shared\Kernel\KernelConstants::CORE_NAMESPACES

spryker-sdk/spryk 适用场景与选型建议

spryker-sdk/spryk 是一款 基于 PHP 开发的 Composer 扩展包,目前已累计 2.43M 次下载、GitHub Stars 达 4, 最近一次更新时间为 2019 年 01 月 28 日, 在 PHP 生态内属于活跃度较高的组件。

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

围绕 spryker-sdk/spryk 我们能提供哪些服务?
定制开发 / 二次开发

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

BUG 修复 & 性能优化

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

项目外包 & 长期维护

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

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

统计信息

  • 总下载量: 2.43M
  • 月度下载量: 0
  • 日度下载量: 0
  • 收藏数: 4
  • 点击次数: 3
  • 依赖项目数: 7
  • 推荐数: 0

GitHub 信息

  • Stars: 4
  • Watchers: 16
  • Forks: 9
  • 开发语言: PHP

其他信息

  • 授权协议: proprietary
  • 更新时间: 2019-01-28