2017 © Pedro Peláez
 

library write-file

Write a file

image

jstewmc/write-file

Write a file

  • Thursday, September 1, 2016
  • by Jstewmc
  • Repository
  • 1 Watchers
  • 0 Stars
  • 16 Installations
  • PHP
  • 0 Dependents
  • 0 Suggesters
  • 0 Forks
  • 0 Open issues
  • 2 Versions
  • 7 % Grown

The README.md

write-file

Write a file., (*1)

use Jstewmc\WriteFile\Write;

(new Write())('/path/to/foo.txt', 'foo');

file_get_contents('/path/to/foo.txt');  // returns 'foo'

This library is a very simple write file service (see jstewmc/read-file for a simple read file service)., (*2)

This library wraps PHP's native file_put_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 about it!, (*4)

Author

Jack Clayton, (*5)

License

MIT, (*6)

Version

0.1.0, August 31, 2016

  • Initial release

The Versions

01/09 2016

dev-master

9999999-dev

Write a file

  Sources   Download

MIT

The Requires

  • php ^7.0

 

The Development Requires

by Jack Clayton

write file php jstewmc

01/09 2016

v0.1.0

0.1.0.0

Write a file

  Sources   Download

MIT

The Requires

  • php ^7.0

 

The Development Requires

by Jack Clayton

write file php jstewmc