我问这个问题是因为我正在使用像 im0rtality/jsonstreamingparser
这样的包,这些包依赖于输入是 native php 流,例如通过调用get_resource_type()
。
如果不是直接的话,packagist 上是否有我的搜索没有找到的包装器库?
最佳答案
guzzle/psr7
通过其 StreamWrapper
类提供所需的功能:https://github.com/guzzle/psr7/blob/master/src/StreamWrapper.php
关于php - 我可以将 PSR-7 StreamInterfaces 与 PHP 的 native 流函数一起使用吗?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/32566324/