https://github.com/swoole/ext-serialize
the fastest serialize function bound for php7
https://github.com/swoole/ext-serialize
Last synced: about 1 year ago
JSON representation
the fastest serialize function bound for php7
- Host: GitHub
- URL: https://github.com/swoole/ext-serialize
- Owner: swoole
- License: other
- Archived: true
- Created: 2016-09-26T01:54:07.000Z (over 9 years ago)
- Default Branch: master
- Last Pushed: 2021-08-27T03:25:03.000Z (almost 5 years ago)
- Last Synced: 2024-08-03T20:06:11.412Z (almost 2 years ago)
- Language: C
- Homepage:
- Size: 196 KB
- Stars: 93
- Watchers: 16
- Forks: 21
- Open Issues: 6
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
- awesome-php-extensions - ext-serialize - 序列化 (数据转换)
README
## swoole_serialize
## require
- PHP 7+
## install
```bash
phpize
./configure
make
make install
echo "extension=/path/to/swoole_serialize.so" >> php.ini
```
## features
- the fastest serialize function for php7+ (see bench.php,or you can bench it use you data,trust me it is cool!).
- support __sleep __wakeup __autoload etc.
## use
```php
$str = swoole_serialize::pack($arr);
$arr = swoole_serialize::unpack($str);
```
## contact us
- http://weibo.com/u/2661945152
## License
Apache License Version 2.0 see http://www.apache.org/licenses/LICENSE-2.0.html