https://github.com/jclaveau/php-type-objects
Helpers for types
https://github.com/jclaveau/php-type-objects
Last synced: about 2 months ago
JSON representation
Helpers for types
- Host: GitHub
- URL: https://github.com/jclaveau/php-type-objects
- Owner: jclaveau
- License: mit
- Created: 2019-01-05T01:26:11.000Z (over 6 years ago)
- Default Branch: master
- Last Pushed: 2019-01-21T20:18:22.000Z (over 6 years ago)
- Last Synced: 2025-02-13T19:41:17.835Z (4 months ago)
- Language: PHP
- Size: 41 KB
- Stars: 0
- Watchers: 3
- Forks: 0
- Open Issues: 1
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# WIP: php-types
Helpers and classes for types# Guidelines
+ Native types are partial projections of more abstract types
+ Seek for an abstraction following intuition (ints and floats are numbers, string is an array of chars, ...)
+ Provide a way to control strictness of castings
+ Provide contracts (Interfaces and traits) to allow comparisons
+ Avoid useless fatal errors (e.g. is_nan on a non scalar)## Related
https://github.com/nikic/scalar_objects