PHP code example of roanuz / php-cricket

1. Go to this page and download the library: Download roanuz/php-cricket 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/ */

    

roanuz / php-cricket example snippets

rust
   // Copy this content into your composer.json file.

   {
    "repositories": [
        {
            "url": "https://github.com/roanuz/php-cricket.git",
            "type": "git"
        }
    ],
      "minimum-stability" : "dev",
      "prefer-stable" : true,
      "
rust
      
   // For getting particular match details.
   
   $getMatch = $phpCricket->getMatch('dev_season_2014_q1', 'summary_card');
   echo json_encode($getMatch); //Return Match Information in JSON format

   // For getting schedule details
   $getSchedule = $phpCricket->getSchedule('2013-05');
   echo json_encode($getSchedule); // Return Schedule Information in JSON format