quentindrouet/rendu1 问题修复 & 功能扩展

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

邮箱: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
  • 点击次数: 4
  • 依赖项目数: 0
  • 推荐数: 0

GitHub 信息

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

其他信息

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

承接程序开发

PHP开发

VUE

Vue开发

前端开发

小程序开发

公众号开发

系统定制

数据库设计

云部署

网站建设

安全加固