{"id":20748941,"url":"https://github.com/ducks-project/spl-types","last_synced_at":"2025-04-28T12:05:09.072Z","repository":{"id":56973079,"uuid":"46874588","full_name":"ducks-project/spl-types","owner":"ducks-project","description":"Polyfill Module for SplType PHP extension. This extension aims at helping people making PHP a stronger typed language and can be a good alternative to scalar type hinting. It provides different typehandling classes as such as integer, float, bool, enum and string","archived":false,"fork":false,"pushed_at":"2025-01-17T21:52:18.000Z","size":436,"stargazers_count":10,"open_issues_count":0,"forks_count":2,"subscribers_count":1,"default_branch":"7.x","last_synced_at":"2025-04-28T12:05:02.140Z","etag":null,"topics":["compat","component","enum","enumerator","php","polyfill","portability"],"latest_commit_sha":null,"homepage":"https://github.com/ducks-project/spl-types","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/ducks-project.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},"funding":{"github":["donaldinou"],"open_collective":"ducks-project"}},"created_at":"2015-11-25T16:49:28.000Z","updated_at":"2025-01-17T21:52:13.000Z","dependencies_parsed_at":"2024-09-13T22:00:26.736Z","dependency_job_id":"392543f8-6986-4d5b-b517-4a694943f9cf","html_url":"https://github.com/ducks-project/spl-types","commit_stats":{"total_commits":20,"total_committers":3,"mean_commits":6.666666666666667,"dds":"0.15000000000000002","last_synced_commit":"57fbd86788341f0d026c29f368058414f809870f"},"previous_names":[],"tags_count":3,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ducks-project%2Fspl-types","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ducks-project%2Fspl-types/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ducks-project%2Fspl-types/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ducks-project%2Fspl-types/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/ducks-project","download_url":"https://codeload.github.com/ducks-project/spl-types/tar.gz/refs/heads/7.x","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":251311329,"owners_count":21569009,"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":["compat","component","enum","enumerator","php","polyfill","portability"],"created_at":"2024-11-17T08:19:36.262Z","updated_at":"2025-04-28T12:05:09.065Z","avatar_url":"https://github.com/ducks-project.png","language":"PHP","funding_links":["https://github.com/sponsors/donaldinou","https://opencollective.com/ducks-project"],"categories":[],"sub_categories":[],"readme":"# SplTypes\n\n[![Github Action Status](https://github.com/ducks-project/spl-types/actions/workflows/php.yml/badge.svg)](https://github.com/ducks-project/spl-types)\n[![Coverage Status](https://coveralls.io/repos/github/ducks-project/spl-types/badge.svg)](https://coveralls.io/github/ducks-project/spl-types)\n[![CircleCI](https://dl.circleci.com/status-badge/img/gh/ducks-project/spl-types/tree/7.x.svg?style=svg)](https://dl.circleci.com/status-badge/redirect/gh/ducks-project/spl-types/tree/master)\n\n[![Scrutinizer Code Quality](https://scrutinizer-ci.com/g/ducks-project/spl-types/badges/quality-score.png)](https://scrutinizer-ci.com/g/ducks-project/spl-types/?branch=master)\n[![Code Coverage](https://scrutinizer-ci.com/g/ducks-project/spl-types/badges/coverage.png)](https://scrutinizer-ci.com/g/ducks-project/spl-types/?branch=master)\n[![Build Status](https://scrutinizer-ci.com/g/ducks-project/spl-types/badges/build.png)](https://scrutinizer-ci.com/g/ducks-project/spl-types/build-status/master)\n[![Code Intelligence Status](https://scrutinizer-ci.com/g/ducks-project/spl-types/badges/code-intelligence.svg)](https://scrutinizer-ci.com/code-intelligence)\n[![codecov Status](https://codecov.io/github/ducks-project/spl-types/graph/badge.svg?token=M3LBGQQ6N9)](https://codecov.io/github/ducks-project/spl-types)\n[![Appveyor status](https://ci.appveyor.com/api/projects/status/edj2aj94ebslnhy9?svg=true)](https://ci.appveyor.com/project/donaldinou/spl-types)\n\n[![Psalm Type Coverage](https://shepherd.dev/github/ducks-project/spl-types/coverage.svg)](https://shepherd.dev/github/ducks-project/spl-types)\n[![Psalm Level](https://shepherd.dev/github/ducks-project/spl-types/level.svg)](https://shepherd.dev/github/ducks-project/spl-types)\n\n[![License](https://poser.pugx.org/ducks-project/spl-types/license)](https://packagist.org/packages/ducks-project/spl-types)\n[![Latest Stable Version](https://poser.pugx.org/ducks-project/spl-types/v/stable)](https://packagist.org/packages/ducks-project/spl-types)\n[![PHP Version Require](https://poser.pugx.org/ducks-project/spl-types/require/php)](https://packagist.org/packages/ducks-project/spl-types)\n\n[![Total Downloads](https://poser.pugx.org/ducks-project/spl-types/downloads)](https://packagist.org/packages/ducks-project/spl-types)\n[![Monthly Downloads](https://poser.pugx.org/ducks-project/spl-types/d/monthly)](https://packagist.org/packages/ducks-project/spl-types)\n[![Daily Downloads](https://poser.pugx.org/ducks-project/spl-types/d/daily)](https://packagist.org/packages/ducks-project/spl-types)\n\n[![Duck's Validated](https://img.shields.io/badge/duck-validated-lightyellow)](https://opencollective.com/ducks-project)\n[![Packagist online](https://img.shields.io/badge/packagist-online-brightgreen)](https://opencollective.com/ducks-project)\n[![Documentation Status](https://readthedocs.org/projects/spl-types/badge/?version=latest)](https://spl-types.readthedocs.io/en/latest/?badge=latest)\n\n[![Contributor Covenant](https://img.shields.io/badge/Contributor%20Covenant-2.1-4baaaa.svg)](code_of_conduct.md)\n\n* Project page: https://github.com/ducks-project/spl-types\n* Repository: https://github.com/ducks-project/spl-types\n* Original PHP extension: http://php.net/manual/en/intro.spl-types.php\n\n[![CircleCI](https://dl.circleci.com/insights-snapshot/gh/ducks-project/spl-types/7.x/workflow/badge.svg?window=30d)](https://app.circleci.com/insights/github/ducks-project/spl-types/workflows/workflow/overview?branch=7.x\u0026reporting-window=last-30-days\u0026insights-snapshot=true)\n\n## Description\n\nThis extension aims at helping people making PHP a stronger typed language and can be a good alternative to scalar type hinting. It provides different typehandling classes as such as integer, float, bool, enum and string\n\nIt provides classes unavailable if you can't install [SPL Types](http://php.net/manual/en/intro.spl-types.php) extension:\n- [`SplType`]\n- [`SplInt`]\n- [`SplFloat`]\n- [`SplEnum`]\n- [`SplBool`]\n- [`SplString`]\n\n## General information\n\nSince [v7.0.0](./CHANGELOG.md#v700), breaking changes has appeared in relation to the pecl extension.\nThis is mainly due to the lack of maintenance and relevance of the original extension,\nassociated with the strong typing introduced in:\n[php 7.4](https://www.php.net/manual/en/language.types.declarations.php#language.types.declarations.strict)\nand the existence of [enums](https://www.php.net/manual/en/language.types.enumerations.php) since php 8.\n\n## Glossary\n\n- [Changelog]\n- [Lexique]\n- [Issues And Limitations]\n- [How To]\n\n## License\n\nThis library is released under the [MIT license].\n\n[`SplType`]: /assets/documentation/classes/SplType.md\n[`SplInt`]: /assets/documentation/classes/SplInt.md\n[`SplFloat`]: /assets/documentation/classes/SplFloat.md\n[`SplEnum`]: /assets/documentation/classes/SplEnum.md\n[`SplBool`]: /assets/documentation/classes/SplBool.md\n[`SplString`]: /assets/documentation/classes/SplString.md\n[`SplEnumerable`]: /assets/documentation/classes/SplEnumerable.md\n[`SplUnitEnum`]: /assets/documentation/classes/SplUnitEnum.md\n[`SplBackedEnum`]: /assets/documentation/classes/SplBackedEnum.md\n[Lexique]: /assets/documentation/Lexique.md\n[Issues And Limitations]: /assets/documentation/IssuesAndLimitations.md\n[How To]: /assets/documentation/HowTo.md\n[Changelog]: CHANGELOG.md\n[MIT license]: LICENSE\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fducks-project%2Fspl-types","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fducks-project%2Fspl-types","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fducks-project%2Fspl-types/lists"}