fighttheice / datatypes
Creating a standard for PHP datatypes
Installs: 0
Dependents: 0
Suggesters: 0
Security: 0
Stars: 4
Watchers: 0
Forks: 0
Open Issues: 0
pkg:composer/fighttheice/datatypes
Requires
- php: ^7.4
- brick/math: ^0.9.1
- fighttheice/exceptions: ^0.6.0
- illuminate/collections: ^8.13
- illuminate/macroable: ^8.11
- infection/infection: ^0.20.2
- nesbot/carbon: ^2.41
- nette/neon: ^3.2
- ramsey/uuid: ^4.1
- roave/dont: ^1.1
- spatie/laravel-collection-macros: ^7.0
- spatie/typed: ^0.1.1
- symfony/polyfill-php80: ^1.20
- symfony/string: ^5.1
- symfony/yaml: ^5.1
Requires (Dev)
- captainhook/captainhook: ^5.4
- composer/composer: ^2.0
- friendsofphp/php-cs-fixer: ^2.16
- phpstan/phpstan: ^0.12.54
- phpunit/phpunit: ^9.4
- vimeo/psalm: ^4.1
README
Creating confusion since 2020. Lets make PHP a bit more "typed" (ROFL)....
License
The code is currently released under the MIT license.
Installation
You can install the package via composer:
$ composer install fighttheice/datatypes
Tests
Tests are included in the tests/ directory. If you go to the root of the project and run ./vendor/bin/phpunit all the tests will run.
| Datatype | Type |
|---|---|
| Boolean | scalar |
| Integer | scalar |
| Float | scalar |
| String | scalar |
| Array | compound |
| Object | compound |
| Callable | compound |
| Iterable | compound |
| Resource | special |
| Null | special |
| Mixed | pseudo |
| Void | pseudo |
| Number | pseudo |
| String | pseudo |
| NumberString | scalar |
| UnicodeString | scalar |
| Uuid | complex |
| Datetime | complex |
| Closure | complex |
Releases
While releases have been made (even marked as production worthy) this project is still experimental.