dframe/filestorage

具有缓存的文件系统存储

v1.1.0 2022-09-08 12:44 UTC

This package is auto-updated.

Last update: 2024-09-08 17:05:09 UTC


README

Build Status Latest Stable Version Total Downloads Latest Unstable Version License

Flysystem 包装器,允许您存储文件和样式图像

预览

License

安装

composer require dframe/filestorage

简单用法

    $Storage->put('local', $_FILES['file']['tmp_name'], 'upload/picture1.jpg');
    $Storage->image('picture1.jpg')->stylist('Square')->size('250')->get();
    $Storage->image('picture1.jpg')->stylist('Rect')->size('250x550')->get();
    $Storage->image('fileNotExist.jpg', 'noImage.png')->stylist('Rect')->size('50x50')->get();
    $Storage->drop('local', 'upload/picture1.jpg');

文档可在以下位置找到 https://dframeframework.com/en/docs/fileStorage/master/configuration

包含什么?

  • 图像样式器
  • 存储文件和信息
  • 缓存生成器

功能

  • 图像上的文本

示例

针对 DframeFramework 的示例 示例 #1

静态图像样式器代码 PHP 示例 #2