syberisle/laravel-castable-archive
最新稳定版本:0.0.1
Composer 安装命令:
composer require syberisle/laravel-castable-archive
包简介
Tool for casting a model field as bzip or gzip
README 文档
README
This package allows you to cast a model attribute as a compressed value using either gzip or bzip.
Available Casts:
SyberIsle\Laravel\Cast\Archive\BzArchiveSyberIsle\Laravel\Cast\Archive\GzArchive
Installation
composer install syberisle/laravel-castable-archive
Usage
use SyberIsle\Laravel\Cast\Archive; class MyModel { protected $casts = [ 'field_name' => Archive\GzArchive::class ]; } $model->field_name = 'kakaw' // raw attribute = b"ËNÌN,\x07\x00" $value = $model->field_name; // = 'kakaw'
Changelog
Please see CHANGELOG for more information about recent changes.
Contributing
Please see CONTRIBUTING for details.
Security
If you've found a bug regarding security please report it via the security tab of this repository.
License
The MIT License (MIT). Please see License File for more information.
统计信息
- 总下载量: 6
- 月度下载量: 0
- 日度下载量: 0
- 收藏数: 0
- 点击次数: 0
- 依赖项目数: 0
- 推荐数: 0
其他信息
- 授权协议: MIT
- 更新时间: 2024-03-18