定制 tea/future 二次开发

按需修改功能、优化性能、对接业务系统,提供一站式技术支持

邮箱:yvsm@zunyunkeji.com | QQ:316430983 | 微信:yvsm316

tea/future

Composer 安装命令:

composer require tea/future

包简介

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

README 文档

README

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.

Most of these features are provided by symfony polyfill PHP packages.

Installation

Composer is required to install and load the dependencies.

On your composer managed project, run:

composer require tea/future

Then load composer's autoloader:

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.

Here are the back-ported features by PHP version:

PHP 7.1+

Functions:

PHP 7.0+

Functions:

Classes:

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.

PHP 5.6+

Functions:

PHP 5.5+

Functions:

PHP 5.4+

Functions:

Other

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

License

This library is released under the MIT license.

统计信息

  • 总下载量: 100
  • 月度下载量: 0
  • 日度下载量: 0
  • 收藏数: 1
  • 点击次数: 0
  • 依赖项目数: 6
  • 推荐数: 0

GitHub 信息

  • Stars: 1
  • Watchers: 1
  • Forks: 0
  • 开发语言: PHP

其他信息

  • 授权协议: MIT
  • 更新时间: 2016-11-29

承接程序开发

PHP开发

VUE

Vue开发

前端开发

小程序开发

公众号开发

系统定制

数据库设计

云部署

网站建设

安全加固