{"id":15296513,"url":"https://github.com/arokettu/is-resource","last_synced_at":"2026-01-22T23:34:55.531Z","repository":{"id":56949839,"uuid":"409741895","full_name":"arokettu/is-resource","owner":"arokettu","description":"Future compatible is_resource() and get_resource_type() that can understand opaque objects","archived":false,"fork":false,"pushed_at":"2024-10-11T14:34:07.000Z","size":47,"stargazers_count":0,"open_issues_count":1,"forks_count":0,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-04-11T02:17:53.818Z","etag":null,"topics":["compatibility","php","php80","php81","resources"],"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/arokettu.png","metadata":{"files":{"readme":"README.md","changelog":"CHANGELOG.md","contributing":null,"funding":null,"license":"LICENSE.md","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":"2021-09-23T20:58:39.000Z","updated_at":"2024-10-11T14:34:11.000Z","dependencies_parsed_at":"2023-01-25T17:15:54.471Z","dependency_job_id":"1fb83a6a-f9bd-4df6-bc67-1c351b0c09d6","html_url":"https://github.com/arokettu/is-resource","commit_stats":{"total_commits":77,"total_committers":1,"mean_commits":77.0,"dds":0.0,"last_synced_commit":"50c004d36d468009916741fe19972c018506a1c9"},"previous_names":[],"tags_count":4,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/arokettu%2Fis-resource","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/arokettu%2Fis-resource/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/arokettu%2Fis-resource/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/arokettu%2Fis-resource/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/arokettu","download_url":"https://codeload.github.com/arokettu/is-resource/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":248770759,"owners_count":21159030,"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":["compatibility","php","php80","php81","resources"],"created_at":"2024-09-30T18:11:02.599Z","updated_at":"2026-01-22T23:34:55.498Z","avatar_url":"https://github.com/arokettu.png","language":"PHP","funding_links":[],"categories":[],"sub_categories":[],"readme":"# IsResource: PHP Resource Compatibility Helper\n\n[![Packagist](https://img.shields.io/packagist/v/arokettu/is-resource.svg?style=flat-square)](https://packagist.org/packages/arokettu/is-resource)\n[![PHP](https://img.shields.io/packagist/php-v/arokettu/is-resource.svg?style=flat-square)](https://packagist.org/packages/arokettu/is-resource)\n[![Packagist](https://img.shields.io/github/license/arokettu/is-resource.svg?style=flat-square)](https://opensource.org/licenses/MIT)\n[![Gitlab pipeline status](https://img.shields.io/gitlab/pipeline/sandfox/is-resource/master.svg?style=flat-square)](https://gitlab.com/sandfox/is-resource/-/pipelines)\n\n``is_resource()`` and ``get_resource_type()`` that can understand objects that replaced earlier resources.\n\n## Installation\n\n```bash\ncomposer require arokettu/is-resource\n```\n\n## Usage\n\n```php\n\u003c?php\n\nuse Arokettu\\IsResource as r;\n\n$hash = hash_init('md5');\n\n// vanilla functions:\nis_resource($hash); // true in PHP \u003c= 7.1, false in PHP \u003e= 7.2\nget_resource_type($hash); // \"Hash Context\" in PHP \u003c= 7.1, null or TypeError in PHP \u003e= 7.2\n\n// library functions:\nr\\is_resource($hash); // true\nr\\get_resource_type($hash); // \"Hash Context\"\n```\n\n## Documentation\n\nRead full documentation here: \u003chttps://sandfox.dev/php/is-resource.html\u003e\n\nAlso on Read the Docs: \u003chttps://is-resource.readthedocs.io/\u003e\n\n## Support\n\nPlease file issues on our main repo at GitLab: \u003chttps://gitlab.com/sandfox/is-resource/-/issues\u003e\n\nFeel free to ask any questions in our room on Gitter: \u003chttps://gitter.im/arokettu/community\u003e\n\n## License\n\nThe library is available as open source under the terms of the [MIT License].\n\n[MIT License]:  https://opensource.org/licenses/MIT\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Farokettu%2Fis-resource","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Farokettu%2Fis-resource","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Farokettu%2Fis-resource/lists"}