quentindrouet/rendu1
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
quentindrouet/rendu1 适用场景与选型建议
quentindrouet/rendu1 是一款 基于 PHP 开发的 Composer 扩展包,目前已累计 3 次下载、GitHub Stars 达 0, 最近一次更新时间为 2023 年 07 月 04 日, 在 PHP 生态内属于活跃度较高的组件。
我们在过去多个企业项目中使用过 quentindrouet/rendu1 或与其功能相近的方案,如果你在选型或落地过程中遇到问题,例如 版本兼容、二次改造、私有化封装、与内部系统对接、生产 BUG 排查,欢迎联系我们协助评估。
基于 quentindrouet/rendu1 在你已有业务上做功能扩展、字段裁剪、UI 适配、与内部账号 / 权限 / 日志系统的深度对接。
线上偶发问题、内存泄漏、慢查询、并发异常等排查修复;针对高流量场景做缓存、队列、索引层面的调优。
承接完整的项目从需求 → 设计 → 开发 → 上线 → 长期运维;也可按月提供技术保姆服务。
统计信息
- 总下载量: 3
- 月度下载量: 0
- 日度下载量: 0
- 收藏数: 0
- 点击次数: 19
- 依赖项目数: 0
- 推荐数: 0
其他信息
- 授权协议: MIT
- 更新时间: 2023-07-04