chougron/aliexpress-crawler 问题修复 & 功能扩展

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

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

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/

统计信息

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

GitHub 信息

  • Stars: 10
  • Watchers: 3
  • Forks: 2
  • 开发语言: PHP

其他信息

  • 授权协议: MIT
  • 更新时间: 2018-02-06

承接程序开发

PHP开发

VUE

Vue开发

前端开发

小程序开发

公众号开发

系统定制

数据库设计

云部署

网站建设

安全加固