library read-file
Read a file
jstewmc/read-file
Read a file
- Thursday, September 1, 2016
- by Jstewmc
- Repository
- 1 Watchers
- 0 Stars
- 36 Installations
- PHP
- 0 Dependents
- 0 Suggesters
- 0 Forks
- 0 Open issues
- 2 Versions
- 3 % Grown
read-file
Read a file., (*1)
use Jstewmc\ReadFile\Read;
file_put_contents('/path/to/foo.txt', 'foo');
(new Read())('/path/to/foo.txt'); // returns 'foo'
This library is a very simple read file service (see jstewmc/write-file for a simple write file service)., (*2)
This library wraps PHP's native file_get_contents() with a little robust error checking. If the file does not exist, the path is not actually a file, or the file is not readable, an InvalidArgumentException will be thrown., (*3)
That's it!, (*4)
Author
Jack Clayton, (*5)
License
MIT, (*6)
Version
0.1.0, August 31, 2016
dev-master
9999999-dev
Read a file
Sources
Download
MIT
The Requires
The Development Requires
by
Jack Clayton
read
file
php
jstewmc
v0.1.0
0.1.0.0
Read a file
Sources
Download
MIT
The Requires
The Development Requires
by
Jack Clayton
read
file
php
jstewmc