PHP code example of aungmyokyaw / smile-one

1. Go to this page and download the library: Download aungmyokyaw/smile-one 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/ */

    

aungmyokyaw / smile-one example snippets



    SmileOne::setProduct(#ProductName)->getProductList(#Region); // Get Product Points List
    // Replace '#ProductName' with your actual product name.
    // If left empty region, it will default to the Brazil region.
    // Example : SmileOne::setProduct('mobilelegends')->getProductList();
    // Example for different region : SmileOne::setProduct('mobilelegends')->getProductList('ph');
    
    SmileOne::setProduct(#ProductName)->getPoints(#Region); // Get Total Available SmilePoints With Product
    
    SmileOne::setProduct('mobilelegends')->getProduct(#Region); // Get Main Product
      
    SmileOne::setProduct(#ProductName,#ProductId)->setUser(#UserID,#UserZoneID)->checkProductPoints(#Region); // Check Points with User ID
      
    SmileOne::setProduct(#ProductName,#ProductId)->setUser(#UserID,#UserZoneID)->purchase(#Region); // Product Purchase




shel
php artisan vendor:publish --tag="smileone-config"