承接 roanuz/php-cricket 相关项目开发

从需求分析到上线部署,全程专人跟进,保证项目质量与交付效率

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

roanuz/php-cricket

Composer 安装命令:

composer require roanuz/php-cricket

包简介

This is php-cricket library to show Cricket Live Scores, IPL, T20, etc.

README 文档

README

phpCricket library for Php using Roanuz Cricket API's. Easy to install and simple way to access all Roanuz Cricket API's. Its a Php library for showing Live Cricket Score, Cricket Schedule and Statistics.

Get Started

  1. Clone the php-Cricket Github project by using https://github.com/roanuz/php-cricket.git

                                 [OR]
    

    Install the phpCricket using Composer. Follow the below instructions.

    i) Download and install Composer by following the official instructions.
    ii) Create a composer.json defining your dependencies inside your project root directory.

    // 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,
       "require-dev": {
         "roanuz/php-cricket": "dev-master"
       }
    }

    iii) Run Composer: composer require --dev roanuz/php-cricket

    iv) You can find the phpCricket library(roanuz/php-cricket) inside the vendor folder.

  2. Create a Cricket API App here My APP Login

  3. Pass the required app credentials as below.

    Config Section

    // Create a new php file under your root directory. Inside that use this code.
    
    require_once __DIR__ . '/vendor/autoload.php';
    
    $phpCricket = new PhpCricket\PhpCriclib('your_access_key', 'your_secret_key', 'your_app_id', 'unique_device_id');
  4. After Completing Authentication you can successfully access the API's.

    Example

       
    // 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

To get the Live Score updates, you need to purchase the plan on CricketAPI Plans

Need More Code reference ?

Dive in to this file. Example Code to Access Roanuz Cricket API's

Here is List of Roanuz Cricket API's

Roanuz Cricket API

This Library uses the Roanuz Cricket API for fetching cricket scores and stats. Learn more about Litzscore Cricket API on https://www.cricketapi.com/ . Feel free to contact their amazing support team, if you got struck.

###Support If you any question, please contact litzscore support support@cricketapi.com

统计信息

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

GitHub 信息

  • Stars: 3
  • Watchers: 6
  • Forks: 11
  • 开发语言: PHP

其他信息

  • 授权协议: Apache-2.0
  • 更新时间: 2016-03-14

承接程序开发

PHP开发

VUE

Vue开发

前端开发

小程序开发

公众号开发

系统定制

数据库设计

云部署

网站建设

安全加固