{"id":20898082,"url":"https://github.com/flavioheleno/pastry","last_synced_at":"2025-10-09T06:35:40.434Z","repository":{"id":38298430,"uuid":"345264693","full_name":"flavioheleno/pastry","owner":"flavioheleno","description":"Pastry is a handy tool to extract information from your Raspberry Pi.","archived":false,"fork":false,"pushed_at":"2025-03-26T22:05:12.000Z","size":144,"stargazers_count":3,"open_issues_count":3,"forks_count":0,"subscribers_count":2,"default_branch":"main","last_synced_at":"2025-08-04T10:25:24.059Z","etag":null,"topics":["bcm2711","bcm2835","bcm2836","bcm2837","hacktoberfest","raspberry-pi","raspberrypi","rpi"],"latest_commit_sha":null,"homepage":"","language":"PHP","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/flavioheleno.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":".github/FUNDING.yml","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,"zenodo":null},"funding":{"github":"flavioheleno","patreon":"flavioheleno","custom":"https://www.buymeacoffee.com/flavioheleno"}},"created_at":"2021-03-07T05:16:17.000Z","updated_at":"2025-03-26T22:05:16.000Z","dependencies_parsed_at":"2025-03-26T22:36:01.318Z","dependency_job_id":null,"html_url":"https://github.com/flavioheleno/pastry","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/flavioheleno/pastry","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/flavioheleno%2Fpastry","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/flavioheleno%2Fpastry/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/flavioheleno%2Fpastry/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/flavioheleno%2Fpastry/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/flavioheleno","download_url":"https://codeload.github.com/flavioheleno/pastry/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/flavioheleno%2Fpastry/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":279000835,"owners_count":26082951,"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","status":"online","status_checked_at":"2025-10-09T02:00:07.460Z","response_time":59,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"can_crawl_api":true,"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":["bcm2711","bcm2835","bcm2836","bcm2837","hacktoberfest","raspberry-pi","raspberrypi","rpi"],"created_at":"2024-11-18T11:08:50.788Z","updated_at":"2025-10-09T06:35:40.410Z","avatar_url":"https://github.com/flavioheleno.png","language":"PHP","funding_links":["https://github.com/sponsors/flavioheleno","https://patreon.com/flavioheleno","https://www.buymeacoffee.com/flavioheleno"],"categories":[],"sub_categories":[],"readme":"# Pastry [![Maintainability](https://api.codeclimate.com/v1/badges/2a6fccf8032894f30507/maintainability)](https://codeclimate.com/github/flavioheleno/pastry/maintainability) [![Total Downloads](https://poser.pugx.org/flavioheleno/pastry/downloads)](//packagist.org/packages/flavioheleno/pastry)\n\nPastry is a handy tool to extract information from your [Raspberry Pi](https://www.raspberrypi.org/).\n\n## Installation\n\nTo use Pastry, simple run:\n\n```bash\ncomposer require flavioheleno/pastry\n```\n\n## Usage\n\nThe Pastry library is super straightforward to use.\n\n```php\n/* Probe the system for information */\n$pi = Pastry\\Pi::probe();\n\n\n/* Board details */\n$board = $pi-\u003egetBoard();\n\n$board-\u003egetHardware();\n// string(7) \"BCM2711\"\n$board-\u003egetRevision();\n// string(6) \"d03114\"\n$board-\u003egetSerial();\n// string(16) \"xxxxxxxxxxxxxxxx\"\n$board-\u003egetModel();\n// string(30) \"Raspberry Pi 4 Model B Rev 1.4\"\n\n/* CPU details */\n$cpu = $pi-\u003egetCpu();\n\n$cpu-\u003egetCount();\n// int(4)\n$cpu-\u003egetModelName();\n// string(27) \"ARMv7 Processor rev 3 (v7l)\"\n$cpu-\u003egetBogoMips();\n// float(108)\n$cpu-\u003egetFeatures();\n// array(15) {\n//   [0]  =\u003e string(4) \"half\"\n//   [1]  =\u003e string(5) \"thumb\"\n//   [2]  =\u003e string(8) \"fastmult\"\n//   [3]  =\u003e string(3) \"vfp\"\n//   [4]  =\u003e string(4) \"edsp\"\n//   [5]  =\u003e string(4) \"neon\"\n//   [6]  =\u003e string(5) \"vfpv3\"\n//   [7]  =\u003e string(3) \"tls\"\n//   [8]  =\u003e string(5) \"vfpv4\"\n//   [9]  =\u003e string(5) \"idiva\"\n//   [10] =\u003e string(5) \"idivt\"\n//   [11] =\u003e string(6) \"vfpd32\"\n//   [12] =\u003e string(4) \"lpae\"\n//   [13] =\u003e string(7) \"evtstrm\"\n//   [14] =\u003e string(5) \"crc32\"\n// }\n$cpu-\u003egetImplementer();\n// int(65)\n$cpu-\u003egetArchitecture();\n// int(7)\n$cpu-\u003egetVariant();\n// int(0)\n$cpu-\u003egetPart();\n// int(3336)\n$cpu-\u003egetRevision();\n// int(3)\n\n/* Revision details */\n$revision = $pi-\u003egetRevision();\n\n$revision-\u003egetReleaseDate();\n// string(7) \"Q2 2020\"\n$revision-\u003egetOvervoltage();\n// int(0) - Overvoltage allowed\n$revision-\u003egetOtpProgram();\n// int(0) - OTP programming allowed\n$revision-\u003egetOtpRead();\n// int(0) - OTP reading allowed\n$revision-\u003egetWarranty();\n// int(0) - Warranty is intact\n$revision-\u003egetNewFlag();\n// int(1) - new-style revision\n$revision-\u003egetMemorySize();\n// int(5) - 8GB\n$revision-\u003egetManufacturer();\n// int(0) - Sony UK\n$revision-\u003egetProcessor();\n// int(3) - BCM2711\n$revision-\u003egetType();\n// int(17) - 4B\n$revision-\u003egetPcbRevision();\n// float(1.4)\n```\n\n## Supported Hardware\n\nThe table below lists the tested chips.\n\nRevision                            | Model                               | Contributor\n------------------------------------|-------------------------------------|------------\n[000e](tests/Fixtures/000e.txt)     | Raspberry Pi Model B Rev 2          | [flavioheleno](https://github.com/flavioheleno)\n[9000c1](tests/Fixtures/9000c1.txt) | Raspberry Pi Zero W Rev 1.1         | [flavioheleno](https://github.com/flavioheleno)\n[902120](tests/Fixtures/902120.txt) | Raspberry Pi Zero 2 W Rev 1.0       | [okiedork](https://github.com/okiedork)\n[a02082](tests/Fixtures/a02082.txt) | Raspberry Pi 3 Model B Rev 1.2      | [flavioheleno](https://github.com/flavioheleno)\n[a020d3](tests/Fixtures/a020d3.txt) | Raspberry Pi 3 Model B Plus Rev 1.3 | [okiedork](https://github.com/okiedork)\n[a21041](tests/Fixtures/a21041.txt) | Raspberry Pi 2 Model B Rev 1.1      | [okiedork](https://github.com/okiedork)\n[c03115](tests/Fixtures/c03115.txt) | Raspberry Pi 4 Model B Rev 1.5      | [flavioheleno](https://github.com/flavioheleno)\n[d03114](tests/Fixtures/d03114.txt) | Raspberry Pi 4 Model B Rev 1.4      | [flavioheleno](https://github.com/flavioheleno)\n[d04170](tests/Fixtures/d04170.txt) | Raspberry Pi 5 Model B Rev 1.0      | [flavioheleno](https://github.com/flavioheleno)\n\nIf you have a Raspberry Pi and you don't see its model revision listed here, please consider contributing the contents of your `/proc/cpuinfo`.\n\n## License\n\nThis library is licensed under the [MIT License](LICENSE).\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fflavioheleno%2Fpastry","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fflavioheleno%2Fpastry","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fflavioheleno%2Fpastry/lists"}