inanepain/polyfill

Various Polyfill functions for php backwards compatibility.

0.2.0 2023-06-25 16:24 UTC

This package is auto-updated.

Last update: 2024-04-25 18:07:21 UTC


README

Table of Contents

1. Overview

Various Polyfill functions for php backwards compatibility.

polyfill todo list
  • ❏ the is_iterable function introduced in PHP 7.1;

  • ❏ the enum_exists function introduced in PHP 8.1;

  • ❏ the spl_object_id and stream_isatty functions introduced in PHP 7.2;

  • ❏ the hrtime function introduced in PHP 7.3;

  • ❏ the get_mangled_object_vars, mb_str_split and password_algos functions introduced in PHP 7.4;

  • ❏ the fdiv function introduced in PHP 8.0;

  • ❏ the get_debug_type function introduced in PHP 8.0;

  • ❏ the get_resource_id function introduced in PHP 8.0;

  • ❏ the Attribute class introduced in PHP 8.0;

  • ✓ the array_column, boolval, json_last_error_msg and hash_pbkdf2 functions introduced in PHP 5.5;

  • ✓ the PhpToken class introduced in PHP 8.0 when * [ ] the tokenizer extension is enabled;

  • ✓ the Stringable interface introduced in PHP 8.0;

  • ✓ the is_countable function introduced in PHP 7.3;

  • ✓ the array_is_list function introduced in PHP 8.1;

  • ✓ the array_key_first and array_key_last functions introduced in PHP 7.3;

  • ✓ the str_contains function introduced in PHP 8.0;

  • ✓ the str_starts_with and str_ends_with functions introduced in PHP 8.0;