From e2ba696bec3ebf6320db4c3b61b87781fb075413 Mon Sep 17 00:00:00 2001 From: Adel Khiter Date: Wed, 5 Jul 2023 16:56:05 +0200 Subject: [PATCH] update dependencies + readme --- README.md | 22 ++++++++++++++++++++++ composer.json | 6 +++--- 2 files changed, 25 insertions(+), 3 deletions(-) diff --git a/README.md b/README.md index 24c66a1..8e73b5e 100644 --- a/README.md +++ b/README.md @@ -2,6 +2,10 @@ ## Installation +```bash +composer install adelktr/open-source-td3 +``` + ## Local Development ```bash @@ -11,3 +15,21 @@ composer install ```bash php vendor/bin/phpstan analyse src --level=max ``` + +## What is it ? + +For the moment you can have 2 types of lists, the first is the list of all the motorcycles present on the site https://moto.suzuki.fr/, and the second is the list of all the motorcycles of the available site for bridle for The A2 license. + +All bikes + +```php +$allBikes = Adelktr\OpenSourceTd3\Scrap()->fetchAllBikes() +``` + +--- + +A2 bikes = `fetchAllA2Bikes()` + +```php +$allBikes = Adelktr\OpenSourceTd3\Scrap()->fetchAllA2Bikes() +``` diff --git a/composer.json b/composer.json index 70c7143..88a02da 100644 --- a/composer.json +++ b/composer.json @@ -19,9 +19,9 @@ "symfony/var-dumper": "^6.3" }, "require": { - "symfony/http-client": "^6.3", - "symfony/dom-crawler": "^6.3", - "symfony/css-selector": "^6.3" + "symfony/http-client": "^6.0||^6.3", + "symfony/dom-crawler": "^6.0||^6.3", + "symfony/css-selector": "^6.0||^6.3" }, "scripts": { "phpstan": "@php vendor/bin/phpstan analyse src --level=max",