# Access to Homey via PHP

**URL:** <https://community.homey.app/t/access-to-homey-via-php/4633>\
**Category:** Developers\
**Created:** [November 29, 2018, 1:11am UTC](https://community.homey.app/t/access-to-homey-via-php/4633 "2018-11-29T01:11:34Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![Sir.Persson](https://avatars.discourse-cdn.com/v4/letter/s/a87d85/32.png) [@Sir.Persson](https://community.homey.app/u/Sir.Persson)\
**Post date:** [November 29, 2018, 1:11am UTC](https://community.homey.app/t/access-to-homey-via-php/4633/1 "2018-11-29T01:11:35Z")

</div>

I am pretty much a noob in development, but I’m trying to make a simple PHP-script that can find my sensor values and present them on a web site or save the values to a textfile or something like that. How do I get access to my Homey via PHP so I can get a list with all my sensors? Do you know if I for example can find any PHP template for this?

---

<div class="post-metadata">

**Author:** ![Jamie](https://sea1.discourse-cdn.com/flex025/user_avatar/community.homey.app/jamie/32/5274_2.png) [@Jamie](https://community.homey.app/u/Jamie)\
**Post date:** [November 29, 2018, 1:19am UTC](https://community.homey.app/t/access-to-homey-via-php/4633/2 "2018-11-29T01:19:27Z")

</div>

Hey,

The easiest way I know of to do this with PHP is via the REST API, using CURL.

You can read more about it here :

> **[Rest API](https://forum.athom.com/discussion/1192/rest-api)**
>
> i would like to use the rest API, I must be silly but I can't find the developer button on my homey under system to request an API key anyone have an idea?

But be warned I was told that the REST API will no longer be supported. ☹

---

<div class="post-metadata">

**Author:** ![Jamie](https://sea1.discourse-cdn.com/flex025/user_avatar/community.homey.app/jamie/32/5274_2.png) [@Jamie](https://community.homey.app/u/Jamie)\
**Post date:** [November 29, 2018, 1:21am UTC](https://community.homey.app/t/access-to-homey-via-php/4633/3 "2018-11-29T01:21:50Z")

</div>

Here is an example of the CURL request in PHP code.

> **[Speech by PHP CURL](https://forum.athom.com/discussion/3535/speech-by-php-curl)**
>
> Hi there, I'm playing around with the web-api and I'm able to readout devices, switch devices, but I cant seem to make Homey speak by CURL GET and PUT.
