{"id":15296240,"url":"https://github.com/darkfriend/php5-type","last_synced_at":"2025-10-16T10:08:29.206Z","repository":{"id":56962462,"uuid":"229335317","full_name":"darkfriend/php5-type","owner":"darkfriend","description":null,"archived":false,"fork":false,"pushed_at":"2020-04-08T08:35:56.000Z","size":1,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-05-26T19:06:42.710Z","etag":null,"topics":["php","php5","strict-types","type-helper"],"latest_commit_sha":null,"homepage":null,"language":"PHP","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/darkfriend.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2019-12-20T20:58:09.000Z","updated_at":"2020-04-08T08:35:58.000Z","dependencies_parsed_at":"2022-08-21T05:40:20.610Z","dependency_job_id":null,"html_url":"https://github.com/darkfriend/php5-type","commit_stats":null,"previous_names":[],"tags_count":2,"template":false,"template_full_name":null,"purl":"pkg:github/darkfriend/php5-type","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/darkfriend%2Fphp5-type","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/darkfriend%2Fphp5-type/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/darkfriend%2Fphp5-type/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/darkfriend%2Fphp5-type/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/darkfriend","download_url":"https://codeload.github.com/darkfriend/php5-type/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/darkfriend%2Fphp5-type/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":279176263,"owners_count":26119651,"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-16T02:00:06.019Z","response_time":53,"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":["php","php5","strict-types","type-helper"],"created_at":"2024-09-30T18:09:49.198Z","updated_at":"2025-10-16T10:08:29.164Z","avatar_url":"https://github.com/darkfriend.png","language":"PHP","funding_links":[],"categories":[],"sub_categories":[],"readme":"# TypeHelper\r\n\r\n``composer require darkfriend/php5-type``\r\n\r\n* ```TypeHelper::toStrictType($value)``` - return $value to strict type\r\n\r\n## Example\r\n\r\n```php\r\nuse \\darkfriend\\helpers\\TypeHelper;\r\n\r\nvar_dump(\r\n    TypeHelper::toStrict('false'), // bool(false)\r\n    TypeHelper::toStrict(null), // NULL\r\n    TypeHelper::toStrict(0), // int(0)\r\n    TypeHelper::toStrict('0'), // int(0)\r\n    TypeHelper::toStrict('1'), // int(1)\r\n    TypeHelper::toStrict(1), // int(1)\r\n    TypeHelper::toStrict('1.1'), // float(1.1)\r\n    TypeHelper::toStrict(1.1), // float(1.1)\r\n    TypeHelper::toStrict(true), // bool(true)\r\n    TypeHelper::toStrict(false), // bool(false)\r\n    TypeHelper::toStrict('my string'), // string(9) \"my string\"\r\n    TypeHelper::toStrict('') // string(0) \"\"\r\n);\r\n```","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdarkfriend%2Fphp5-type","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fdarkfriend%2Fphp5-type","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdarkfriend%2Fphp5-type/lists"}