定制 gemini-commerce/php-client-product-configurator 二次开发

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

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

gemini-commerce/php-client-product-configurator

Composer 安装命令:

composer require gemini-commerce/php-client-product-configurator

包简介

## Introduction This comprehensive guide will equip you with the knowledge to integrate and leverage our Product Configurator Service in your applications. ## Quick Start Get up and running in no time! Follow these steps to kickstart your integration: 1. **Authentication:** Obtain your integrati

README 文档

README

Introduction

This comprehensive guide will equip you with the knowledge to integrate and leverage our Product Configurator Service in your applications.

Quick Start

Get up and running in no time! Follow these steps to kickstart your integration:

  1. Authentication: Obtain your integration JWT to authenticate your requests.
  2. Client Libraries: Explore our GitHub repositories to grab client libraries in your preferred programming language.
  3. API Overview: Familiarize yourself with our RESTful API using the OpenAPI specification.

Integration

API Overview

Our RESTful API is the gateway to unlocking the full potential of Product Configurator. Check out the detailed API Reference for a granular understanding of each endpoint and request/response format.

Client Libraries

To expedite your integration process, we provide client libraries for various programming languages. Find the one that suits your stack in our GitHub repositories.

Authentication

Security is paramount. Learn how to authenticate your requests using JWT. This ensures a secure and reliable connection between your application and Product Configurator.

Configuration Management

Configurator Lifecycle

Understand the lifecycle of configurators, from draft to active and deleted. This flexibility allows you to manage configurations at your own pace.

Steps and Options

Configure product steps with ease and define options effortlessly. Explore the power of dependencies to create dynamic and intuitive configurations.

Matrices

Delve into matrices—your secret weapon. Explore price and weight matrices, and learn how configured steps influence properties and pricing.

Price Management

Unleash dynamic pricing with our versatile price matrices. From fixed prices to incremental structures, adapt to diverse pricing models effortlessly.

Security

Your data is in safe hands. Discover how Product Configurator ensures security through JWT authentication, safeguarding your sensitive information.

Backward Compatibility

Stay ahead of the curve. Learn about our versioning strategy, providing backward compatibility while allowing our service to evolve seamlessly.

Developer Support

Have questions? Need assistance? Write to us at info@gemini-commerce.com and we will get back to you.

Installation & Usage

Requirements

PHP 7.4 and later. Should also work with PHP 8.0.

Composer

To install the bindings via Composer, add the following to composer.json:

{
  "repositories": [
    {
      "type": "vcs",
      "url": "https://github.com/Gemini-Commerce/php-client-product-configurator.git"
    }
  ],
  "require": {
    "Gemini-Commerce/php-client-product-configurator": "*@dev"
  }
}

Then run composer install

Manual Installation

Download the files and include autoload.php:

<?php
require_once('/path/to/productconfigurator/vendor/autoload.php');

Getting Started

Please follow the installation procedure and then run the following:

<?php
require_once(__DIR__ . '/vendor/autoload.php');



// Configure OAuth2 access token for authorization: standardAuthorization
$config = OpenAPI\Client\Configuration::getDefaultConfiguration()->setAccessToken('YOUR_ACCESS_TOKEN');

// Configure API key authorization: APIAuthorization
$config = OpenAPI\Client\Configuration::getDefaultConfiguration()->setApiKey('Authorization', 'YOUR_API_KEY');
// Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
// $config = OpenAPI\Client\Configuration::getDefaultConfiguration()->setApiKeyPrefix('Authorization', 'Bearer');


$apiInstance = new OpenAPI\Client\Api\ConfigurationApi(
    // If you want use custom http client, pass your client which implements `GuzzleHttp\ClientInterface`.
    // This is optional, `GuzzleHttp\Client` will be used as default.
    new GuzzleHttp\Client(),
    $config
);
$tenant_id = 'tenant_id_example'; // string
$product_id = 'product_id_example'; // string
$configurator_id = 'configurator_id_example'; // string | If not set, the service returns the active configurator

try {
    $result = $apiInstance->productConfiguratorGetAvailableConfiguration($tenant_id, $product_id, $configurator_id);
    print_r($result);
} catch (Exception $e) {
    echo 'Exception when calling ConfigurationApi->productConfiguratorGetAvailableConfiguration: ', $e->getMessage(), PHP_EOL;
}

