inanepain / polyfill
用于PHP向后兼容的多种Polyfill函数。
Requires
- php: >=5.0
- inanepain/stdlib: *
- psr/log: dev-master
This package is auto-updated.
Last update: 2024-09-25 19:20:32 UTC
README
目录1. 简介
用于PHP向后兼容的多种Polyfill函数。
polyfill 待办事项列表-
❏ PHP 7.1 中引入的
is_iterable函数; -
❏ PHP 8.1 中引入的
enum_exists函数; -
❏ PHP 7.2 中引入的
spl_object_id和stream_isatty函数; -
❏ PHP 7.3 中引入的
hrtime函数; -
❏ PHP 7.4 中引入的
get_mangled_object_vars、mb_str_split和password_algos函数; -
❏ PHP 8.0 中引入的 fdiv 函数;
-
❏ PHP 8.0 中引入的
get_debug_type函数; -
❏ PHP 8.0 中引入的
get_resource_id函数; -
❏ PHP 8.0 中引入的
Attribute类; -
✓ PHP 5.5 中引入的
array_column、boolval、json_last_error_msg 和 hash_pbkdf2 函数; -
✓ 当 * [ ] tokenizer 扩展启用时,PHP 8.0 中引入的
PhpToken类; -
✓ PHP 8.0 中引入的
Stringable接口; -
✓ PHP 7.3 中引入的
is_countable函数; -
✓ PHP 8.1 中引入的
array_is_list函数; -
✓ PHP 7.3 中引入的
array_key_first和array_key_last函数; -
✓ PHP 8.0 中引入的
str_contains函数; -
✓ PHP 8.0 中引入的
str_starts_with和str_ends_with函数;