定制 tradenity/symfony-ext 二次开发

按需修改功能、优化性能、对接业务系统,提供一站式技术支持

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

tradenity/symfony-ext

Composer 安装命令:

composer require tradenity/symfony-ext

包简介

Extension library to ease integration between Tradenity ecommerce PHP SDK and Symphony framework.

README 文档

README

This extension library facilitates integration between Symphony framework based applications and PHP SDK for Tradenity ecommerce API.

Installation

This package is available through Packagist (PHP Package Index), to install it type the following on the command line:

$ composer install tradenity/symfony-ext

Or, add this line to your application's composer.json:

{
'tradenity/symfony-ext':"0.5.0"
}

And then execute:

$ composer install

Dfine the required services:

In app/config/services.yml:

services:
    tradenity.session.service:
        class: Tradenity\SDK\Ext\Symfony\Services\SessionService
        arguments: ['@request_stack']

    app.tradenity_customer_user_provider:
        class: Tradenity\SDK\Ext\Symfony\Auth\CustomerUserProvider
        

If you will use the provided authentication support, add this to your security encoders:

encoders:
    Tradenity\SDK\Ext\Symfony\Auth\CustomerUser:
        algorithm:            bcrypt
        cost:                 10
            

Now you can add your credentials and start use the SDK services:

In app/config/config.yml:

parameters:
    tradenity_key: sk_xxxxxxxxxxxxxxxxxxxx
    stripe_public_key: pk_xxxxxxxxxxxxxxxx

Sample application

Working sample application code can be found here.

Documentation

Detailed documentation can be found on our knowledge base site:

Contributing

  1. Fork it ( https://github.com/tradenity/php-sdk-symfony-ext/fork )
  2. Create your feature branch (git checkout -b my-new-feature)
  3. Commit your changes (git commit -am 'Add some feature')
  4. Push to the branch (git push origin my-new-feature)
  5. Create a new Pull Request

统计信息

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

GitHub 信息

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

其他信息

  • 授权协议: Apache-2.0
  • 更新时间: 2016-11-12

承接程序开发

PHP开发

VUE

Vue开发

前端开发

小程序开发

公众号开发

系统定制

数据库设计

云部署

网站建设

安全加固