定制 aungmyokyaw/smile-one 二次开发

按需修改功能、优化性能、对接业务系统,提供一站式技术支持

邮箱:yvsm@zunyunkeji.com | QQ:316430983 | 微信:yvsm316

aungmyokyaw/smile-one

最新稳定版本:v1.7.0

Composer 安装命令:

composer require aungmyokyaw/smile-one

包简介

README 文档

README

SmileOne

About

This package is specifically designed for the Smile.one , offering a simple and efficient method to purchase Smile One products using Laravel. Note - Currently, this package is intended for Mobile Legends Product from SmileOne

Installation

composer require aungmyokyaw/smile-one

Configuration

You will need to publish the configuration file to your application. You can do this using the following command:

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

After publishing the package's configuration file, you will find the file at config/smileone.php. You will need to fill out the necessary data in this file to use the package. The dafault region is Brazil.

Usage samples

    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


统计信息

  • 总下载量: 282
  • 月度下载量: 0
  • 日度下载量: 0
  • 收藏数: 11
  • 点击次数: 1
  • 依赖项目数: 0
  • 推荐数: 0

GitHub 信息

  • Stars: 11
  • Watchers: 2
  • Forks: 9
  • 开发语言: PHP

其他信息

  • 授权协议: MIT
  • 更新时间: 2023-11-30