zeggriim/riot-api-datadragon 问题修复 & 功能扩展

解决BUG、新增功能、兼容多环境部署,快速响应你的开发需求

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

zeggriim/riot-api-datadragon

最新稳定版本:v3.0.0-beta

Composer 安装命令:

composer require zeggriim/riot-api-datadragon

包简介

Riot DataDragon API wrapper

README 文档

README

Introduction

Bienvenue sur le repo de la bibliothèque PHP DataDragon ! Le but de cette bibliothèque est de créer une bibliothèque facile à utiliser pour tous ceux qui en ont besoin.

Ce bundle Symfony 6 fournit une intégration simple et efficace avec l'API Riot Games notamment les données Data Dragon pour le jeu League of Legends. (D'autres API arrivent). Il permet d'accéder facilement aux informations sur les champions, les objets, les sorts et bien plus encore, directement depuis votre application Symfony.

Installation

Pour installer ce bundle, utilisez Composer :

composer require zeggriim/riot-api-data-dragon-bundle

Ajouter le bundle

// config/bundles.php
return [
    // Other Bundles
    Zeggriim\RiotApiDataDragon\RiotApiDataDragonBundle::class => ['all' => true],
];

Configuration

Dans le fichier .env de l'environnement souhaité, ajouter :

API_RIO_BASE_URI='https://ddragon.leagueoflegends.com'

Exemple

    namespace App\Controller;
    
    use Symfony\Component\HttpFoundation\Response;
    use Symfony\Component\Routing\Annotation\Route;
    use Zeggriim\RiotApiDataDragon\Endpoint\DataDragon\VersionApiInterface;
    
    class HomeController
    {
        #[Route('/home', name: 'app_home')]
        public function index(VersionApiInterface $versionApi): Response
        {
            $versionApi->getVersions();
            // ['14.8.1','14.7.1','14.6.1','14.5.1','14.4.1'....]
        }
    }

Liste Endpoints

Endpoint Interface
Champions & Champion ChampionApiInterface
Items ItemApiInterface
Languages LanguagesApiInterface
Profile Icon ProfileIconApiInterface
Versions VersionApiInterface

统计信息

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

GitHub 信息

  • Stars: 0
  • Watchers: 1
  • Forks: 0
  • 开发语言: PHP

其他信息

  • 授权协议: MIT
  • 更新时间: 2023-01-22

承接程序开发

PHP开发

VUE

Vue开发

前端开发

小程序开发

公众号开发

系统定制

数据库设计

云部署

网站建设

安全加固