承接 skyline/component-image-tool 相关项目开发

从需求分析到上线部署,全程专人跟进,保证项目质量与交付效率

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

skyline/component-image-tool

Composer 安装命令:

composer require skyline/component-image-tool

包简介

README 文档

README

This package ships with an preconfigured API controller and a JS bundle to interact with images in your application.

Installation

$ composer require skyline/component-image-tool

Usage (Section PHP)

You need to create a subclass of the image tool api controller and route URIs to it.
You need to declare those URIs to the JS bundle.

<?php
use Skyline\ImageTool\Controller\AbstractImageToolAPIController;

class MyAPIController extends AbstractImageToolAPIController {
    /**
     * @route literal /api/v1/image-tool/fetch
     */
    public function fetchAction() {
        parent::fetchQueryAction( $_POST );
    }
    
    /**
     * @route literal /api/v1/image-tool/change
     * @role SKYLINE.ADMIN
     * @role SKYLINE.IMAGES.CHANGE
     */
    public function changeAction() {
        parent::changeQueryAction( $_POST );
    }
    
    /**
     * @route literal /api/v1/image-tool/put
     * @role SKYLINE.ADMIN
     * @role SKYLINE.IMAGES.UPLOAD
     */
    public function putAction() {
        parent::putQueryAction( $_POST, $_FILES );
    }
}

Usage (JS)

In Javascript you have a bunch of available classes to access and modify the persisted images in your application.

Then you can send queries by api calls to the controller.

const query = new Skyline.FetchQuery({
    reference: 'my-article',
    select:Skyline.FetchQuery.SELECT_NECESSARY
});

query.run( new Skyline.QueryTarget() );

统计信息

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

GitHub 信息

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

其他信息

  • 授权协议: MIT
  • 更新时间: 2020-12-18

承接程序开发

PHP开发

VUE

Vue开发

前端开发

小程序开发

公众号开发

系统定制

数据库设计

云部署

网站建设

安全加固