sarciszewski/php-future 问题修复 & 功能扩展

解决BUG、新增功能、兼容多环境部署,快速响应你的开发需求

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

sarciszewski/php-future

Composer 安装命令:

composer require sarciszewski/php-future

包简介

Polyfill new (5.6+) features into old (5.4+) versions of PHP

README 文档

README

Build Status

This library backports some new features into old versions of PHP.

This MIT Licensed project is produced and maintained for the good of the PHP developer community.

WARNING ABOUT APPLICATION SECURITY

This should ONLY be used in the case that you cannot upgrade PHP for specific reasons within your business rules. For best application security you should always run the latest version of PHP where ever possible. This is intended as a stop gap for those that cannot upgrade and can be used while working toward upgrading to the latest version.

ATTENTION PHP 5.2 / 5.3 USERS

As a general rule, we do not provide support for any unsupported versions of PHP. This means 5.4.x as of this writing.

If your operating system supports a 5.3.x version that is EOL'd (e.g. PHP 5.3.10 on Ubuntu 12.04 has security fixes backported), we will make exceptions. The purpose of this library is not to encourage complacency and insecurity. Patch your systems.

We do not support PHP 5.2.x anywhere. Please upgrade to a newer version of PHP.

Features polyfilled by this library

  • PHP 5.4
    • N/A
  • PHP 5.5
    • array_column()
    • boolval()
    • hash_pbkdf2()
    • openssl_pbkdf2()
  • PHP 5.6
    • hash_equals()
  • PHP 7.0
    • N/A

See wishlist.txt for features we will be providing as time goes on. To add to this list, either send a pull request, a tweet, or an email and we'll consider it for inclusion.

Out of scope:

Why?

When our consultants submit security enhancements to open source projects, the maintainers sometimes complain that some features are only in newer versions of PHP so they can't require them. We wrote this to provide compatibility across all versions of PHP and prevent these issues from occurring.

In the future, we will attempt to backport some PHP 7 features for use in versions 5.5 and 5.6, where possible.

How it Works

Features that only exist in future versions are exposed in the global namespace. These functions call the appropriate classes/methods from the src folder. This ensures that PHP only load the codes when it actually needs it.

How to use this library

Composer

composer require sarciszewski/php-future

Any script

Just include our autoload.php script outside of our src directory and you're good to go. For example:

require_once "vendor/sarciszewski/php-future/autoload.php";

sarciszewski/php-future 适用场景与选型建议

sarciszewski/php-future 是一款 基于 PHP 开发的 Composer 扩展包,目前已累计 1.54M 次下载、GitHub Stars 达 41, 最近一次更新时间为 2015 年 05 月 13 日, 在 PHP 生态内属于活跃度较高的组件。

它主要适用于以下技术方向: 「security」 「compatibility」 「future」 「hash_equals」 等业务场景。在实际项目中,围绕这些方向常见需要落地的问题包括:接口对接、性能调优、并发安全、与既有框架(Laravel / ThinkPHP / Yii / Webman 等)的兼容适配,以及生产环境的日志埋点与稳定性保障。

我们在过去多个企业项目中使用过 sarciszewski/php-future 或与其功能相近的方案,如果你在选型或落地过程中遇到问题,例如 版本兼容、二次改造、私有化封装、与内部系统对接、生产 BUG 排查,欢迎联系我们协助评估。

围绕 sarciszewski/php-future 我们能提供哪些服务?
定制开发 / 二次开发

基于 sarciszewski/php-future 在你已有业务上做功能扩展、字段裁剪、UI 适配、与内部账号 / 权限 / 日志系统的深度对接。

BUG 修复 & 性能优化

线上偶发问题、内存泄漏、慢查询、并发异常等排查修复;针对高流量场景做缓存、队列、索引层面的调优。

项目外包 & 长期维护

承接完整的项目从需求 → 设计 → 开发 → 上线 → 长期运维;也可按月提供技术保姆服务。

yvsm@zunyunkeji.com QQ:316430983 微信:yvsm316 西安尊云信息科技 · 专注 PHP / Go / 分布式系统研发

统计信息

  • 总下载量: 1.54M
  • 月度下载量: 0
  • 日度下载量: 0
  • 收藏数: 42
  • 点击次数: 34
  • 依赖项目数: 7
  • 推荐数: 0

GitHub 信息

  • Stars: 41
  • Watchers: 3
  • Forks: 5
  • 开发语言: PHP

其他信息

  • 授权协议: MIT
  • 更新时间: 2015-05-13