Skip to content

Releases: reinder83/binary-flags

Maintenance release PHP 8+

06 Jun 09:35
4699074
Compare
Choose a tag to compare

Drop support for older PHP versions, better support for PHP 8+ and typehinting

Minor fixes

01 Aug 12:28
a599929
Compare
Choose a tag to compare
  • Moved $currentPos variable from trait to abstract class
  • Update readme

Move interfaces from trait to abstract

01 Aug 07:52
Compare
Choose a tag to compare
  • Moved the countable, iteratable and jsonserializable methods to the abstract method, so it doesn't interfere with other classes that use the trait instead of extending from the abstract class.
  • Update Eloquent model example in readme

Add iterable, countable, and jsonSerializable

30 Jul 10:31
Compare
Choose a tag to compare

This release makes it possible iterate over the set flags, do a count() to return the number of set flags and add support to json_encode the BinaryFlags object

Add static methods

22 Jul 13:17
Compare
Choose a tag to compare

Add static method getAllFlags
Add static method getAllFlagsMask

checkAnyFlag

12 Jun 19:49
Compare
Choose a tag to compare
  • Added checkAnyFlag method
  • Minor readme updates

Final release

12 Jun 14:23
Compare
Choose a tag to compare

Updated unittests to have 100% code completion.

Version 0.5

12 Jun 10:28
Compare
Choose a tag to compare

Updated readme and Bits notation

Trait support

13 Mar 14:18
Compare
Choose a tag to compare
  • Added Trait support
  • Travis and CodeCoverage fixes

Added bits class

02 Nov 09:54
Compare
Choose a tag to compare

Added a useful Bits class, which holds BIT constants, so you can assign your flags more easily