2017 © Pedro Peláez
 

yii2-extension yii2-file

File

image

hrupin/yii2-file

File

  • Saturday, January 9, 2016
  • by hrupin
  • Repository
  • 1 Watchers
  • 0 Stars
  • 10 Installations
  • PHP
  • 0 Dependents
  • 0 Suggesters
  • 0 Forks
  • 0 Open issues
  • 4 Versions
  • 0 % Grown

The README.md

File

File, (*1)

Installation

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

Either run, (*3)

php composer.phar require --prefer-dist hrupin/yii2-file "*"

or add, (*4)

"hrupin/yii2-file": "*"

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 hrupin\file\File;

$dir = '/some/your/dir';

$file = new File($dir, 'file.txt');
$file->readAllFile();
$file->readStrFile(10);
$file->closeFile();

$file->createFile($dir, 'anotherFile.txt');
$file->writeFile('You some text or data ...');
$file->writeFile('Add you some text or data ...');
$file->readAllFile();
$file->closeFile();

var_dump($file->getErrors());

The Versions

09/01 2016

dev-master

9999999-dev

File

  Sources   Download

MIT

The Requires

 

by Avatar hrupin

extension yii2

09/01 2016

0.1.2

0.1.2.0

File

  Sources   Download

MIT

The Requires

 

by Avatar hrupin

extension yii2

09/01 2016

0.1.1

0.1.1.0

File

  Sources   Download

MIT

The Requires

 

by Avatar hrupin

extension yii2

09/01 2016

0.1

0.1.0.0

File

  Sources   Download

MIT

The Requires

 

by Avatar hrupin

extension yii2