API Endpoints

All URIs are relative to https://product-configurator.api.gogemini.io

Class Method HTTP request Description
ConfigurationApi productConfiguratorGetAvailableConfiguration GET /v1/{tenantId}/product/{productId}/configuration Get Available Configuration
ConfigurationApi productConfiguratorGetAvailableConfiguration2 POST /v1/{tenantId}/product/{productId}/configuration Get Available Configuration
ConfigurationApi productConfiguratorGetConfigurationFromSelections POST /v1/{tenantId}/product/{productId}/configuration-from-selections Get Configuration from Selections
ConfiguratorApi productConfiguratorCopyConfigurator POST /v1/{tenantId}/product/{sourceConfiguratorId}/copy Copy Configurator
ConfiguratorApi productConfiguratorCreateConfigurator POST /v1/{tenantId}/product/{productId}/create Create Configurator
ConfiguratorApi productConfiguratorDeleteConfigurator DELETE /v1/{tenantId}/configurator/{configuratorId} Delete Configurator
ConfiguratorApi productConfiguratorGetConfiguratorByProductId GET /v1/{tenantId}/product/{productId} Get Configurator by Product ID
ConfiguratorApi productConfiguratorGetConfiguratorByProductId2 GET /v1/{tenantId}/product/{productId}/status/{status} Get Configurator by Product ID
ConfiguratorApi productConfiguratorListConfigurators POST /v1/{tenantId}/product/{productId}/page-size/{pageSize}/configurators List Product Configurators
ConfiguratorApi productConfiguratorUpdateConfigurator PUT /v1/{tenantId}/configurator/{configuratorId} Update Configurator
DependencyApi productConfiguratorCreateDependency POST /v1/{tenantId}/step/{stepId}/dependency/create Create Dependency
DependencyApi productConfiguratorDeleteDependency DELETE /v1/{tenantId}/dependency/{dependencyId} Delete Dependency
DependencyApi productConfiguratorListDependencies POST /v1/{tenantId}/page-size/{pageSize}/dependencies List Dependencies
DependencyApi productConfiguratorUpdateDependency PUT /v1/{tenantId}/dependency/{dependencyId} Update Dependency
MatrixApi productConfiguratorCreateMatrix POST /v1/{tenantId}/matrix/create Create Matrix
MatrixApi productConfiguratorDeleteMatrix DELETE /v1/{tenantId}/matrix/{matrixId} Delete Matrix
MatrixApi productConfiguratorGetMatrix GET /v1/{tenantId}/matrix/{matrixId} Get Matrix
MatrixApi productConfiguratorListMatrices POST /v1/{tenantId}/configurator/{configuratorId}/page-size/{pageSize}/matrices List Matrices
MatrixApi productConfiguratorRemovePricelistFromMatrix DELETE /v1/{tenantId}/matrix/{matrixId}/pricelist/{pricelistGrn} Remove Pricelist from Matrix
MatrixApi productConfiguratorUpdateMatrix PUT /v1/{tenantId}/matrix/{matrixId} Update Matrix
OptionApi productConfiguratorBulkCreateOptions POST /v1/{tenantId}/step/{stepId}/option/create/bulk Bulk Create Options
OptionApi productConfiguratorBulkDeleteOptions POST /v1/{tenantId}/option/delete/bulk Bulk Delete Options
OptionApi productConfiguratorBulkUpdateOptions PUT /v1/{tenantId}/option/bulk Bulk Update Options
OptionApi productConfiguratorCopyOption POST /v1/{tenantId}/option/{sourceOptionId}/copy Copy Option
OptionApi productConfiguratorCreateOption POST /v1/{tenantId}/step/{stepId}/option/create Create Option
OptionApi productConfiguratorDeleteOption DELETE /v1/{tenantId}/option/{optionId} Delete Option
OptionApi productConfiguratorListOptions POST /v1/{tenantId}/step/{stepId}/page-size/{pageSize}/options List Options
OptionApi productConfiguratorUpdateOption PUT /v1/{tenantId}/option/{optionId} Update Option
ProductConfiguratorApi productConfiguratorGetProperty GET /v1/{tenantId}/property/{propertyId}
ProductConfiguratorApi productConfiguratorListPropertiesByConfiguration POST /v1/{tenantId}/configurator/{configuratorId}/page-size/{pageSize}/properties
PropertyApi productConfiguratorBulkCreateProperties POST /v1/{tenantId}/property/create/bulk Bulk Create Properties
PropertyApi productConfiguratorBulkUpdateProperties PUT /v1/{tenantId}/properties/bulk Bulk Update Properties
PropertyApi productConfiguratorCreateProperty POST /v1/{tenantId}/property/create Create Property
PropertyApi productConfiguratorListProperties POST /v1/{tenantId}/matrix/{matrixId}/page-size/{pageSize}/properties List Properties
PropertyApi productConfiguratorUpdateProperty PUT /v1/{tenantId}/property/{propertyId} Update Property
StepApi productConfiguratorBulkCreateSteps POST /v1/{tenantId}/configurator/{configuratorId}/step/create/bulk Bulk Create Steps
StepApi productConfiguratorBulkDeleteSteps POST /v1/{tenantId}/step/delete/bulk Bulk Delete Steps
StepApi productConfiguratorCopyStep POST /v1/{tenantId}/step/{sourceStepId}/copy Copy Step
StepApi productConfiguratorCreateStep POST /v1/{tenantId}/configurator/{configuratorId}/step/create Create Step
StepApi productConfiguratorDeleteStep DELETE /v1/{tenantId}/step/{stepId} Delete Step
StepApi productConfiguratorUpdateStep PUT /v1/{tenantId}/step/{stepId} Update Step

