PHP code example of phantom-d / shop-cart

1. Go to this page and download the library: Download phantom-d/shop-cart 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/ */

    

phantom-d / shop-cart example snippets



$_POST = [
    'product_id' => 1, // Тип `integer`, больше 0
    'quantity'   => 1, // Тип `integer`, в диапазоне от 1 до 10
];