PHPackages                             digitalprint/oro-api-php - PHPackages - PHPackages  [Skip to content](#main-content)[PHPackages](/)[Directory](/)[Categories](/categories)[Trending](/trending)[Leaderboard](/leaderboard)[Changelog](/changelog)[Analyze](/analyze)[Collections](/collections)[Log in](/login)[Sign up](/register)

1. [Directory](/)
2. /
3. [API Development](/categories/api)
4. /
5. digitalprint/oro-api-php

ActiveLibrary[API Development](/categories/api)

digitalprint/oro-api-php
========================

OroCommerce API client for PHP applications.

v1.2.0(4y ago)12351[1 PRs](https://github.com/digitalprint/oro-api-php/pulls)BSD-2-ClausePHPPHP &gt;=8.0.2

Since Jan 4Pushed 3y ago5 watchersCompare

[ Source](https://github.com/digitalprint/oro-api-php)[ Packagist](https://packagist.org/packages/digitalprint/oro-api-php)[ RSS](/packages/digitalprint-oro-api-php/feed)WikiDiscussions main Synced 1mo ago

READMEChangelog (7)Dependencies (5)Versions (8)Used By (0)

OroCommerce API PHP Client
==========================

[](#orocommerce-api-php-client)

Thank you for using the "OroCommerce Api PHP Client" (Digitalprint\_Oro-Api-PHP).

This package contains some basic functions you need to connect php applications with your OroCommerce system.

This package contains only a few endpoints. If you have a suggestion that would make this better, please fork the repo and create a pull request. You can also simply open an issue with the tag "enhancement".

[![Latest Stable Version](https://camo.githubusercontent.com/83ec7d8460ec33a6f30692f6d741cec70d3442b3b72926c041acb75b030a1ecb/687474703a2f2f706f7365722e707567782e6f72672f6469676974616c7072696e742f6f726f2d6170692d7068702f76)](https://packagist.org/packages/digitalprint/oro-api-php) [![Total Downloads](https://camo.githubusercontent.com/8ff704aa22b088560066ea76c37325443f49f7d27fc956c1af53b2078cd472bf/687474703a2f2f706f7365722e707567782e6f72672f6469676974616c7072696e742f6f726f2d6170692d7068702f646f776e6c6f616473)](https://packagist.org/packages/digitalprint/oro-api-php)

1. Documentation
----------------

[](#1-documentation)

- [Contribute on Github](https://github.com/digitalprint/oro-api-php)
- [Releases](https://github.com/digitalprint/oro-api-php/releases)
- [API Developer Guide](https://doc.oroinc.com/backend/api/)

2. How to install
-----------------

[](#2-how-to-install)

### Install via composer (recommend)

[](#install-via-composer-recommend)

Run the following command in your root folder:

```
composer require digitalprint/oro-api-php

```

3. User Guide
-------------

[](#3-user-guide)

This package integrates OroCommerce API functions into your php application.

### 3.1 Getting started

[](#31-getting-started)

Initializing the OroCommerce API client.

```
$oro = new \Digitalprint\Oro\Api\OroApiClient();
$oro->setApiEndpoint('YOUR_ORO_API_ENDPOINT');
$oro->setUser('YOUR_ORO_API_USER');

$res = $oro->authorization->create([
    'client_id' => 'YOUR_CLIENT_ID',
    'client_secret' => 'YOUR_CLIENT_SECRET',
]);

$oro->setAccessToken($res->access_token);
```

### 3.2 Product Examples

[](#32-product-examples)

#### Get a single product

[](#get-a-single-product)

```
$product = $oro->products->get(100);
```

#### Get a single product with related entities included

[](#get-a-single-product-with-related-entities-included)

```
$oro->products->get(1, ['include' => 'names,descriptions']);
```

#### Get a list of products

[](#get-a-list-of-products)

```
$products = $oro->products->page();
```

#### Get a list of featured products

[](#get-a-list-of-featured-products)

```
$products = $oro->products->page(1, 10, ['featured' => true]);
```

#### Get names of a product

[](#get-names-of-a-product)

```
$names = $oro->products->get(100)->names();
```

#### Update an existing product

[](#update-an-existing-product)

```
$product = $oro->products->get(100);

$res = $product->update([
  'data' => [
    'meta' => [
      'update' => true,
    ],
    'type' => 'products',
    'id' => $product->id,
    'attributes' => [
      'status' => ($product->attributes->status === 'disabled' ? "enabled" : "disabled"),
    ],
  ],
]);
```

#### Create a new product

[](#create-a-new-product)

```
$product = $oro->products->create([
  'data' => [
    'type' => 'products',
    'attributes' => [
      'sku' => 'test-api-' . strtotime('now'),
      'status' => 'enabled',
      'variantFields' => [],
      'productType' => 'simple',
      'featured' => true,
      'newArrival' => false,
      'availability_date' => '2018-01-01',
    ],
    'relationships' => [ ... ],
  ],
  'included' => [ ... ],
]);
```

#### Delete a single product

[](#delete-a-single-product)

```
$names = $oro->products->get(100)->delete();
```

### 3.3 More Examples

[](#33-more-examples)

More examples are in the [examples folder](examples)

###  Health Score

29

—

LowBetter than 59% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity16

Limited adoption so far

Community12

Small or concentrated contributor base

Maturity59

Maturing project, gaining track record

 Bus Factor1

Top contributor holds 98.4% of commits — single point of failure

How is this calculated?**Maintenance (25%)** — Last commit recency, latest release date, and issue-to-star ratio. Uses a 2-year decay window.

**Popularity (30%)** — Total and monthly downloads, GitHub stars, and forks. Logarithmic scaling prevents top-heavy scores.

**Community (15%)** — Contributors, dependents, forks, watchers, and maintainers. Measures real ecosystem engagement.

**Maturity (30%)** — Project age, version count, PHP version support, and release stability.

###  Release Activity

Cadence

Every ~15 days

Recently: every ~22 days

Total

7

Last Release

1502d ago

PHP version history (2 changes)v1.0.0PHP &gt;=8.1

v1.0.1PHP &gt;=8.0.2

### Community

Maintainers

![](https://www.gravatar.com/avatar/ae4eb8db5778562d87a298ea904e4662740cfcbc69a596d825e3eef644b439d9?d=identicon)[sweikert](/maintainers/sweikert)

---

Top Contributors

[![sweikert](https://avatars.githubusercontent.com/u/14890174?v=4)](https://github.com/sweikert "sweikert (61 commits)")[![fkoenig-pp](https://avatars.githubusercontent.com/u/87644296?v=4)](https://github.com/fkoenig-pp "fkoenig-pp (1 commits)")

---

Tags

apiapi-clientorocommercephpphpapiapi clientOROOroCommerce

###  Code Quality

TestsPHPUnit

Code StylePHP CS Fixer

### Embed Badge

![Health badge](/badges/digitalprint-oro-api-php/health.svg)

```
[![Health](https://phpackages.com/badges/digitalprint-oro-api-php/health.svg)](https://phpackages.com/packages/digitalprint-oro-api-php)
```

###  Alternatives

[phplicengine/bitly

Bitly API v4

22277.3k](/packages/phplicengine-bitly)[fabian-beiner/todoist-php-api-library

A PHP client library that provides a native interface to the official Todoist REST API.

4810.8k](/packages/fabian-beiner-todoist-php-api-library)[optiosteam/payconiq-client-php

Payconiq API client library for PHP developed by Optios.

1273.4k](/packages/optiosteam-payconiq-client-php)

PHPackages © 2026

[Directory](/)[Categories](/categories)[Trending](/trending)[Changelog](/changelog)[Analyze](/analyze)
