API Documentation for Omnismith

Maintainers

Package info

github.com/omnismith-sdk/php

Homepage

pkg:composer/omnismith-sdk/php

Statistics

Installs: 4

Dependents: 0

Suggesters: 0

Stars: 0

Open Issues: 0

1.0.10 2026-04-21 19:49 UTC

This package is auto-updated.

Last update: 2026-05-21 20:03:41 UTC


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.