PHPackages                             gamez/mite - 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. gamez/mite

ActiveLibrary[API Development](/categories/api)

gamez/mite
==========

Interact with mite (https://mite.de) from your PHP application.

3.3.0(1y ago)81.1k↓87.5%3MITPHPPHP ~8.1.0 || ~8.2.0 || ~8.3.0 || ~8.4.0CI passing

Since Jan 23Pushed 2w ago1 watchersCompare

[ Source](https://github.com/jeromegamez/mite-php)[ Packagist](https://packagist.org/packages/gamez/mite)[ Docs](https://github.com/jeromegamez/mite-php)[ GitHub Sponsors](https://github.com/sponsors/jeromegamez)[ RSS](/packages/gamez-mite/feed)WikiDiscussions 3.x Synced 1w ago

READMEChangelog (10)Dependencies (16)Versions (15)Used By (0)

mite SDK for PHP
================

[](#mite-sdk-for-php)

Interact with [mite](https://mite.de) from your PHP application.

[![Current version](https://camo.githubusercontent.com/5cc21ae39220525a19994969376e810c4251040c057d5a7e66d08309a78115a4/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f762f67616d657a2f6d6974652e7376673f6c6f676f3d636f6d706f736572)](https://packagist.org/packages/gamez/mite)[![Packagist PHP Version Support](https://camo.githubusercontent.com/c2d7f4527b070f71ca8434a9236ffd3c023583e6119dc332b37a4e443759bb54/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f7068702d762f67616d657a2f6d697465)](https://packagist.org/packages/gamez/mite)[![Tests](https://github.com/jeromegamez/mite-php/actions/workflows/tests.yml/badge.svg)](https://github.com/jeromegamez/mite-php/actions/workflows/tests.yml)[![Sponsor](https://camo.githubusercontent.com/1004a94551d1edaf2a6da4d45ba217b79a46eb18dd7dd2d7825add0a2a8ddc4f/68747470733a2f2f696d672e736869656c64732e696f2f7374617469632f76313f6c6f676f3d476974487562266c6162656c3d53706f6e736f72266d6573736167653d25453225394425413426636f6c6f723d666636396234)](https://github.com/sponsors/jeromegamez)

---

- [Requirements](#requirements)
- [Installation](#installation)
- [Usage](#usage)
    - [Basic API client](#basic-api-client)
    - [Simple API](#simple-api)
    - [Simple Tracker](#simple-tracker)
    - [Catching errors](#catching-errors)
    - [Caching HTTP requests](#caching-http-requests)
    - [Creating your own API client](#creating-your-own-api-client)
- [License](#license)

---

Requirements
------------

[](#requirements)

- An account name (The first part of your mite account's domain, e.g. in https://**xxx**.mite.de)
- An API key (You can find your API key on )

Please note that the capabilities of the library are limited by the permissions of the used credentials. As an example, a user with the role "Time Tracker" can only access data that has been made available to them and is not allowed to create new customers.

Users with the `admin` role can see and do (almost) everything.

---

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

[](#installation)

In order to use this library, you need a [PSR-18 HTTP Client](https://packagist.org/providers/psr/http-client-implementation), and a [PSR-17 HTTP Message Factory](https://packagist.org/providers/psr/http-factory-implementation). If you don't already have them available in your project, they will be added to your project's dependencies

```
composer require gamez/mite
```

Usage
-----

[](#usage)

### Basic API client

[](#basic-api-client)

Once you have created an HTTP Client and Request Factory as described in the installation section, you can create an API client with them:

```