Models

Authorization

Authentication schemes defined for the API:

APIAuthorization

  • Type: API key
  • API key parameter name: Authorization
  • Location: HTTP header

standardAuthorization

  • Type: OAuth
  • Flow: implicit
  • Authorization URL: https://iambackoffice.gogemini.io/iambackoffice.IamBackoffice/Login
  • Scopes: N/A

Tests

To run the tests, use:

composer install
vendor/bin/phpunit

Author

info@gemini-commerce.com

About this package

This PHP package is automatically generated by the OpenAPI Generator project:

  • API version: v1
    • Generator version: 7.9.0
  • Build package: org.openapitools.codegen.languages.PhpClientCodegen

gemini-commerce/php-client-product-configurator 适用场景与选型建议

gemini-commerce/php-client-product-configurator 是一款 基于 PHP 开发的 Composer 扩展包,目前已累计 5 次下载、GitHub Stars 达 0, 最近一次更新时间为 2023 年 12 月 05 日, 在 PHP 生态内属于活跃度较高的组件。

它主要适用于以下技术方向: 「php」 「rest」 「api」 「sdk」 「openapi」 「openapitools」 等业务场景。在实际项目中,围绕这些方向常见需要落地的问题包括:接口对接、性能调优、并发安全、与既有框架(Laravel / ThinkPHP / Yii / Webman 等)的兼容适配,以及生产环境的日志埋点与稳定性保障。

我们在过去多个企业项目中使用过 gemini-commerce/php-client-product-configurator 或与其功能相近的方案,如果你在选型或落地过程中遇到问题,例如 版本兼容、二次改造、私有化封装、与内部系统对接、生产 BUG 排查,欢迎联系我们协助评估。

围绕 gemini-commerce/php-client-product-configurator 我们能提供哪些服务?
定制开发 / 二次开发

基于 gemini-commerce/php-client-product-configurator 在你已有业务上做功能扩展、字段裁剪、UI 适配、与内部账号 / 权限 / 日志系统的深度对接。

BUG 修复 & 性能优化

线上偶发问题、内存泄漏、慢查询、并发异常等排查修复;针对高流量场景做缓存、队列、索引层面的调优。

项目外包 & 长期维护

承接完整的项目从需求 → 设计 → 开发 → 上线 → 长期运维;也可按月提供技术保姆服务。

yvsm@zunyunkeji.com QQ:316430983 微信:yvsm316 西安尊云信息科技 · 专注 PHP / Go / 分布式系统研发

统计信息

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

GitHub 信息

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

其他信息

  • 授权协议: unlicense
  • 更新时间: 2023-12-05