定制 arokettu/is-resource 二次开发

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

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

arokettu/is-resource

最新稳定版本:1.0.5

Composer 安装命令:

composer require arokettu/is-resource

包简介

Future compatible is_resource() and get_resource_type() that can understand objects that replaced earlier resources

README 文档

README

Packagist PHP Packagist Gitlab pipeline status

is_resource() and get_resource_type() that can understand objects that replaced earlier resources.

Installation

composer require arokettu/is-resource

Usage

<?php

use Arokettu\IsResource as r;

$hash = hash_init('md5');

// vanilla functions:
is_resource($hash); // true in PHP <= 7.1, false in PHP >= 7.2
get_resource_type($hash); // "Hash Context" in PHP <= 7.1, null or TypeError in PHP >= 7.2

// library functions:
r\is_resource($hash); // true
r\get_resource_type($hash); // "Hash Context"

Documentation

Read full documentation here: https://sandfox.dev/php/is-resource.html

Also on Read the Docs: https://is-resource.readthedocs.io/

Support

Please file issues on our main repo at GitLab: https://gitlab.com/sandfox/is-resource/-/issues

Feel free to ask any questions in our room on Gitter: https://gitter.im/arokettu/community

License

The library is available as open source under the terms of the MIT License.

统计信息

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

GitHub 信息

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

其他信息

  • 授权协议: MIT
  • 更新时间: 2021-09-23