Skip to content

Releases: chrisullyott/php-filesize

More efficient handling of integer sizes

17 Oct 22:54
Compare
Choose a tag to compare
v4.2.1

More efficient handling of integer sizes

Add decimal separator argument

17 Oct 03:58
Compare
Choose a tag to compare

Adds an argument defining the decimal separator for numbers. In this release, the same character will be used both when parsing and when formatting the resulting size string.

Improve StringParser regex

10 Jan 15:38
Compare
Choose a tag to compare

Ensures the correct position of the dash for negative values.

Add __toString()

11 Dec 06:02
Compare
Choose a tag to compare

Adds the "toString" method.

Support negative values

07 Nov 00:19
Compare
Choose a tag to compare

In this release, negative values are supported. You may now #add or #subtract negative values, like -20 MB. Subtracting more bytes than are added will result in negative output, like -20 MB instead of simply 0.

Add ability to add/subtract arrays

28 Aug 21:50
Compare
Choose a tag to compare

The add() and subtract() methods now accept arrays of items.

Add decimal base support

22 Jun 06:58
Compare
Choose a tag to compare

Decimal fans rejoice... now you can use the decimal system instead of binary. Set 10 as the second argument when instantiating.

Add unit map key lookup arrays

07 Jun 22:04
Compare
Choose a tag to compare

Improves speed by about another 10% on large data sets.

Refactoring

29 May 14:03
Compare
Choose a tag to compare
v3.0.1

Refactoring

Refactoring, updated method names

29 May 13:56
Compare
Choose a tag to compare

multiply/divide is now multiplyBy/divideBy