2017 © Pedro Peláez
 

library future

Polyfill backporting some PHP 5.4+, 5.5+ ,5.6+, 7.0+ and 7.1+ features to lower PHP versions.

image

tea/future

Polyfill backporting some PHP 5.4+, 5.5+ ,5.6+, 7.0+ and 7.1+ features to lower PHP versions.

  • Sunday, December 11, 2016
  • by davidkyalo
  • Repository
  • 1 Watchers
  • 0 Stars
  • 15 Installations
  • PHP
  • 6 Dependents
  • 0 Suggesters
  • 0 Forks
  • 0 Open issues
  • 2 Versions
  • 7 % Grown

The README.md

Tea Future

This package back-ports features found in the latest PHP versions. It provides many of the new features in PHP 5.4+, 5.5+ ,5.6+, 7.0+ and 7.1+ to lower PHP versions., (*1)

Most of these features are provided by symfony polyfill PHP packages., (*2)

Installation

Composer is required to install and load the dependencies., (*3)

On your composer managed project, run:, (*4)

composer require tea/future

Then load composer's autoloader:, (*5)

require 'vendor/autoload.php';

Features

Future provides many of the new PHP functions and classes introduced in PHP 5.4 through to PHP 7.1., (*6)

Here are the back-ported features by PHP version:, (*7)

PHP 7.1+

Functions:, (*8)

PHP 7.0+

Functions:, (*9)

Classes:, (*10)

Compatibility notes

To write portable code between PHP5 and PHP7, some care must be taken: - \*Error exceptions must be caught before \Exception; - after calling error_clear_last(), the result of $e = error_get_last() must be verified using isset($e['message'][0]) instead of null === $e., (*11)

PHP 5.6+

Functions:, (*12)

PHP 5.5+

Functions:, (*13)

PHP 5.4+

Functions:, (*14)

Other

If you only need a polyfill for a specific PHP version, you can simply install the respective symfony/polyfill-phpXX package., (*15)

License

This library is released under the MIT license., (*16)

The Versions

11/12 2016

dev-master

9999999-dev https://github.com/TeaLabs/future

Polyfill backporting some PHP 5.4+, 5.5+ ,5.6+, 7.0+ and 7.1+ features to lower PHP versions.

  Sources   Download

MIT

The Requires

 

portable shim polyfill compatibility

30/11 2016

v0.1.0

0.1.0.0 https://github.com/TeaLabs/future

Polyfill backporting some PHP 5.4+, 5.5+ ,5.6+, 7.0+ and 7.1+ features to lower PHP versions.

  Sources   Download

MIT

The Requires

 

portable shim polyfill compatibility