PHP code example of oxid-academy / product-counter-service
1. Go to this page and download the library: Download oxid-academy/product-counter-service library. Choose the download type require. 2. Extract the ZIP file and open the index.php. 3. Add this code to the index.php.
<?php
require_once('vendor/autoload.php');
/* Start to develop here. Best regards https://php-download.com/ */
oxid-academy / product-counter-service example snippets
/** @var OxidAcademy\ProductCounterService\Counter $counter */
$container = ContainerFactory::getInstance()->getContainer();
$counter = $container->get(OxidAcademy\ProductCounterService\Counter::class);
var_dump($counter->count());