PHPackages                             tradenity/php-sdk - 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. tradenity/php-sdk

ActiveLibrary[API Development](/categories/api)

tradenity/php-sdk
=================

PHP interface to the Tradenity REST API, The easiest eCommerce API for web and mobile development.

1.0.1(7y ago)02912PHPPHP &gt;=5.5

Since Nov 12Pushed 7y ago1 watchersCompare

[ Source](https://github.com/tradenity/php-sdk)[ Packagist](https://packagist.org/packages/tradenity/php-sdk)[ RSS](/packages/tradenity-php-sdk/feed)WikiDiscussions master Synced 4w ago

READMEChangelogDependencies (4)Versions (4)Used By (2)

Welcome to PHP SDK for Tradenity ecommerce API
==============================================

[](#welcome-to-php-sdk-for-tradenity-ecommerce-api)

This is the official PHP SDK for [Tradenity ecommerce API](https://www.tradenity.com).

Prerequisites
-------------

[](#prerequisites)

To use the Tradenity SDK, you must have:

- Working PHP development environment (currently versions &gt; 5.5 are supported).
- Active account in [Tradenity](http://www.tradenity.com)

Installation
------------

[](#installation)

Installation instructions provided for composer, but the sdk is not dependent on composer, you can install using any other tool.

Add this line to your application's `composer.json` file:

```
require:{
 'tradenity/php-sdk': "1.0.1"
 }
```

And then execute:

```
$ composer install

```

Or install it yourself as:

```
$ composer install tradenity

```

Create store and load sample data
---------------------------------

[](#create-store-and-load-sample-data)

- If you are not yet registered, create a new [Tradenity account](https://www.tradenity.com).
- After you login to your account, go to [Getting started](https://admin.tradenity.com/admin/getting_started) page and create new store. you may click "Create sample store" to create a new store and populate it with sample data
- From the administration side menu, choose "Developers" &gt; "API Keys", you can use the default key or generate a new one.

Setup your credentials
----------------------

[](#setup-your-credentials)

First of all, you have to get API keys for your store, you can find it in your store `Edit` page. To get there navigate to the stores list page, click on the `Edit` button next to your store name, scroll down till you find the `API Keys` section.

Usage
-----

[](#usage)

### Initialise the library with your store api key and your framework 's SessionIdAccessor:

[](#initialise-the-library-with-your-store-api-key-and-your-framework-s-sessionidaccessor)

`Tradenity\SDK\ApiClient::$ApiKey = 'sk_1234567'`

Add the framework dependent `SessionIdAccessor` (check documentation for details):

`Tradenity\SDK\ApiClient::$sessionIdAccessor =  = ....`

### Use in your code

[](#use-in-your-code)

Invoke the required method on a specific entity, for example to get a list of all the categories for that store:

`Category->find_all()`

Detailed documentation can be found on our [knowledge base site](http://docs.tradenity.com/kb/sdk/php/).

Extensions for common PHP frameworks
------------------------------------

[](#extensions-for-common-php-frameworks)

These libraries eases the integration between Tradenity SDK and the corresponding framework:

[Laravel framework extension library](https://github.com/tradenity/php-sdk-laravel-ext).

[Symphony framework extension library](https://github.com/tradenity/php-sdk-symfony-ext).

Tutorials and sample applications
---------------------------------

[](#tutorials-and-sample-applications)

We provide 2 sample applications, actually it is the same application implemented using 2 frameworks: `Laravel`, and `Symphony`. You can find live demo here:

[Camera store sample application live demo](http://camera-store-sample.tradenity.com/)

You can find the code at github:

[Camera store for laravel code](https://github.com/tradenity/camerastore-php-laravel-sample).

[Camera store for symphony code](https://github.com/tradenity/camerastore-php-symphony-sample).

We also provide a detailed explanation of the code of these sample applications in the form of a step by step tutorials:

[Camera store for laravel tutorial](http://docs.tradenity.com/kb/tutorials/php/laravel/).

[Camera store for symphony tutorial](http://docs.tradenity.com/kb/tutorials/php/symfony/).

Contributing
------------

[](#contributing)

1. Fork it (  )
2. Create your feature branch (`git checkout -b my-new-feature`)
3. Commit your changes (`git commit -am 'Add some feature'`)
4. Push to the branch (`git push origin my-new-feature`)
5. Create a new Pull Request

###  Health Score

27

—

LowBetter than 47% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity8

Limited adoption so far

Community12

Small or concentrated contributor base

Maturity60

Established project with proven stability

 Bus Factor1

Top contributor holds 100% 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 ~420 days

Total

3

Last Release

2678d ago

Major Versions

0.1.0 → 1.0.02019-03-01

PHP version history (2 changes)0.1.0PHP &gt;=5.3.0

1.0.0PHP &gt;=5.5

### Community

Maintainers

![](https://avatars.githubusercontent.com/u/16461518?v=4)[Tradenity](/maintainers/tradenity)[@tradenity](https://github.com/tradenity)

---

Top Contributors

[![tradenity](https://avatars.githubusercontent.com/u/16461518?v=4)](https://github.com/tradenity "tradenity (5 commits)")

---

Tags

phpapisdk

###  Code Quality

TestsPHPUnit

Code StylePHP CS Fixer

### Embed Badge

![Health badge](/badges/tradenity-php-sdk/health.svg)

```
[![Health](https://phpackages.com/badges/tradenity-php-sdk/health.svg)](https://phpackages.com/packages/tradenity-php-sdk)
```

###  Alternatives

[openai-php/laravel

OpenAI PHP for Laravel is a supercharged PHP API client that allows you to interact with the Open AI API

3.7k9.5M84](/packages/openai-php-laravel)[hubspot/api-client

Hubspot API client

24016.2M18](/packages/hubspot-api-client)[resend/resend-php

Resend PHP library.

617.2M37](/packages/resend-resend-php)[checkout/checkout-sdk-php

Checkout.com SDK for PHP

563.6M12](/packages/checkout-checkout-sdk-php)[clicksend/clicksend-php

351.6M11](/packages/clicksend-clicksend-php)[mozex/anthropic-laravel

Laravel integration for the Anthropic API: facade, config publishing, install command, testing fakes, messages, streaming, tool use, thinking, and batches.

73287.1k1](/packages/mozex-anthropic-laravel)

PHPackages © 2026

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