PHPackages                             meplato/store2 - 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. meplato/store2

ActiveLibrary

meplato/store2
==============

A REST interface for the Meplato Store 2.0 API.

v2.1.13(2y ago)1952[1 issues](https://github.com/meplato/store2-php-client/issues)[5 PRs](https://github.com/meplato/store2-php-client/pulls)Apache-2.0PHPPHP ~8.1CI passing

Since Jun 5Pushed 3mo ago3 watchersCompare

[ Source](https://github.com/meplato/store2-php-client)[ Packagist](https://packagist.org/packages/meplato/store2)[ Docs](https://developer.meplato.com/)[ RSS](/packages/meplato-store2/feed)WikiDiscussions main Synced 1w ago

READMEChangelog (10)Dependencies (4)Versions (44)Used By (0)

Meplato Store 2 API for PHP
===========================

[](#meplato-store-2-api-for-php)

[![Build Status](https://camo.githubusercontent.com/ba21bbc11c8a107288b68c20eefcab8d1d6d90c08cae962f7ab49b4c5bdcc28b/68747470733a2f2f7472617669732d63692e6f72672f6d65706c61746f2f73746f7265322d7068702d636c69656e742e7376673f6272616e63683d6d6173746572)](https://travis-ci.org/meplato/store2-php-client)

This is the PHP client for the Meplato Store 2 API. It consists of a library to integrate your infrastructure with Meplato suite for suppliers.

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

[](#prerequisites)

You need at two things to use the Meplato Store 2 API.

1. A login to Meplato Store 2.
2. An API token.

Get your login by contacting Meplato Supplier Network Services. The API token is required to securely communicate with the Meplato Store 2 API. You can find it in the personalization section when logged into Meplato Store.

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

[](#installation)

1. Install [composer](https://getcomposer.org/)
2. Run `composer install`

Getting started
---------------

[](#getting-started)

Using the library is actually quite simple. All functionality is separated into services. So you e.g. have a service to work with catalogs, another service to work with products in a catalog etc. All services need to be initialized with your API token.

The following code snippet shows how to list your catalogs on Meplato Store.

```
// Client is responsible for performing HTTP requests.
// The API comes with a default (based on GuzzleHttp),
// but feel free to create your own.
$client = new \Meplato\Store2\HttpClient();

// Create and initialize the Catalogs service with your API token.
$service = new \Meplato\Store2\Catalogs\Service($client);
$service->setUser("");

// Now get the catalogs and print them.
$response = $service->search()->skip(0)->take(0)->sort("-created,name")->execute();
echo "You have " . $response["totalItems"] . " catalogs.\n";
foreach ($response['items'] as $catalog) {
  echo "Catalog " . $catalog["id"] . " has name " . $catalog["name"] . "\n";
}
```

Feel free to read the unit tests for the various usage scenarios of the library.

Documentation
-------------

[](#documentation)

Complete documentation for the Meplato Store 2 API can be found at .

Testing
-------

[](#testing)

We use [phpunit](https://phpunit.de/) for testing:

```
$ phpunit
$ phpunit --group me
$ phpunit --group catalogs
```

All tests are mocked, i.e. there is no real access to a web server on the internet.

Tests are tagged with `#[Group('x')]` to allow for easy testing of certain features. If you e.g. want to only run tests of the Me Service, run `phpunit --group me`. To list all available groups you can run `phpunit --list-groups`

License
=======

[](#license)

This software is licensed under the Apache 2 license.

```
Copyright (c) 2015 Meplato GmbH, Switzerland

Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at

    http://www.apache.org/licenses/LICENSE-2.0

Unless required by applicable law or agreed to in writing, software
distributed under the License is distributed on an "AS IS" BASIS,
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
See the License for the specific language governing permissions and
limitations under the License.

```

###  Health Score

40

—

FairBetter than 88% of packages

Maintenance34

Infrequent updates — may be unmaintained

Popularity13

Limited adoption so far

Community16

Small or concentrated contributor base

Maturity84

Battle-tested with a long release history

 Bus Factor2

2 contributors hold 50%+ of commits

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 ~124 days

Recently: every ~219 days

Total

24

Last Release

773d ago

PHP version history (3 changes)v2.0.0.beta5PHP &gt;=5.4.0

v2.1.2PHP ~7.1

v2.1.11PHP ~8.1

### Community

Maintainers

![](https://avatars.githubusercontent.com/u/683648?v=4)[Meplato GmbH](/maintainers/meplato)[@meplato](https://github.com/meplato)

---

Top Contributors

[![olivere](https://avatars.githubusercontent.com/u/134848?v=4)](https://github.com/olivere "olivere (32 commits)")[![dependabot[bot]](https://avatars.githubusercontent.com/in/29110?v=4)](https://github.com/dependabot[bot] "dependabot[bot] (22 commits)")[![iavorJ](https://avatars.githubusercontent.com/u/50323921?v=4)](https://github.com/iavorJ "iavorJ (6 commits)")[![XoseRamon](https://avatars.githubusercontent.com/u/1618295?v=4)](https://github.com/XoseRamon "XoseRamon (6 commits)")[![m-timmermann](https://avatars.githubusercontent.com/u/59820402?v=4)](https://github.com/m-timmermann "m-timmermann (3 commits)")[![rwenz3l](https://avatars.githubusercontent.com/u/7768249?v=4)](https://github.com/rwenz3l "rwenz3l (1 commits)")

---

Tags

meplato

###  Code Quality

TestsPHPUnit

### Embed Badge

![Health badge](/badges/meplato-store2/health.svg)

```
[![Health](https://phpackages.com/badges/meplato-store2/health.svg)](https://phpackages.com/packages/meplato-store2)
```

###  Alternatives

[laravel/framework

The Laravel Framework.

34.6k509.9M17.0k](/packages/laravel-framework)[illuminate/http

The Illuminate Http package.

11936.0M5.1k](/packages/illuminate-http)[php-opencloud/openstack

PHP SDK for OpenStack APIs. Supports BlockStorage, Compute, Identity, Images, Networking and Metric Gnocchi

2292.2M24](/packages/php-opencloud-openstack)[neuron-core/neuron-ai

The PHP Agentic Framework.

1.8k245.3k21](/packages/neuron-core-neuron-ai)[guanguans/notify

Push notification SDK(AnPush、Bark、Chanify、DingTalk、Discord、Gitter、GoogleChat、IGot、Lark、Mattermost、MicrosoftTeams、NowPush、Ntfy、Push、Pushback、PushBullet、PushDeer、PushMe、Pushover、PushPlus、QQ、RocketChat、ServerChan、ShowdocPush、SimplePush、Slack、Telegram、WeWork、WPush、XiZhi、YiFengChuanHua、ZohoCliq、ZohoCliqWebHook、Zulip).

682104.9k7](/packages/guanguans-notify)[tencentcloud/tencentcloud-sdk-php

TencentCloudApi php sdk

3731.2M42](/packages/tencentcloud-tencentcloud-sdk-php)

PHPackages © 2026

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