承接 guillermomartinez/filemanager-php 相关项目开发

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

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

guillermomartinez/filemanager-php

最新稳定版本:0.1.14

Composer 安装命令:

composer require guillermomartinez/filemanager-php

包简介

Filemanager for php, it is the connector to the File Manager, regardless of the GUI.

README 文档

README

It is the connector to the File Manager, guillermomartinez/filemanager-ui It is the GUI.

Required

  • PHP >= 5.4

Wiki

Wiki

Installation

composer require guillermomartinez/filemanager-php:0.1.*

Create file conector.php in folder public_html

<?php
include("vendor/autoload.php");
use GuillermoMartinez\Filemanager\Filemanager;

// Add your own authentication method
//if(!isset($_SESSION['username']) || $_SESSION['username']!="")
//  exit();
$extra = array(
	// path after of root folder
	// if /var/www/public_html is your document root web server
	// then source= usefiles o filemanager/usefiles
	"source" => "userfiles",
	// url domain
	// so that the files and show well http://php-filemanager.rhcloud.com/userfiles/imagen.jpg
	// o http://php-filemanager.rhcloud.com/filemanager/userfiles/imagen.jpg
	"url" => "http://php-filemanager.rhcloud.com/",
	"debug" => false,
	"images" => [
        	'resize'=>[
			// width,height,IF TRUE crop in width ELSEIF NULL is auto,IF TRUE crop in height ELSEIF NULL is auto
            		'medium' => array(340,180,true,true),
			'large' => array(1024,768,true,true),
        	]
    	],
	);
if(isset($_POST['typeFile']) && $_POST['typeFile']=='images'){
    $extra['type_file'] = 'images';
}
$f = new Filemanager($extra);
$f->run();
?>

Install https://github.com/guillermomartinez/filemanager-ui for user interface.

Demo

http://php-filemanager.rhcloud.com/

demo2 demo1 demo3

统计信息

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

GitHub 信息

  • Stars: 25
  • Watchers: 4
  • Forks: 16
  • 开发语言: PHP

其他信息

  • 授权协议: MIT
  • 更新时间: 2015-07-10