1. Go to this page and download the library: Download fmtc/fmtc-php 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/ */
// Note: these methods return raw json
// Deal Feed
$fmtc->dealFeed()->fetchFull();
$fmtc->dealFeed()->fetchIncremental();
// Merchant Feed
$fmtc->merchantFeed()->fetchFull();
$fmtc->merchantFeed()->fetchIncremental();
// Category Feed
$fmtc->categoryFeed()->fetchFull();
// Type Feed
$fmtc->typeFeed()->fetchFull();
// Network Feed
$fmtc->networkFeed()->fetchFull();
// migrate the database
$fmtc->database()->migrate();
// rollback the migration
$fmtc->database()->rollbackMigration();
// Note: these methods pull down the JSON, parse it, normalize it, and store it in the database.
// Deal Feed
$fmtc->dealFeed()->processFull();
$fmtc->dealFeed()->processIncremental();
// Merchant Feed
$fmtc->merchantFeed()->processFull();
$fmtc->merchantFeed()->processIncremental();
// Category Feed
$fmtc->categoryFeed()->processFull();
// Type Feed
$fmtc->typeFeed()->processFull();
// Network Feed
$fmtc->networkFeed()->processFull();