PHPackages                             mittwald/api-client - 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. mittwald/api-client

ActiveLibrary[API Development](/categories/api)

mittwald/api-client
===================

Client library for the mittwald mStudio v2 API

v2.1.197(3mo ago)318.5k↓57.3%[1 PRs](https://github.com/mittwald/api-client-php/pulls)3MITPHPPHP ^8.2CI passing

Since Sep 5Pushed 3mo ago2 watchersCompare

[ Source](https://github.com/mittwald/api-client-php)[ Packagist](https://packagist.org/packages/mittwald/api-client)[ RSS](/packages/mittwald-api-client/feed)WikiDiscussions master Synced 2d ago

READMEChangelog (10)Dependencies (14)Versions (295)Used By (3)

mittwald API PHP client
=======================

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

This package contains a (mostly auto-generated) PHP client for the mittwald mStudio v2 API.

License
-------

[](#license)

Copyright (c) 2025 Mittwald CM Service GmbH &amp; Co. KG and contributors

This project is licensed under the MIT License; see the [LICENSE](./LICENSE) file for details.

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

[](#installation)

You can install this package using composer:

```
$ composer require mittwald/api-client
```

Usage
-----

[](#usage)

Import the client:

```
use Mittwald\ApiClient\MittwaldAPIV2Client;
```

To create a client instance you can use one of the following factory methods for different types of authentication:

1. `MittwaldAPIClient::newUnauthenticated()`
2. `MittwaldAPIClient::newWithToken(string $apiToken)` (recommended)
3. `MittwaldAPIClient::newWithCredentials(string $email, string $password)`, does actually perform a login in the background; does not work when using 2FA.
4. `MittwaldAPIClient::newWithAccessTokenRetrievalKey(string $userId, string $key)`, authenticates an mStudio user using the [access token retrieval key](https://developer.mittwald.de/docs/v2/contribution/overview/concepts/authentication/) mechanism. Only useful if you're building an mStudio extension.
5. `MittwaldAPIClient::newWithExtensionSecret(string $extensionInstanceId, string $extensionSecret)`, authenticates an mStudio extension itself (without any user interaction). Only useful if you're building an mStudio extension.

Have a look at our [API introduction](https://developer.mittwald.de/docs/v2/api/intro) for more information on how to obtain an API token and how to get started with the API.

Example
-------

[](#example)

```
use \Mittwald\ApiClient\Generated\V2\Clients\Project\ListProjects\ListProjectsRequest;

$listProjectRequest = new ListProjectsRequest();
$listProjectResponse = $client->project()->listProjects($listProjectRequest);

foreach ($listProjectResponse->getBody() as $project) {
    echo $project->getShortId() . PHP_EOL;
}
```

API documentation
-----------------

[](#api-documentation)

The API documentation can be found in our [Developer Portal](https://developer.mittwald.de/reference/v2/). You can find the operation ID on the right side of each operation.

###  Health Score

54

—

FairBetter than 96% of packages

Maintenance79

Regular maintenance activity

Popularity30

Limited adoption so far

Community17

Small or concentrated contributor base

Maturity76

Established project with proven stability

 Bus Factor1

Top contributor holds 79.6% 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 ~3 days

Total

281

Last Release

109d ago

Major Versions

v1.0.42 → v2.0.02023-12-12

### Community

Maintainers

![](https://www.gravatar.com/avatar/5f0cf4eb3d44bff50a8f8dd5a05062c98edaf6d078f16cfae2f41caeb1a5e72a?d=identicon)[mittwald-typo3](/maintainers/mittwald-typo3)

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

---

Top Contributors

[![mittwald-machine](https://avatars.githubusercontent.com/u/62147274?v=4)](https://github.com/mittwald-machine "mittwald-machine (277 commits)")[![martin-helmich](https://avatars.githubusercontent.com/u/2538958?v=4)](https://github.com/martin-helmich "martin-helmich (70 commits)")[![ayalcin-mw](https://avatars.githubusercontent.com/u/87767111?v=4)](https://github.com/ayalcin-mw "ayalcin-mw (1 commits)")

---

Tags

api-clientphp

###  Code Quality

TestsPHPUnit

Static AnalysisPHPStan, Rector

Code StylePHP CS Fixer

Type Coverage Yes

### Embed Badge

![Health badge](/badges/mittwald-api-client/health.svg)

```
[![Health](https://phpackages.com/badges/mittwald-api-client/health.svg)](https://phpackages.com/packages/mittwald-api-client)
```

###  Alternatives

[tencentcloud/tencentcloud-sdk-php

TencentCloudApi php sdk

3741.3M47](/packages/tencentcloud-tencentcloud-sdk-php)[pantheon-systems/terminus

A command line interface for Pantheon

3391.5M18](/packages/pantheon-systems-terminus)[oat-sa/tao-core

TAO core extension

66143.7k124](/packages/oat-sa-tao-core)[moe-mizrak/laravel-openrouter

Laravel package for OpenRouter (A unified interface for LLMs)

154177.9k2](/packages/moe-mizrak-laravel-openrouter)[paycore/openfintech-data

Openfintech data

22110.1k](/packages/paycore-openfintech-data)[eslazarev/wildberries-sdk

Wildberries OpenAPI clients (generated).

273.0k](/packages/eslazarev-wildberries-sdk)

PHPackages © 2026

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