2017 © Pedro Peláez
 

library philer

Handle single file operations

image

xy2z/philer

Handle single file operations

  • Tuesday, April 10, 2018
  • by xy2z
  • Repository
  • 1 Watchers
  • 1 Stars
  • 15 Installations
  • PHP
  • 0 Dependents
  • 0 Suggesters
  • 0 Forks
  • 2 Open issues
  • 7 Versions
  • 15 % Grown

The README.md

Philer

Installation

Install the latest version with Composer. PHP 7.0 or above is required., (*1)

$ composer require xy2z/philer

Basic Usage

use xy2z\Philer\Philer;

$philer = new Philer('list.txt');
$philer->write(3.14);
$philer->write(array('a', 'b', 'c'));
echo $philer->read();
/* Result:
3.14
Array
(
    [0] => a
    [1] => b
    [2] => c
)
*/


// Load a new file and change options
$philer->load('new-list.txt');
$philer->set_option('var_dump', true);
$philer->write(3.14);
$philer->write(array('a', 'b', 'c'));
/* Result in 'new-list.txt':
float(3.14)
array(3) {
  [0]=>
  string(1) "a"
  [1]=>
  string(1) "b"
  [2]=>
  string(1) "c"
}
*/

Options

Options Description Default value
prepend_timestamp Prepends a timestamp before write() false
var_dump var_dump() each variable false
include_trace Prepend a trace before each write() false
write_prepend Prepend a string to each write() NULL
write_append Append a string to each write() PHP_EOL

The Versions

10/04 2018

dev-master

9999999-dev

Handle single file operations

  Sources   Download

MIT

The Requires

  • php >=7.0

 

by Alexander Pedersen

read write file filer

25/11 2017

0.3.1

0.3.1.0

Handle single file operations

  Sources   Download

MIT

The Requires

  • php >=7.0

 

by Alexander Pedersen

read write file filer

25/11 2017

0.3.0

0.3.0.0

Handle single file operations

  Sources   Download

MIT

The Requires

  • php >=7.0

 

by Alexander Pedersen

read write file filer

23/11 2017

0.2.3

0.2.3.0

Handle single file operations

  Sources   Download

MIT

The Requires

  • php >=7.0

 

by Alexander Pedersen

read write file filer

23/11 2017

0.2.2

0.2.2.0

Handle single file operations

  Sources   Download

MIT

The Requires

  • php >=7.0

 

by Alexander Pedersen

read write file filer

23/11 2017

0.2.1

0.2.1.0

Handle single file operations

  Sources   Download

MIT

The Requires

  • php >=7.0

 

by Alexander Pedersen

read write file filer

23/11 2017

0.2.0

0.2.0.0

Handle single file operations

  Sources   Download

MIT

The Requires

  • php >=7.0

 

by Alexander Pedersen

read write file filer