PHP code example of lpmatrix / cartie

1. Go to this page and download the library: Download lpmatrix/cartie library. Choose the download type require.

2. Extract the ZIP file and open the index.php.

3. Add this code to the index.php.
    
        
<?php
require_once('vendor/autoload.php');

/* Start to develop here. Best regards https://php-download.com/ */

    

lpmatrix / cartie example snippets

 php
Cartie::add(['id'=>1, 'name'=>'Airforce', 'price'=>150, 'quantity'=>1]);
 php
Cartie::update(['rowid'=>'c9f0f895fb98ab9159f51fd0297e236d', 'quantity'=>2]);
 php
Cartie::remove('c9f0f895fb98ab9159f51fd0297e236d');
 php
Cartie::clear();
 php
Cartie::contents();
 php
Cartie::totalItems();
 php
Cartie::totalPrice();