NOTE: This repository is part of Google Cloud PHP. Any
support requests, bug reports, or development contributions should be directed to
that project.
A fully managed service for securely connecting and managing IoT devices, from a few to millions. Ingest data from
connected devices and build rich applications that integrate with the other big data services of Google Cloud Platform.
Installation
To begin, install the preferred dependency manager for PHP, Composer.
Now install this component:
$ composer require google/cloud-iot
Authentication
Please see our Authentication guide for more information
on authenticating your client. Once authenticated, you'll be ready to start making requests.
This component is considered GA (generally available). As such, it will not introduce backwards-incompatible changes in
any minor or patch releases. We will address issues and requests with the highest priority.
[[["Easy to understand","easyToUnderstand","thumb-up"],["Solved my problem","solvedMyProblem","thumb-up"],["Other","otherUp","thumb-up"]],[["Missing the information I need","missingTheInformationINeed","thumb-down"],["Too complicated / too many steps","tooComplicatedTooManySteps","thumb-down"],["Out of date","outOfDate","thumb-down"],["Samples / code issue","samplesCodeIssue","thumb-down"],["Other","otherDown","thumb-down"]],["Last updated 2025-08-28 UTC."],[],[],null,["Version latestkeyboard_arrow_down\n\n- [1.7.5 (latest)](/php/docs/reference/cloud-iot/latest)\n- [1.7.4](/php/docs/reference/cloud-iot/1.7.4)\n- [1.6.4](/php/docs/reference/cloud-iot/1.6.4)\n- [1.5.12](/php/docs/reference/cloud-iot/1.5.12) \n\nGoogle Cloud IoT Core for PHP\n=============================\n\n\u003e Idiomatic PHP client for [Google Cloud IoT Core](https://cloud.google.com/iot-core/).\n\n[](https://packagist.org/packages/google/cloud-iot) [](https://packagist.org/packages/google/cloud-iot)\n\n**NOTE:** This repository is part of [Google Cloud PHP](https://github.com/googleapis/google-cloud-php). Any\nsupport requests, bug reports, or development contributions should be directed to\nthat project.\n\nA fully managed service for securely connecting and managing IoT devices, from a few to millions. Ingest data from\nconnected devices and build rich applications that integrate with the other big data services of Google Cloud Platform.\n\n### Installation\n\nTo begin, install the preferred dependency manager for PHP, [Composer](https://getcomposer.org/).\n\nNow install this component: \n\n $ composer require google/cloud-iot\n\n### Authentication\n\nPlease see our [Authentication guide](https://github.com/googleapis/google-cloud-php/blob/main/AUTHENTICATION.md) for more information\non authenticating your client. Once authenticated, you'll be ready to start making requests.\n\n### Sample\n\n require 'vendor/autoload.php';\n\n use Google\\Cloud\\Iot\\V1\\DeviceManagerClient;\n\n $deviceManager = new DeviceManagerClient();\n\n $projectId = '[MY_PROJECT_ID]';\n $location = 'us-central1';\n $registryId = '[MY_REGISTRY_ID]';\n $registryName = $deviceManager-\u003eregistryName($projectId, $location, $registryId);\n $devices = $deviceManager-\u003elistDevices($registryName);\n foreach ($devices-\u003eiterateAllElements() as $device) {\n printf('Device: %s : %s' . PHP_EOL,\n $device-\u003egetNumId(),\n $device-\u003egetId()\n );\n }\n\n### Version\n\nThis component is considered GA (generally available). As such, it will not introduce backwards-incompatible changes in\nany minor or patch releases. We will address issues and requests with the highest priority.\n\n### Next Steps\n\n1. Understand the [official documentation](https://cloud.google.com/iot/docs/).\n2. Take a look at [in-depth usage samples](https://github.com/GoogleCloudPlatform/php-docs-samples/tree/master/iot)."]]