elyes / sonos-wrapper
Library to get information of every product sell by sonos
1.0.2
2023-07-06 08:55 UTC
Requires
- php: >=8.0
- symfony/css-selector: ^6.0||^6.3
- symfony/dom-crawler: ^6.0||^6.3
- symfony/http-client: ^6.0||6.3
Requires (Dev)
- phpstan/phpstan: ^1.10
- phpunit/phpunit: ^9.6||^10.2
README
Library to get information of every product sell by sonos
Installation
composer require elyes/sonos-wrapper
Local development
composer install
php vendor/bin/phpstan analyze src --level=max
Usage
When you install the library you will have access to multiple function
Get all categories
Retrieve all categories from sonos website
$api = new \Elyes\SonosWrapper\Api()->getCategories();
return an array of categories
Get all products of category
Retrieve all products of a category
Put a category name as parameter, you can get the category name from the previous function
$api = new \Elyes\SonosWrapper\Api()->getProductsByCategory(String $category);
return an array of products
Get product information
Retrieve all information of a product
Put a product name as parameter, you can get the product name from the previous function
$api = new \Elyes\SonosWrapper\Api()->getProduct(String $product);
return an array of product information