PHP code example of wsmwason / gamer-to-rss

1. Go to this page and download the library: Download wsmwason/gamer-to-rss 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/ */

    

wsmwason / gamer-to-rss example snippets




// 直接把帳號從 GET 傳入
$owner = isset($_GET['owner']) ? $_GET['owner'] : '';

// 從 GET 傳入欲抓取最大頁數
$maxPage = isset($_GET['maxCrawlPage']) ? $_GET['maxCrawlPage'] : 1;

// 讀取帳號的資料
$GamerHomeCreation = new wsmwason\gamer\GamerHomeCreation($owner);
$GamerHomeCreation->setOwner($owner);
$GamerHomeCreation->setMaxCrawlPage($maxPage);
$GamerHomeCreation->asXml();