coddin-web/lightspeed-php-sdk
Composer 安装命令:
composer require coddin-web/lightspeed-php-sdk
包简介
An improved PHP client for the Lightspeed eCom API
关键字:
README 文档
README
Improved Lightspeed eCom PHP API client
This package is a convenience wrapper to communicate with the Lightspeed eCom REST-API.
Requirements
To use the Lightspeed eCom PHP API client, the following things are required:
- PHP >= 5.4
- cURL, JSON, mbstring and FileInfo PHP extensions
Installation
By far the easiest way to install the Lightspeed eCom PHP API client is to require it with Composer.
$ composer require coddin-web/lightspeed-php-sdk:^1.9
{
"require": {
"coddin-web/lightspeed-php-sdk": "^1.9"
}
}
Usage
There are a lot of API resources that are accessible through this client. You can look them up by looking at the code. Their name matches the name in the documentation.
<?php require 'vendor/autoload.php'; $client = new \Lightspeed\ApiClient('[api-server]', '[api-key]', '[api-secret]', '[language]'); $shopInfo = $client->shop->get();
Explanation
[api-server] Available server(-clusters): live, eu1, us1
[api-key] The API key you've received or created
[api-secret] The API secret you've received or created
[language] Language shortcode that's available in the shop you're connecting to
Fetching response headers
After making a call, you can fetch the response headers from our API server and use it to check important data such as rate limiting.
$shopInfo = $client->shop->get(); $response = $shopInfo->getResponseHeaders();
Getting started
Lightspeed eCom offers a powerful set of API’s for developers to create awesome apps. The API provides developers the interface to connect with third party software such as accounting-, feedback-, e-mailmarketing- and inventory management-software, or extend with new features that interact with our core platform, such as loyalty programs, social-sharing programs or reporting tools.
Getting started with Lightspeed eCom is easy. Not a partner yet? Please sign up as a partner and claim your account details and API keys.
Read our tutorials on how to build and publish your first app. Check our introduction to find out how to use the API
Documentation
More documentation can be found at developers.lightspeedhq.com/ecom
Contributing
Send a PR!
coddin-web/lightspeed-php-sdk 适用场景与选型建议
coddin-web/lightspeed-php-sdk 是一款 基于 PHP 开发的 Composer 扩展包,目前已累计 19 次下载、GitHub Stars 达 2, 最近一次更新时间为 2022 年 05 月 05 日, 在 PHP 生态内属于活跃度较高的组件。
它主要适用于以下技术方向: 「php」 「api」 「client」 「lightspeed」 「ecom」 等业务场景。在实际项目中,围绕这些方向常见需要落地的问题包括:接口对接、性能调优、并发安全、与既有框架(Laravel / ThinkPHP / Yii / Webman 等)的兼容适配,以及生产环境的日志埋点与稳定性保障。
我们在过去多个企业项目中使用过 coddin-web/lightspeed-php-sdk 或与其功能相近的方案,如果你在选型或落地过程中遇到问题,例如 版本兼容、二次改造、私有化封装、与内部系统对接、生产 BUG 排查,欢迎联系我们协助评估。
基于 coddin-web/lightspeed-php-sdk 在你已有业务上做功能扩展、字段裁剪、UI 适配、与内部账号 / 权限 / 日志系统的深度对接。
线上偶发问题、内存泄漏、慢查询、并发异常等排查修复;针对高流量场景做缓存、队列、索引层面的调优。
承接完整的项目从需求 → 设计 → 开发 → 上线 → 长期运维;也可按月提供技术保姆服务。
与 coddin-web/lightspeed-php-sdk 相关的其它包
同方向 / 同关键字的高下载量 PHP Composer 包推荐,方便对比选型:
A PSR-7 compatible library for making CRUD API endpoints
Mock PSR-18 HTTP client
Asynchronous MQTT client built on React
Client for Google Directions API to add interpolated points to a route consisting of given coordinates.
Alfabank REST API integration
A Flickr wrapper to allow you to call the Flickr api with Guzzle as the backend.Goal is to have 100% Flickr api coverage rather than just upload/display photos (currently at 23%).
统计信息
- 总下载量: 19
- 月度下载量: 0
- 日度下载量: 0
- 收藏数: 2
- 点击次数: 7
- 依赖项目数: 0
- 推荐数: 0
其他信息
- 授权协议: MIT
- 更新时间: 2022-05-05