inanepain/polyfill

用于PHP向后兼容的多种Polyfill函数。

0.2.0 2023-06-25 16:24 UTC

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_idstream_isatty 函数;

  • ❏ PHP 7.3 中引入的 hrtime 函数;

  • ❏ PHP 7.4 中引入的 get_mangled_object_varsmb_str_splitpassword_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_firstarray_key_last 函数;

  • ✓ PHP 8.0 中引入的 str_contains 函数;

  • ✓ PHP 8.0 中引入的 str_starts_withstr_ends_with 函数;