承接 mangoweb-sylius/sylius-smsmanager-plugin 相关项目开发

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

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

mangoweb-sylius/sylius-smsmanager-plugin

Composer 安装命令:

composer require mangoweb-sylius/sylius-smsmanager-plugin

包简介

SMS manager plugin for Sylius

README 文档

README

SMS Manager Plugin

Features

  • Use https://smsmanager.cz account to send SMS to customers
  • Inform your customers with a text message that the package has been sent
  • Custom text for every shipping method and language
  • Use variables to personalise the text

Installation

  1. Run $ composer require mangoweb-sylius/sylius-smsmanager-plugin.
  2. Register \MangoSylius\SmsManagerPlugin\MangoSyliusSmsManagerPlugin in your Kernel.
  3. Import @MangoSyliusSmsManagerPlugin/Resources/config/resources.yml in the config.yml.
  4. Your Entity Channel has to implement \MangoSylius\SmsManagerPlugin\Model\SmsManagerChannelInterface. You can use Trait MangoSylius\SmsManagerPlugin\Model\SmsManagerChannelTrait.
  5. Your Entity ShippingMethodTranslation has to implement \MangoSylius\SmsManagerPlugin\Model\SmsManagerShippingMethodInterface. You can use Trait MangoSylius\SmsManagerPlugin\Model\SmsManagerShippingMethodTrait.
  6. Include template @MangoSyliusSmsManagerPlugin/channelSmsSegmentForm.html.twig in @SyliusAdmin/Channel/_form.html.twig.
  7. Include template @MangoSyliusSmsManagerPlugin/shippingMethodSmsForm.html.twig in @SyliusAdmin/ShippingMethod/_form.html.twig. For guide to use your own entity see Sylius docs - Customizing Models

Usage

First enter SMS Manager credentials and other parameters in channel settings, then enter SMS text for each shipping method. If the text is blank, no SMS will be sent.

You can use the following variables in the text:

{{ orderNumber }}
{{ trackingNumber }}
{{ address.fullName }}
{{ address.company }}
{{ address.street }}
{{ address.postCode }}
{{ address.city }}
{{ address.provinceCode }}
{{ address.provinceName }}
{{ address.countryCode }}

Development

Usage

  • Create symlink from .env.dist to .env or create your own .env file
  • Develop your plugin in /src
  • See bin/ for useful commands

Testing

After your changes you must ensure that the tests are still passing.

  • Easy Coding Standard
    bin/ecs.sh
  • PHPStan
    bin/phpstan.sh

License

This library is under the MIT license.

Credits

Developed by manGoweb.

统计信息

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

GitHub 信息

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

其他信息

  • 授权协议: MIT
  • 更新时间: 2019-01-04

承接程序开发

PHP开发

VUE

Vue开发

前端开发

小程序开发

公众号开发

系统定制

数据库设计

云部署

网站建设

安全加固