|
1 | | -# Google IOT PHP Sample Application |
| 1 | +# Deprecation Notice |
2 | 2 |
|
3 | | -[![Open in Cloud Shell][shell_img]][shell_link] |
| 3 | +* <h3>Google Cloud IoT Core will be <a href="https://cloud.google.com/iot/docs/release-notes#August_16_2022">retired as of August 16, 2023</a>.</h3> |
4 | 4 |
|
5 | | -[shell_img]: http://gstatic.com/cloudssh/images/open-btn.svg |
6 | | -[shell_link]: https://console.cloud.google.com/cloudshell/open?git_repo=https://github.com/googlecloudplatform/php-docs-samples&page=editor&working_dir=iot |
| 5 | +* <h3>Hence, the samples in this directory are archived and are no longer maintained.</h3> |
7 | 6 |
|
8 | | -## Description |
9 | | - |
10 | | -This simple command-line application demonstrates how to invoke Google |
11 | | -IOT API from PHP. These samples are best seen in the context of the |
12 | | -[Official API Documentation](https://cloud.google.com/iot/docs). |
13 | | - |
14 | | -## Build and Run |
15 | | -1. **Enable APIs** - [Enable the IOT API]( |
16 | | - https://console.cloud.google.com/flows/enableapi?apiid=iot.googleapis.com) |
17 | | - and create a new project or select an existing project. |
18 | | -2. **Download The Credentials** - Click "Go to credentials" after enabling the APIs. Click |
19 | | - "New Credentials" |
20 | | - and select "Service Account Key". Create a new service account, use the JSON key type, and |
21 | | - select "Create". Once downloaded, set the environment variable `GOOGLE_APPLICATION_CREDENTIALS` |
22 | | - to the path of the JSON key that was downloaded. |
23 | | -3. **Clone the repo** and cd into this directory |
24 | | -``` |
25 | | - $ git clone https://github.com/GoogleCloudPlatform/php-docs-samples |
26 | | - $ cd php-docs-samples/iot |
27 | | -``` |
28 | | -4. **Install dependencies** via [Composer](http://getcomposer.org/doc/00-intro.md). |
29 | | - Run `php composer.phar install` (if composer is installed locally) or `composer install` |
30 | | - (if composer is installed globally). |
31 | | -5. To run the IOT Samples, run any of the files in `src/` on the CLI. Run them without arguments to print usage instructions: |
32 | | -``` |
33 | | -$ php src/list_registries.php |
34 | | -
|
35 | | -Usage: list_registries.php $projectId [$location='us-central1'] |
36 | | -
|
37 | | - @param string $projectId Google Cloud project ID |
38 | | - @param string $location (Optional) Google Cloud region |
39 | | -``` |
40 | | - |
41 | | -## Contributing changes |
42 | | - |
43 | | -* See [CONTRIBUTING.md](../CONTRIBUTING.md) |
44 | | - |
45 | | -## Licensing |
46 | | - |
47 | | -* See [LICENSE](../LICENSE) |
| 7 | +* <h3>If you are customer with an assigned Google Cloud account team, contact your account team for more information.</h3> |
0 commit comments