Opis Closure
====================
[![Tests](https://github.com/opis/closure/workflows/Tests/badge.svg)](https://github.com/opis/closure/actions)
[![Latest Stable Version](https://poser.pugx.org/opis/closure/v/stable.png)](https://packagist.org/packages/opis/closure)
[![Latest Unstable Version](https://poser.pugx.org/opis/closure/v/unstable.png)](https://packagist.org/packages/opis/closure)
[![License](https://poser.pugx.org/opis/closure/license.png)](https://packagist.org/packages/opis/closure)
Serializable closures
---------------------
**Opis Closure** is a library that aims to overcome PHP's limitations regarding closure
serialization by providing a wrapper that will make all closures serializable.
**The library's key features:**
- Serialize any closure
- Serialize arbitrary objects
- Doesn't use `eval` for closure serialization or unserialization
- Works with any PHP version that has support for closures
- Supports PHP 7 syntax
- Handles all variables referenced/imported in `use()` and automatically wraps all referenced/imported closures for
proper serialization
- Handles recursive closures
- Handles magic constants like `__FILE__`, `__DIR__`, `__LINE__`, `__NAMESPACE__`, `__CLASS__`,
`__TRAIT__`, `__METHOD__` and `__FUNCTION__`.
- Automatically resolves all class names, function names and constant names used inside the closure
- Track closure's residing source by using the `#trackme` directive
- Simple and very fast parser
- Any error or exception, that might occur when executing an unserialized closure, can be caught and treated properly
- You can serialize/unserialize any closure unlimited times, even those previously unserialized
(this is possible because `eval()` is not used for unserialization)
- Handles static closures
- Supports cryptographically signed closures
- Provides a reflector that can give you information about the serialized closure
- Provides an analyzer for *SuperClosure* library
- Automatically detects when the scope and/or the bound object of a closure needs to be serialized
in order for the closure to work after deserialization
## Documentation
The full documentation for this library can be found [here][documentation].
## License
**Opis Closure** is licensed under the [MIT License (MIT)][license].
## Requirements
* PHP ^5.4 || ^7.0 || ^8.0
## Installation
**Opis Closure** is available on [Packagist] and it can be installed from a
command line interface by using [Composer].
```bash
composer require opis/closure
```
Or you could directly reference it into your `composer.json` file as a dependency
```json
{
"require": {
"opis/closure": "^3.5"
}
}
```
### Migrating from 2.x
If your project needs to support PHP 5.3 you can continue using the `2.x` version
of **Opis Closure**. Otherwise, assuming you are not using one of the removed/refactored classes or features(see
[CHANGELOG]), migrating to version `3.x` is simply a matter of updating your `composer.json` file.
### Semantic versioning
**Opis Closure** follows [semantic versioning][SemVer] specifications.
### Arbitrary object serialization
We've added this feature in order to be able to support the serialization of a closure's bound object.
The implementation is far from being perfect, and it's really hard to make it work flawless.
We will try to improve this, but we can't guarantee anything.
So our advice regarding the `Opis\Closure\serialize|unserialize` functions is to use them with caution.
[documentation]: https://www.opis.io/closure "Opis Closure"
[license]: http://opensource.org/licenses/MIT "MIT License"
[Packagist]: https://packagist.org/packages/opis/closure "Packagist"
[Composer]: https://getcomposer.org "Composer"
[SemVer]: http://semver.org/ "Semantic versioning"
[CHANGELOG]: https://github.com/opis/closure/blob/master/CHANGELOG.md "Changelog"
没有合适的资源?快使用搜索试试~ 我知道了~
最新咸鱼自动收货源码咸鱼自动收货源码
共133个文件
php:73个
md:11个
json:10个
需积分: 0 9 下载量 191 浏览量
2024-06-22
00:25:53
上传
评论 6
收藏 1.21MB ZIP 举报
温馨提示
咸鱼自动收货源码 源码介绍 最新可用的咸鱼自动收货网站源码,使用该源码可以生成闲鱼的运费保价页面,让买家在确认开通后自动收货。 省去手动收货的过程,并且能大大提高卖家交易的效率和用户使用体验。 通过该源码生成的运费保价页,后台可以自由的设置价格、规则和条件,用于满足不同用户的需求。 只要用户确认开通支付运费,系统就会自动触发发货和收货流程,从而自动收货,为您节省了不少时间和精力。 安装说明 运行环境 php版本7.4 不需要数据库 后台路径:域名/admin 后台账号:admin 后台密码:123456
资源推荐
资源详情
资源评论
收起资源包目录
最新咸鱼自动收货源码咸鱼自动收货源码 (133个子文件)
admin.css 20KB
index.css 3KB
login.css 2KB
common.css 1KB
phpunit.xml.dist 820B
phpunit.xml.dist 559B
.editorconfig 271B
3.gif 90KB
1.gif 88KB
2.gif 29KB
4.gif 20KB
.gitignore 52B
.gitignore 37B
.gitignore 27B
.gitignore 6B
云服务器安装宝塔面板搭建网站全过程(图文教程) - 副本 - 副本.html 458B
蜡笔傻新免费源码.html 437B
alipayjsapi.min.js 30KB
common.js 705B
installed.json 13KB
composer.json 1KB
composer.json 720B
composer.json 655B
composer.json 552B
composer.json 549B
composer.json 514B
composer.json 513B
composer.json 467B
list.json 195B
LICENSE 11KB
LICENSE 11KB
LICENSE 11KB
LICENSE 11KB
LICENSE 1KB
LICENSE 1KB
LICENSE 1KB
CHANGELOG.md 8KB
README.md 4KB
README.md 2KB
README.md 2KB
README.md 1KB
LICENSE.md 1KB
README.md 767B
CHANGELOG.md 746B
README.md 578B
README.md 563B
README.md 277B
NOTICE 306B
ReflectionClosure.php 41KB
SerializableClosure.php 21KB
Collection.php 16KB
ClassLoader.php 16KB
Arr.php 16KB
Container.php 15KB
InstalledVersions.php 15KB
ArrTest.php 14KB
index.php 10KB
Driver.php 8KB
helper.php 7KB
Str.php 7KB
ContainerTest.php 7KB
File.php 7KB
Captcha.php 7KB
Redis.php 6KB
CacheManager.php 6KB
GIFEncoder.php 6KB
login.php 6KB
Memcached.php 6KB
Memcache.php 5KB
CacheItem.php 5KB
CacheInterface.php 5KB
CacheItemPoolInterface.php 4KB
Wincache.php 4KB
ajax.php 4KB
CacheItemInterface.php 4KB
installed.php 4KB
TagSet.php 3KB
h5.php 3KB
Facade.php 3KB
autoload_static.php 2KB
StrTest.php 2KB
ClosureStream.php 2KB
CollectionTest.php 2KB
autoload_real.php 2KB
let.php 2KB
Analyzer.php 1KB
ClassNotFoundException.php 1KB
demo.php 1KB
ContainerInterface.php 1KB
autoload.php 1012B
Cache.php 1005B
InvalidArgumentException.php 997B
SecurityProvider.php 980B
functions.php 971B
platform_check.php 925B
autoload.php 771B
captcha.php 683B
ClosureContext.php 625B
FuncNotFoundException.php 618B
SelfReference.php 618B
共 133 条
- 1
- 2
资源评论
蜡笔傻新
- 粉丝: 3
- 资源: 3
上传资源 快速赚钱
- 我的内容管理 展开
- 我的资源 快来上传第一个资源
- 我的收益 登录查看自己的收益
- 我的积分 登录查看自己的积分
- 我的C币 登录后查看C币余额
- 我的收藏
- 我的下载
- 下载帮助
安全验证
文档复制为VIP权益,开通VIP直接复制
信息提交成功