Skip to content

Latest commit

 

History

History
27 lines (16 loc) · 759 Bytes

README.md

File metadata and controls

27 lines (16 loc) · 759 Bytes

Price parser

Source stores: trendyol.com, n11.com, defacto.com.tr, gittigidiyor.com

Example usage

Installation

clone git repo by using following command:
git clone https://github.com/softisoDev/price-parser.git

change directory to "price-parser" by using cd price-parser command

run this command: composer update

To use library you have to following load 'vendor/autoload.php' file:
require_once 'vendor/autoload.php';

Example usage:

  1. Parse price by url: see example/url.php file
  2. Parse price by static html content: see example/html.php file

Unit test

This project use https://github.com/pestphp/pest package for unit testing
To run rest write following command in project directory vendor\bin\pest