定制 gueff/idolon 二次开发

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

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

gueff/idolon

最新稳定版本:1.1.2

Composer 安装命令:

composer require gueff/idolon

包简介

PHP Image Server

README 文档

README

A PHP Image Server

Idolon is a PHP Image Server that can be used to get variations of your original images. Idolon resizes on the fly, serves the resized result directly and also saves the result.

Requirements

Installation

create the composer.json file with following content:

{
    "require": {
        "gueff/idolon":"1.1.2"
    }
}

run installation

$ composer install

Usage

Frontend HTML

<!DOCTYPE html>
<html lang="en">
    <head></head>
    <body>
    
        <!-- request an image with width 250px -->        
        <img src="example.php?i=example.jpg&x=250">
        
    </body>
</html>

Backend example.php

<?php

// Idolon Class
require_once 'Idolon.php';

$oIdolon = new \Idolon();
$oIdolon
    ->setImagePath(/path/to/my/image/folder/)
    ->serve();

see example folder

统计信息

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

GitHub 信息

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

其他信息

  • 授权协议: GPL-3.0-or-later
  • 更新时间: 2017-11-27