定制 alex-kalanis/kw_images 二次开发

按需修改功能、优化性能、对接业务系统,提供一站式技术支持

邮箱:yvsm@zunyunkeji.com | QQ:316430983 | 微信:yvsm316

alex-kalanis/kw_images

Composer 安装命令:

composer require alex-kalanis/kw_images

包简介

Processing images in KWCMS

关键字:

README 文档

README

Build Status Scrutinizer Code Quality Latest Stable Version Minimum PHP Version Downloads License Code Coverage

Gallery on (remote) file system tree.

Working with images in tree-like gallery. Usually these libraries uses volume as their data source, but it is possible to set different (external) storage and use it. Just a few things cannot be done remotely and these will dump processed content locally and after changes returns it back to the storage.

PHP Installation

composer.phar require alex-kalanis/kw_images

(Refer to Composer Documentation if you are not familiar with composer)

PHP Usage

1.) Use your autoloader (if not already done via Composer autoloader)

2.) Add some external packages with connection to the local or remote services.

3.) Connect the "kalanis\kw_images\FilesHelper" into your app. Extends it for setting your case.

4.) Extend your libraries by interfaces inside the package.

5.) Just call setting and render in controllers

// Somewhere in DI
return function ($params): \kalanis\kw_images\Content\Images {
    return (new \kalanis\kw_images\Access\Factory())->getImages($params);
}
// Classes
class ProcessImages
{
    public function __construct(
        // ...
        protected readonly \kalanis\kw_images\Content\Images $images,
        // ...
    ) {}

    public function rotate(string $file, float $angle): bool
    {
        $path = (new \kalanis\kw_paths\ArrayPath())->setString($file);
        return $this->images->rotate($path->getArray(), $angle);
    }
}

Changes

  • 1.0 - initial version
  • 2.0 - has remote as storage, no volume operation directly here
  • 3.0 - has updated paths and following libraries
  • 4.0 - has updated code style and all libraries underneath
  • 5.0 - uses DateTime, tests with separated classes

统计信息

  • 总下载量: 1
  • 月度下载量: 0
  • 日度下载量: 0
  • 收藏数: 0
  • 点击次数: 0
  • 依赖项目数: 0
  • 推荐数: 0

GitHub 信息

  • Stars: 0
  • Watchers: 1
  • Forks: 0
  • 开发语言: PHP

其他信息

  • 授权协议: BSD-3-Clause
  • 更新时间: 2022-03-06

承接程序开发

PHP开发

VUE

Vue开发

前端开发

小程序开发

公众号开发

系统定制

数据库设计

云部署

网站建设

安全加固