定制 omnismith-sdk/php 二次开发

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

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

omnismith-sdk/php

最新稳定版本:1.0.10

Composer 安装命令:

composer require omnismith-sdk/php

包简介

API Documentation for Omnismith

README 文档

README

npm version PyPI version Packagist version Go Report Card

The Omnismith PHP SDK is generated from the central OpenAPI contract for the Omnismith platform, a flexible data management system built around templates, entities, and attribute-driven schemas. Use it to automate workflows against the Omnismith API and pair it with the web app at app.omnismith.io.

Quick Start

<?php

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

use GuzzleHttp\Client;
use Omnismith\Sdk\Api\EntityApi;
use Omnismith\Sdk\Api\TemplatesApi;
use Omnismith\Sdk\Configuration;
use Omnismith\Sdk\Model\CreateEntityRequest;

$configuration = Configuration::getDefaultConfiguration()
    ->setHost('https://api.omnismith.io/v1')
    ->setAccessToken(getenv('OMNISMITH_ACCESS_TOKEN'));

$httpClient = new Client();
$templatesApi = new TemplatesApi($httpClient, $configuration);
$entityApi = new EntityApi($httpClient, $configuration);

$templateId = 'your-template-id';
$template = $templatesApi->getTemplate($templateId);

$entity = $entityApi->createEntity(
    new CreateEntityRequest([
        'template_id' => $template->getId(),
        'attribute_values' => [
            [
                'attribute_id' => $template->getAttributeIds()[0],
                'value' => 'SKU-1001',
            ],
        ],
    ])
);

printf("%s %s\n", $template->getName(), $entity->getId());

Set OMNISMITH_ACCESS_TOKEN to an access token created in Omnismith before running the snippet.

统计信息

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

GitHub 信息

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

其他信息

  • 授权协议: unlicense
  • 更新时间: 2026-04-19

承接程序开发

PHP开发

VUE

Vue开发

前端开发

小程序开发

公众号开发

系统定制

数据库设计

云部署

网站建设

安全加固