承接 subscribepro/subscribepro-php 相关项目开发

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

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

subscribepro/subscribepro-php

最新稳定版本:1.1.6

Composer 安装命令:

composer require subscribepro/subscribepro-php

包简介

Subscribe Pro PHP SDK

README 文档

README

Latest Stable Version Total Downloads Latest Unstable Version License

This is our PHP client library for accessing the Subscribe Pro REST API. Our API documentation is available at https://docs.subscribepro.com/technical/rest-api/.

To learn more about Subscribe Pro you can visit us at https://www.subscribepro.com/.

Composer

You can install our PHP client via Composer. Run the following command:

composer require subscribepro/subscribepro-php

To use the PHP client, use Composer's autoload:

require_once('vendor/autoload.php');

Clean up code style

With php-cs-fixer v3.x installed, run this in project folder:

php-cs-fixer fix

Running the tests

With dev dependencies installed via composer (these will install phpunit >= 9.5), run this:

vendor/bin/phpunit

Getting Started

Simple usage looks like (example fetching a list of products):

<?php

use SubscribePro\Sdk;

// Set credentials
$clientId     = 'XXXX';
$clientSecret = 'XXXX';

// Set log message format
$messageFormat = "SUBSCRIBE PRO REST API Call: {method} - {uri}\nRequest body: {req_body}\n{code} {phrase}\nResponse body: {res_body}\n{error}\n";

// Create SDK object
// Setup with Platform API base url and credentials from Magento config
$sdk = new Sdk([
    'client_id' => $clientId,
    'client_secret' => $clientSecret,
    'logging_enable' => true,
    'logging_file_name' => 'var/log/subscribe_pro_api.log',
    'logging_message_format' => $messageFormat,
    'api_request_timeout' => 60,
]);

$products = $sdk
    ->getProductService()
    ->loadProducts(['sku' => 'SOME-EXAMPLE-SKU']);

统计信息

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

GitHub 信息

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

其他信息

  • 授权协议: MIT
  • 更新时间: 未知

承接程序开发

PHP开发

VUE

Vue开发

前端开发

小程序开发

公众号开发

系统定制

数据库设计

云部署

网站建设

安全加固