GV

GeezerVison

The World Wide Web, restored to 800 pixels of glory.

Home|About|Gaming cabinet|Archives|How it works|Starter sites

On this site

  • Sign in
  • ActionsCI/CD and automation
  • CodespacesCloud development environments
  • All Features
  • Documentation
  • Training
  • Certifications
  • Build with Copilot
  • Customize Copilot
  • Integrations
  • Trending repos
  • GitHub Sponsors
  • Developer articles
  • Enterprises

This view

  • Original page
  • New address

GeezerVison is showing github.com — GitHub - mittwald/api-client-php: PHP client for the mittwald mStudio v2 API

BranchesTags
Open more actions menu

Latest commit

 

History

400 Commits
400 Commits

Folders and files

NameName
Last commit message
Last commit date
.github/workflows
.github/workflows
 
 
.idea
.idea
 
 
src
src
 
 
tests/Generated/V2/Clients/App
tests/Generated/V2/Clients/App
 
 
.gitignore
.gitignore
 
 
.php-cs-fixer.dist.php
.php-cs-fixer.dist.php
 
 
CONTRIBUTING.md
CONTRIBUTING.md
 
 
LICENSE
LICENSE
 
 
README.md
README.md
 
 
composer.json
composer.json
 
 
phpstan.neon
phpstan.neon
 
 
phpunit.xml
phpunit.xml
 
 
psalm.xml
psalm.xml
 
 
rector.php
rector.php
 
 

Repository files navigation

mittwald API PHP client

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

License

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

This project is licensed under the MIT License; see the LICENSE file for details.

Installation

You can install this package using composer:

$ composer require mittwald/api-client

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 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 for more information on how to obtain an API token and how to get started with the API.

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

The API documentation can be found in our Developer Portal. You can find the operation ID on the right side of each operation.

About

PHP client for the mittwald mStudio v2 API

Topics

api-clientphp

Resources

Readme
MIT license

Contributing

Contributing
Activity
Custom properties

Stars

3 stars

Watchers

2 watching

Forks

0 forks
Report repository

Releases

Used by

Contributors

Languages

You are visitor 01402503 — GeezerVison does not store the pages you look up.
Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required.