PHPackages                             satooshi/file-client - PHPackages - PHPackages  [Skip to content](#main-content)[PHPackages](/)[Directory](/)[Categories](/categories)[Trending](/trending)[Leaderboard](/leaderboard)[Changelog](/changelog)[Analyze](/analyze)[Collections](/collections)[Log in](/login)[Sign up](/register)

1. [Directory](/)
2. /
3. [File &amp; Storage](/categories/file-storage)
4. /
5. satooshi/file-client

ActiveLibrary[File &amp; Storage](/categories/file-storage)

satooshi/file-client
====================

File reader/writer

0.1.0(13y ago)2511MITPHPPHP &gt;=5.3.0CI failing

Since Feb 12Pushed 13y ago1 watchersCompare

[ Source](https://github.com/satooshi/FileClient)[ Packagist](https://packagist.org/packages/satooshi/file-client)[ Docs](https://github.com/satooshi/FileClient)[ RSS](/packages/satooshi-file-client/feed)WikiDiscussions master Synced 1mo ago

READMEChangelogDependencies (1)Versions (2)Used By (0)

FileClient
==========

[](#fileclient)

[![Build Status](https://camo.githubusercontent.com/8c6d244eb919050cf43fd0277fc72ff83ee243aa6f3ee4fa3e23eeceb7a9d230/68747470733a2f2f7472617669732d63692e6f72672f7361746f6f7368692f46696c65436c69656e742e706e673f6272616e63683d6d6173746572)](https://travis-ci.org/satooshi/FileClient)

FileClient object can read from or write content to a file. And you can handle file read process for every line as you like by passing a callback or a closure to walk() method. This method is intended for database manipulation. For example, you can insert or update record from a read line.

Installation
============

[](#installation)

To install FileClient with Composer just add the following to your composer.json file:

```
// composer.json
{
    // ...
    require: {
        // ...
        "satooshi/file-client": "dev-master"
    }
}
```

Then, you can install the new dependencies by running Composer’s update command from the directory where your composer.json file is located:

```
# install
$ php composer.phar install
# update
$ php composer.phar update satooshi/file-client

# or you can simply execute composer command if you set composer command to
# your PATH environment variable
$ composer install
$ composer update satooshi/file-client
```

Packagist page for this library is

Or you can use git clone

```
# HTTP
$ git clone https://github.com/satooshi/FileClient.git
# SSH
$ git clone git@github.com:satooshi/FileClient.git
```

Usage
=====

[](#usage)

plain text file
---------------

[](#plain-text-file)

### construction

[](#construction)

```
