{"id":16673080,"url":"https://github.com/ph-7/php-type-names","last_synced_at":"2025-04-09T20:05:56.279Z","repository":{"id":41573555,"uuid":"445308786","full_name":"pH-7/PHP-type-names","owner":"pH-7","description":"👉 \"PHP type names\" contains the list of constants for all PHP data types, to avoid hardcoding them 👌","archived":false,"fork":false,"pushed_at":"2022-12-06T09:23:03.000Z","size":36,"stargazers_count":6,"open_issues_count":0,"forks_count":1,"subscribers_count":2,"default_branch":"main","last_synced_at":"2025-04-09T20:05:50.884Z","etag":null,"topics":["constants","datatypes","magic-numbers","magicnumbers","php","php-constants","type-name","type-names","types"],"latest_commit_sha":null,"homepage":"https://pierrehenry.hashnode.dev","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/pH-7.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE.md","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2022-01-06T20:58:28.000Z","updated_at":"2024-12-06T15:22:47.000Z","dependencies_parsed_at":"2023-01-24T01:15:06.940Z","dependency_job_id":null,"html_url":"https://github.com/pH-7/PHP-type-names","commit_stats":null,"previous_names":[],"tags_count":3,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/pH-7%2FPHP-type-names","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/pH-7%2FPHP-type-names/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/pH-7%2FPHP-type-names/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/pH-7%2FPHP-type-names/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/pH-7","download_url":"https://codeload.github.com/pH-7/PHP-type-names/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":248103872,"owners_count":21048245,"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":["constants","datatypes","magic-numbers","magicnumbers","php","php-constants","type-name","type-names","types"],"created_at":"2024-10-12T12:24:31.796Z","updated_at":"2025-04-09T20:05:56.252Z","avatar_url":"https://github.com/pH-7.png","language":"PHP","funding_links":[],"categories":[],"sub_categories":[],"readme":"# PHP type names ⚡️\n\n*Get all valid PHP type names with constants* ✅\n\n## 📄 Overview\n\n*Simple library containing the list of constants for the available PHP data types. Use those constant types in your project when you need to mention a data type, use those constants instead of hardcoding them.*\n\n\n## ⚙️ Requirements\n\n* [PHP 7.3](https://www.php.net/releases/7_3_0.php) or newer.\n\n## ⚙️ Installation\n\nInstall it easily with [Composer](https://getcomposer.org/doc/00-intro.md)\n\n```bash\ncomposer require ph-7/datatype\n```\n\n## 🤠 Example\n\n```php\nrequire_once __DIR__ . '/vendor/autoload.php';\n\nuse PH7\\Datatype\\Type;\n\n$id = settype($_GET['id'], Type::STRING);\n\n$name = settype($inputName, Type::STRING);\n```\n\n\n## 😋 Who cooked it?\n\n[![Pierre-Henry Soria](https://s.gravatar.com/avatar/a210fe61253c43c869d71eaed0e90149?s=200)](https://ph7.me \"Pierre-Henry Soria personal website\")\n\n**[Pierre-Henry Soria](https://ph7.me)**, a highly passionate, zen \u0026amp; pragmatic software engineer 😊\n\n[![@phenrysay][twitter-image]](https://twitter.com/phenrysay) [![pH-7][github-image]](https://github.com/pH-7)\n\n\n## 📺 The Video\n\n[![Watch the video][video-thumbnail]](https://youtu.be/9v9g722dulE?t=453)\n\n👉 **[Watch on YouTube](https://youtu.be/9v9g722dulE?t=453)** 👈\n\n## ⚖️ License\n\n**PHP type names** is generously distributed under the *[MIT](https://opensource.org/licenses/MIT)*.\n\n\n\u003c!-- GitHub's Markdown reference links --\u003e\n[twitter-image]: https://img.shields.io/badge/Twitter-1DA1F2?style=for-the-badge\u0026logo=twitter\u0026logoColor=white\n[github-image]: https://img.shields.io/badge/GitHub-100000?style=for-the-badge\u0026logo=github\u0026logoColor=white\n[video-thumbnail]: https://i1.ytimg.com/vi/9v9g722dulE/sddefault.jpg\n\n\u003c!-- Generated by https://github.com/pH-7/cool-readme-generator --\u003e\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fph-7%2Fphp-type-names","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fph-7%2Fphp-type-names","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fph-7%2Fphp-type-names/lists"}