Skip to content

Commit

Permalink
Documentation
Browse files Browse the repository at this point in the history
  • Loading branch information
vasa-c committed Apr 2, 2016
1 parent 71a5aa5 commit ebbeb48
Show file tree
Hide file tree
Showing 2 changed files with 25 additions and 2 deletions.
5 changes: 3 additions & 2 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,8 +1,9 @@
### dev
### 0.0.2 (02.04.2016)

* Fixed #4: changeGroup() changes owner instead group
* Documetation

### 0.0.1
### 0.0.1 (01.04.2016)

* FS - implementation of IFS
* RealFile - implementation of IFile
22 changes: 22 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -14,3 +14,25 @@ Real implementation of [axy/fs/ifs](https://github.com/axypro/fs-ifs).
* Tested on PHP 5.4+, PHP 7, HHVM (on Linux), PHP 5.5 (on Windows).
* Install: `composer require axy/fs-real`.
* License: [MIT](LICENSE).

## Documentation

It is an implementation of interfaces from [axy/fs-ifs](https://github.com/axypro/fs-ifs).
This implementation works with the real file system.

The class `FS` is implementation of `axy\fs\ifs\IFS`.

`FS::open()` returns an instance of `RealFile` class that is implementation of `axy\fs\ifs\IFile`.

Messages of the `FSError` exception are similar build-in functions WARNINGs.

## Bugs

The library successfully tested on PHP 5.4, 5.5, 5.5 and 7.0 via travis-ci.org.

For HHVM there are several little bugs:

* `copy()` does not throw exception if the source does not exist.
* `$file->getMetaData()` for closed `$file` does not throw an exception.
* If create a file using `createTempFile()` and gets meta data using `$file->getMetaData()` then the file `meta->filename` does not exists.

0 comments on commit ebbeb48

Please sign in to comment.