PHP code example of retail-cosmos / trx-mall-upload-sales-data-api

1. Go to this page and download the library: Download retail-cosmos/trx-mall-upload-sales-data-api 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/ */

    

retail-cosmos / trx-mall-upload-sales-data-api example snippets


$schedule->command('trx:send-sales')->daily();
bash
php artisan vendor:publish --tag="trx-mall-upload-sales-data-api-service"
bash
php artisan trx:send-sales --date=2024-11-31 --store_identifier=store1
bash
php artisan vendor:publish --tag="trx-mall-upload-sales-data-api-view"