2017 © Pedro Peláez
 

yii2-extension yii2-filemanage

File Manage for Yii2

image

king52311/yii2-filemanage

File Manage for Yii2

  • Tuesday, April 24, 2018
  • by snuday
  • Repository
  • 0 Watchers
  • 0 Stars
  • 12 Installations
  • PHP
  • 0 Dependents
  • 0 Suggesters
  • 0 Forks
  • 0 Open issues
  • 2 Versions
  • 0 % Grown

The README.md

File Manage for Yii2

File Manage for Yii2, (*1)

Installation

The preferred way to install this extension is through composer., (*2)

Either run, (*3)

php composer.phar require --prefer-dist king52311/yii2-filemanage "*"

or add, (*4)

"king52311/yii2-filemanage": "*"

to the require section of your composer.json file., (*5)

Usage

Once the extension is installed, simply use it in your code by :, (*6)


use king52311\filemanage\Filemanage; ...... public function actionTest2() { $list = Filemanage::showFileList('./','/base/path/','aaa.txt'); var_dump($list);exit; }

Params

1) the first params is search directory relative path 2) the second params is will to substr base path for relative path 3) the third params is search file name to filter files., (*7)

Result, (*8)


``` ... ... 8 => array (size=4) 'file_path' => string './files/' (length=8) 'file_name' => string 'files' (length=5) 'file_type' => int 2 'file_ids' => string '' (length=0) 9 => array (size=4) 'file_path' => string './index.php' (length=11) 'file_name' => string 'index.php' (length=9) 'file_type' => int 1 'file_ids' => string '' (length=0) 10 => array (size=4) 'file_path' => string './robots.txt' (length=12) 'file_name' => string 'robots.txt' (length=10) 'file_type' => int 1 'file_ids' => string '' (length=0) 11 => array (size=4) 'file_path' => string './test.php' (length=10) 'file_name' => string 'test.php' (length=8) 'file_type' => int 1 'file_ids' => string '' (length=0) ... ..., (*9)

file_type: 1 file 2 directory ```, (*10)

The Versions

24/04 2018

dev-master

9999999-dev

File Manage for Yii2

  Sources   Download

BSD-4-Clause

The Requires

 

by Avatar snuday

extension yii2 file-manage

24/04 2018

1.0.0

1.0.0.0

File Manage for Yii2

  Sources   Download

BSD-4-Clause

The Requires

 

by Avatar snuday

extension yii2 file-manage