承接 quentindrouet/rendu1 相关项目开发

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

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

quentindrouet/rendu1

最新稳定版本:1.2.0

Composer 安装命令:

composer require quentindrouet/rendu1

包简介

A PHP library to scrape Valorant agent data from mandatory.gg and expose it as PHP objects.

README 文档

README

Valorant Agent Scraper is a PHP library that allows you to scrape data about agents from the game Valorant, available on the website mandatory.gg. This library fetches the agent's name and biography and represents it in a PHP object.

Requirements

  • PHP >= 8.0
  • Composer

Installation

composer require quentindrouet/rendu1

Usage

Here is an example that shows how you can use Valorant Agent Scraper to scrape data about agents from the website:

<?php

require_once 'vendor/autoload.php';

use Quentindrouet\Rendu1\ValorantAgentScraper;

// Create a new scraper instance
$scraper = new ValorantAgentScraper();

// Scrape the agents
$agents = $scraper->scrapeAgents();

// Output the scraped data
foreach ($agents as $agent) {
    echo "Name: " . $agent['name'] . "\n";
    echo "Biography: " . $agent['biography'] . "\n\n";
}

Testing

This library includes unit tests. To run the tests, first, make sure you have installed the dependencies with Composer, then run:

php vendor/bin/phpunit tests

Code Analysis

The library utilizes PHPStan for code analysis. To execute PHPStan, run:

php vendor/bin/phpstan analyse src tests --level max

Contributing

Contributions are welcome. Please make sure that your code follows the PSR-12 coding standard. You can use the PHP CS Fixer to check and fix coding standards:

php vendor/bin/php-cs-fixer fix src --rules=@PSR12
php vendor/bin/php-cs-fixer fix tests --rules=@PSR12

License

Valorant Agent Scraper is licensed under the MIT License

统计信息

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

GitHub 信息

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

其他信息

  • 授权协议: MIT
  • 更新时间: 2023-07-04