Skip to content

Commit

Permalink
Update README.md
Browse files Browse the repository at this point in the history
  • Loading branch information
joanfabregat committed Jan 31, 2020
1 parent 3e70189 commit 4b20007
Showing 1 changed file with 1 addition and 4 deletions.
5 changes: 1 addition & 4 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@
This PHP 7 library, strongly inspired by [Jeffrey Sambells' blog post](http://jeffreysambells.com/2012/10/25/human-readable-filesize-php),
computes a size in bytes in a human readable form.


## Installation
This library is available through [Packagist](https://packagist.org/packages/codeinc/human-readable-file-size)
and can be installed using [Composer](https://getcomposer.org/):
Expand All @@ -20,7 +21,6 @@ composer require codeinc/human-readable-file-size
<?php
use CodeInc\HumanReadableFileSize\HumanReadableFileSize;

# Simple usage
echo HumanReadableFileSize::getHumanSize(filesize('a-file.pdf'));
// outputs 2.88MB

Expand All @@ -45,9 +45,6 @@ echo $readableSize->compute(filesize('a-file.pdf'), 1);
// outputs 2,9 Mo
```




## License
This library is published under the MIT license (see the [LICENSE](LICENSE) file).

0 comments on commit 4b20007

Please sign in to comment.