{"id":21027846,"url":"https://github.com/marios8543/gpio_web","last_synced_at":"2026-04-11T20:36:49.429Z","repository":{"id":116788538,"uuid":"120091933","full_name":"marios8543/GPIO_Web","owner":"marios8543","description":"An API for controlling the Raspberry Pi GPIO pins written in PHP","archived":false,"fork":false,"pushed_at":"2018-02-19T11:38:27.000Z","size":17,"stargazers_count":1,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-03-13T19:13:08.573Z","etag":null,"topics":["gpio","php","raspberry-pi"],"latest_commit_sha":null,"homepage":null,"language":"PHP","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"gpl-2.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/marios8543.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2018-02-03T13:05:59.000Z","updated_at":"2019-04-21T01:27:40.000Z","dependencies_parsed_at":null,"dependency_job_id":"5439a3c7-30ae-413a-845d-21a1c5b46ac4","html_url":"https://github.com/marios8543/GPIO_Web","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/marios8543/GPIO_Web","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/marios8543%2FGPIO_Web","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/marios8543%2FGPIO_Web/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/marios8543%2FGPIO_Web/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/marios8543%2FGPIO_Web/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/marios8543","download_url":"https://codeload.github.com/marios8543/GPIO_Web/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/marios8543%2FGPIO_Web/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":264034599,"owners_count":23547244,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["gpio","php","raspberry-pi"],"created_at":"2024-11-19T11:52:45.793Z","updated_at":"2025-10-19T00:28:35.612Z","avatar_url":"https://github.com/marios8543.png","language":"PHP","funding_links":[],"categories":[],"sub_categories":[],"readme":"# GPIO_Web\nAn API for controlling the Raspberry Pi GPIO pins written in PHP (Python version also available)\n\n## Dependencies:\nFor the PHP version:\n1. Apache2 w/ PHP modules\n2. WiringPi\nFor the Python version:\n1. Python3\n2. Flask\n\n## Usage:\nThe script accepts a GET request with the following parameters\n1. Action\n- Write (Writes a pin)\n- State (Gets the state of a pin in write mode)\n- Read (Reads the input of a pin)\n\n2. State\n- Can be 1 or 0 (PHP)\n- In the python version it can also be pullup or pulldown in read mode\n\n3. Pin\n- Can be any of the raspberry pi pins accessible by Wiring Pi\n(So pretty much all of them)  \nNote: In both APIs use the board pin numbering not bcm\n\n## Examples:\n\n###### Writing a pin\n` http://*IP_Address*/gpio_web.php?action=write\u0026pin=08\u0026state=1 `\n\n###### Getting the state of a pin in write mode:\n` http://*IP_Address*/gpio_web.php?action=state\u0026pin=08 `\n\n###### Reading an input pin:\n` http://*IP_Address*/gpio_web.php?action=read\u0026pin=08 `\n\nSimilar syntax in python but use ` http://*IP_Address*/gpio_web? ` instead  \nThe script will return a json-formatted result on a successful request or an error.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmarios8543%2Fgpio_web","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fmarios8543%2Fgpio_web","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmarios8543%2Fgpio_web/lists"}