承接 dansleboby/lightspeed-xseries-sdk 相关项目开发

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

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

dansleboby/lightspeed-xseries-sdk

最新稳定版本:v0.0.3

Composer 安装命令:

composer require dansleboby/lightspeed-xseries-sdk

包简介

PHP SDK for the X‑Series API, generated with Saloon

README 文档

README

This repository contains a PHP SDK for interacting with version 2.0 of the Lightspeed Retail (X-Series) API. It is built using the excellent Saloon library to provide a simple and expressive way to make API requests.

⚠️ Disclaimer ⚠️

This SDK is not officially created or supported by Lightspeed. It is an independent, community-driven project.

Furthermore, this software is currently in an alpha stage. This means it may contain bugs, and breaking changes can be introduced at any time. Please use it at your own risk and test thoroughly before using it in a production environment.

Requirements

Installation

You can install the package via Composer:

composer require dansleboby/lightspeed-xseries-sdk

Quick Start

Here is a basic example of how to list sales.

<?php

require __DIR__ . '/vendor/autoload.php';

use LightSpeed\XSeries\XSeriesSdk;
use LightSpeed\XSeries\Requests\Retailers\GetRetailer;

// 1. Instantiate the Connector
$connector = new XSeriesSdk('domain_prefix', "token");

$request = new GetRetailer;

try {
	var_dump($connector->send($request)
					   ->body());
} catch(\Saloon\Exceptions\Request\FatalRequestException $e) {
	die("Fatal error: " . $e->getMessage());
} catch(\Saloon\Exceptions\Request\RequestException $e) {
	die("Request error: " . $e->getMessage());
}

Available Endpoints

All available API requests are located in the src/Requests directory and are organized by resource (e.g., Products, Customers, Sales). They generally follow a consistent naming pattern:

  • List{Resource}
  • Get{Resource}ById
  • Create{Resource}
  • Update{Resource}
  • Delete{Resource}

Please browse the src/Requests directory for a complete list of available actions.

Lightspeed API Documentation

For detailed information about specific API endpoints, parameters, and data structures, please refer to the official Lightspeed X-Series API documentation:

License

This SDK is open-source software licensed under the MIT License.

统计信息

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

GitHub 信息

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

其他信息

  • 授权协议: MIT
  • 更新时间: 2025-07-23