ionware / filewriter
Quick and simple writing of text to files
Installs: 17
Dependents: 0
Suggesters: 0
Security: 0
Stars: 3
Watchers: 0
Forks: 0
Open Issues: 0
Type:package
Requires
- php: >=5.3
This package is not auto-updated.
Last update: 2024-04-14 00:54:30 UTC
README
Provides quick and easy approach to open and writes text to Files.
Installation
You will need to have PHP ~5.4
and composer
installed.
Simply use composer in your Terminal
composer require ionware/filewriter
Usage
Create an Instance of the fileWriter
and start writing.
<?php require "vendor/autoload.php"; use FileWriter\FileWriter; //Get an Instance of the Filewriter $fileWriter = FileWriter::open(__DIR__."/demofile"); $fileWriter->append("127.0.0.1\texchanger.ru") ->prepend("127.0.0.1\tapms.dev") ->save();
License
The MIT License (MIT). See License file for more information.