Skip to content

Releases: Lenius/basket

Cleanup

31 Jul 23:38
Compare
Choose a tag to compare
v5.0.1

Bump year

Remove php 7

25 May 14:51
6724e49
Compare
Choose a tag to compare

What's Changed

New Contributors

Full Changelog: v4.0.2...v5.0.0

Tests updated to PHP 8.1

13 Dec 19:19
Compare
Choose a tag to compare

Tests updated to PHP 8.1
Php-cs-fixer updated

v4.0.1

10 Jan 12:53
Compare
Choose a tag to compare
Cleanup

PHP 7.4

06 Jan 22:47
Compare
Choose a tag to compare

PHP 7.4 target

Use 3.x if you are running older than 7.4

Minor changes

21 Mar 23:46
Compare
Choose a tag to compare
v3.0.1

Fix headers already sent

Use Interface for Item

25 Jan 18:39
d6aba2e
Compare
Choose a tag to compare

Breaking changes.

Basket insert only accept Class of type ItemInterface

$basket->insert(new Item([
'id' => 'foo',
'name' => 'bar',
'price' => 100,
'quantity' => 2,
'weight' => 300
]));

Fix docblock and more validation

27 Oct 16:35
Compare
Choose a tag to compare

Mostly code cleanup and phpstan fixes

Fix tax calculation with options

16 Oct 21:39
Compare
Choose a tag to compare
v2.0.1

Styleci - fix

New options structure

11 Oct 13:44
Compare
Choose a tag to compare

Possible breaking changes if you are using options.

New structure

    $this->basket->insert([
        'id'       => 'foo',
        'name'     => 'bar',
        'price'    => 100,
        'tax'      => 25,
        'quantity' => 1,
        'weight'   => 200,
        'options'  => [
            [
                'name'   => 'size',
                'price'  => -20,
                'weight' => 10,
            ],
            [
                'name'   => 'color',
                'price'  => 50,
                'weight' => -10,
            ],
        ],
    ]);