chougron/aliexpress-crawler
Composer 安装命令:
composer require chougron/aliexpress-crawler
包简介
Get item information from aliexpress website
README 文档
README
Usage
Get the item crawler by calling
$crawler = new \Chougron\AliexpressCrawler\Crawler();
$item = $crawler->crawlItem($itemUrl);
Available methods for the item crawler
getId() : string
Returns the ID of the item
getUrl() : string
Returns the canonical URL of the item
getGalleryImages() : string[]
Returns an array containing the gallery images of the item
getName() : string
Returns the name of the item
getShopName() : string
Returns the name of the shop selling the item
getShopUrl() : string
Returns the URL of the shop selling the item
getDescription() : string
Returns the description of the item
getCost() : string
Returns the cost of the item
getMaxCost() : string
Returns the maximum cost of the item
getType() : string
Returns the type of the item. simple if there is no variation or configurable if there are some.
getSkus() : Sku[]
Returns an array containing the different Skus of the item. If the item is a simple item, the array will have only one element.
getSkuImage(Sku $sku) : string
Returns the image identifying the given Sku.
The Sku Object
The Sku Object correspond to the different variations of the item sold on the same page. It can have a different price, a different quantity of inventory, and a different image.
Available variables for the Sku object
id : string
The ID of the item Sku
price : string
The price of the Sku
quantity : string
The quantity remaining for the Sku
Tests
To launch the tests, you need to install the vendors with composer, and then you can use the following command :
./vendor/bin/phpunit --bootstrap vendor/autoload.php tests/
chougron/aliexpress-crawler 适用场景与选型建议
chougron/aliexpress-crawler 是一款 基于 PHP 开发的 Composer 扩展包,目前已累计 123 次下载、GitHub Stars 达 10, 最近一次更新时间为 2018 年 02 月 06 日, 在 PHP 生态内属于活跃度较高的组件。
我们在过去多个企业项目中使用过 chougron/aliexpress-crawler 或与其功能相近的方案,如果你在选型或落地过程中遇到问题,例如 版本兼容、二次改造、私有化封装、与内部系统对接、生产 BUG 排查,欢迎联系我们协助评估。
基于 chougron/aliexpress-crawler 在你已有业务上做功能扩展、字段裁剪、UI 适配、与内部账号 / 权限 / 日志系统的深度对接。
线上偶发问题、内存泄漏、慢查询、并发异常等排查修复;针对高流量场景做缓存、队列、索引层面的调优。
承接完整的项目从需求 → 设计 → 开发 → 上线 → 长期运维;也可按月提供技术保姆服务。
统计信息
- 总下载量: 123
- 月度下载量: 0
- 日度下载量: 0
- 收藏数: 11
- 点击次数: 6
- 依赖项目数: 0
- 推荐数: 0
其他信息
- 授权协议: MIT
- 更新时间: 2018-02-06