承接 psw-group/api-v1 相关项目开发

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

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

psw-group/api-v1

最新稳定版本:2.1.0

Composer 安装命令:

composer require psw-group/api-v1

包简介

Client for the API of PSW GROUP

README 文档

README

Latest Version on Packagist Software License Total Downloads

Our API empowers customers to build amazing new apps or websites using PSW GROUP shop data and services. This SDK provides all the code necessary for the integration of our API into your projects.

Installation

If composer is not yet on your system, follow the instructions on getcomposer.org to do so.

To add the psw-group/api-v1 dependency to your project, simply run the following command from the root of your project:

$ composer require psw-group/api-v1

Requirements

You will need a recent version of PHP, at least PHP 8.1.

This package requires PSR-17 compatible request/URI factories and a PSR-18 compatible HTTP client. If no factories are supplied, it uses PHP-HTTP discovery to find installed implementations.

For example if you want to use Guzzle as HTTP client execute:

$ composer require http-interop/http-factory-guzzle php-http/guzzle7-adapter

Usage

Create a client for the environment (test or production) you want to use. Inject it into a repository. Repositories then allow you to load single resources or collections of resources and provide methods to execute operations on those resources.

<?php

use PswGroup\Api\TestClient;
use PswGroup\Api\Repository\ProductRepository;

include 'vendor/autoload.php';

// Create a client for the test environment
$client = new TestClient(
    '[yourClientId]',
    '[yourClientSecret]'
);

// Load all available products
$productRepository = new ProductRepository($client);
$products = $productRepository->loadAll();

There are a number of files in the examples folder, which show you how to get started quickly.

Documentation

For more detailed information you can check the docs folder.

License

The MIT License (MIT). Please see License File for more information.

统计信息

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

GitHub 信息

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

其他信息

  • 授权协议: MIT
  • 更新时间: 2020-04-29

承接程序开发

PHP开发

VUE

Vue开发

前端开发

小程序开发

公众号开发

系统定制

数据库设计

云部署

网站建设

安全加固