2017 © Pedro Peláez
 

library aliexpress-crawler

Get item information from aliexpress website

image

chougron/aliexpress-crawler

Get item information from aliexpress website

  • Saturday, March 10, 2018
  • by chougron
  • Repository
  • 3 Watchers
  • 3 Stars
  • 6 Installations
  • PHP
  • 0 Dependents
  • 0 Suggesters
  • 0 Forks
  • 0 Open issues
  • 8 Versions
  • 50 % Grown

The README.md

Aliexpress Crawler

Usage

Get the item crawler by calling, (*1)

$crawler = new \Chougron\AliexpressCrawler\Crawler();
$item = $crawler->crawlItem($itemUrl);

Available methods for the item crawler

getId() : string

Returns the ID of the item, (*2)

getUrl() : string

Returns the canonical URL of the item, (*3)

getGalleryImages() : string[]

Returns an array containing the gallery images of the item, (*4)

getName() : string

Returns the name of the item, (*5)

getShopName() : string

Returns the name of the shop selling the item, (*6)

getShopUrl() : string

Returns the URL of the shop selling the item, (*7)

getDescription() : string

Returns the description of the item, (*8)

getCost() : string

Returns the cost of the item, (*9)

getMaxCost() : string

Returns the maximum cost of the item, (*10)

getType() : string

Returns the type of the item. simple if there is no variation or configurable if there are some., (*11)

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., (*12)

getSkuImage(Sku $sku) : string

Returns the image identifying the given Sku., (*13)

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., (*14)

Available variables for the Sku object

id : string

The ID of the item Sku, (*15)

price : string

The price of the Sku, (*16)

quantity : string

The quantity remaining for the Sku, (*17)

Tests

To launch the tests, you need to install the vendors with composer, and then you can use the following command :, (*18)

./vendor/bin/phpunit --bootstrap vendor/autoload.php tests/

The Versions

10/03 2018

dev-master

9999999-dev

Get item information from aliexpress website

  Sources   Download

MIT

The Requires

  • php >=5.5

 

The Development Requires

by Camille Hougron

10/03 2018

v1.3.1

1.3.1.0

Get item information from aliexpress website

  Sources   Download

MIT

The Requires

  • php >=5.5

 

The Development Requires

by Camille Hougron

10/03 2018

v1.3.0

1.3.0.0

Get item information from aliexpress website

  Sources   Download

MIT

The Requires

  • php >=5.5

 

The Development Requires

by Camille Hougron

21/02 2018

dev-tests

dev-tests

Get item information from aliexpress website

  Sources   Download

MIT

The Requires

  • php >=5.5

 

The Development Requires

by Camille Hougron

17/02 2018

v1.2.1

1.2.1.0

Get item information from aliexpress website

  Sources   Download

MIT

The Requires

  • php >=5.5

 

by Camille Hougron

17/02 2018

v1.2.0

1.2.0.0

Get item information from aliexpress website

  Sources   Download

MIT

The Requires

  • php >=5.5

 

by Camille Hougron

08/02 2018

v1.1.0

1.1.0.0

Get item information from aliexpress website

  Sources   Download

MIT

The Requires

  • php >=5.5

 

by Camille Hougron

06/02 2018

v1.0.0

1.0.0.0

Get item information from aliexpress website

  Sources   Download

MIT

The Requires

  • php >=5.5

 

by Camille Hougron