elyes/sonos-wrapper

Library to get information of every product sell by sonos

1.0.2 2023-07-06 08:55 UTC

This package is auto-updated.

Last update: 2024-05-06 10:40:37 UTC


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