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

ActiveLibrary[API Development](/categories/api)

toit/api
========

PHP Client for the Toit GRPC API

v0.11.2(4y ago)141MITPHP

Since Nov 8Pushed 4y ago3 watchersCompare

[ Source](https://github.com/toitware/api-php)[ Packagist](https://packagist.org/packages/toit/api)[ Docs](https://toit.io)[ RSS](/packages/toit-api/feed)WikiDiscussions main Synced 1mo ago

READMEChangelog (1)Dependencies (2)Versions (2)Used By (0)

Toit PHP API
============

[](#toit-php-api)

PHP Client for the Toit GRPC API.

Install
-------

[](#install)

In order to install gRPC and protobuf for PHP please follow the guidelines here: . To install dependencies run:

```
composer install

```

Example
-------

[](#example)

### Prerequisites

[](#prerequisites)

To run the examples you will need to dump the autoload using composer:

```
composer dump-autoload

```

You will also need to set the `TOIT_API_KEY` environment variable. To create a API key do:

```
toit project api-keys add

```

View the list of API keys available in your project with the Toit CLI command:

```
$ toit project api-keys list

```

Note the ID of your API key.

View the generated API key *secret* with the Toit CLI command:

```
$ toit project api-keys print-secret

```

### Run

[](#run)

to run the examples set the environment variable and use PHP to run the example:

```
export TOIT_API_KEY=
php ./examples/list_devices.php

```

###  Health Score

20

—

LowBetter than 14% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity6

Limited adoption so far

Community11

Small or concentrated contributor base

Maturity40

Maturing project, gaining track record

 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

Unknown

Total

1

Last Release

1652d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/4ad5f46c3e41a65bcf8d37397d87273755f0c1af2e1b706a6f937b11d00f6fe6?d=identicon)[jstroem](/maintainers/jstroem)

![](https://www.gravatar.com/avatar/a0566422538d0f56275e0b5b0e1d6edcb818c590e163349ea2385f8e7bd2fd38?d=identicon)[LeonGungadinMogensen](/maintainers/LeonGungadinMogensen)

---

Top Contributors

[![jstroem](https://avatars.githubusercontent.com/u/202022?v=4)](https://github.com/jstroem "jstroem (1 commits)")

---

Tags

gRPCtoit

### Embed Badge

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

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

###  Alternatives

[google/gax

Google API Core for PHP

263103.1M454](/packages/google-gax)[google/grpc-gcp

gRPC GCP library for channel management

18497.8M3](/packages/google-grpc-gcp)[googleads/google-ads-php

Google Ads API client for PHP

3497.6M9](/packages/googleads-google-ads-php)[temporal/sdk

Temporal SDK

4002.2M18](/packages/temporal-sdk)[google/common-protos

Google API Common Protos for PHP

173103.7M50](/packages/google-common-protos)[spiral/grpc-client

gRPC client

41140.3k2](/packages/spiral-grpc-client)

PHPackages © 2026

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