kirillantv/yii2-swap 问题修复 & 功能扩展

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

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

kirillantv/yii2-swap

Composer 安装命令:

composer require kirillantv/yii2-swap

包简介

Yii2 extension allows you to transform your site into Swap Platform

README 文档

README

Yii2-Swap is module, that helps your users to swap different things.

Getting started with Yii2-swap

*** Alpha version v0.8.3-alpha ***

1. Download

Yii2-Swap extension can be installed using composer. Run the command bellow in console to download and install Yii2-swap:

composer require kirillantv/yii2-swap

or you can add following require to composer.json:

...
"require": {
  ...
  "kirillantv/yii2-swap": "*"
  ...
}

2. Configure

Add following lines to your main configuration file:

'modules' => [
    'swap' => [
        'class' => 'kirillantv\swap\Module',
    ],
],

3. Update database schema

The last thing you need to do is updating your database schema by applying the migrations. Make sure that you have properly configured db application component and run the following command:

$ php yii migrate/up --migrationPath=@vendor/kirillantv/yii2-swap/migrations

4. Available actions

Backend management actions

NOTE: It is not recommended to use actions below in frontend. Even swap/management/items/create action. All index pages designed as GridView by default

0. Simple start

You can get access to swap console easily with action below:

swap/management

1. Items

swap/management/items list of all items swap/management/items/create create item in module management page

2. Categories

swap/management/categories list of all categories

swap/management/categories/create create category

3. Bets

swap/management/bets list of all bets

swap/management/bets/create create bet in module management page

4. Orders

swap/management/orders list of all orders

swap/management/orders/create create order manually

5. Attributes

swap/management/attributes list of all attributes

swap/management/attributes/create create attributes for your items

6. Attribute Values

swap/management/values junction table for items and attributes

swap/management/values/create create manually junction between item and attribute. Just for specific solutions

7. Visual Configuration

swap/management/basic-configuration configurate module

Frontend actions

1.Items

swap/items input all active items

swap/items/create create item with attributes, categories and bets

swap/items/edit param id. Update form for item

swap/items/view param id. View form for item. Users can swap from this page.

2. Orders

swap/orders/create create order when user clicks swap button. Available to choose bet

User actions

Yii2-Swap provides user's items and orders output. You can add corresponding actions in profile menu or override views

1. Items

swap/user/items main action for user's items

swap/user/items/active user's active items

swap/user/items/archive user's archive items

2. Orders

swap/user/orders main action for user's orders

swap/user/orders/active user's active orders

swap/user/orders/archive user's archive orders

3. Messages

Attention! Message module is not stable.

Extension supports specific message system by the default. After migration in your DB swap_message table will appear. We need for prefix not to conflict with your chat or mail system. We included message model in default orders controller and view. But you can access to inbox and conversation using controllers bellow:

swap/message/inbox - list of all user's conversations grouped by item_id

swap/message/conversation - need for GET parameters: hash, item, from, to of any message from current user's conversation. So foreign user can't enter to conversation.

kirillantv/yii2-swap 适用场景与选型建议

kirillantv/yii2-swap 是一款 基于 PHP 开发的 Composer 扩展包,目前已累计 21 次下载、GitHub Stars 达 0, 最近一次更新时间为 2017 年 08 月 08 日, 在 PHP 生态内属于活跃度较高的组件。

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

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

围绕 kirillantv/yii2-swap 我们能提供哪些服务?
定制开发 / 二次开发

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

BUG 修复 & 性能优化

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

项目外包 & 长期维护

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

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

统计信息

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

GitHub 信息

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

其他信息

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