abyzs/vetmanager-visits

Vetmanager - CRM for veterinary. It is a library for counting accepted customers for one day and for a week.

dev-main 2021-08-12 09:06 UTC

This package is auto-updated.

Last update: 2022-05-12 10:41:19 UTC


README

Installation

composer require abyzs/vetmanager-visits

Examples

use Abyzs\VetmanagerVisits\VisitCounter;
use Abyzs\VetmanagerVisits\AuthApi;

$domain = new AuthApi('myclinic', 'api-key');
$visit = new VisitCounter();

/*
  Where 'myclinic' is first part from your clinic url. myclinic.vetmanager.ru
*/

echo $visit->dayCount($domain->getInvoices()); //Visits in one day
echo $visit->weekCount($domain->getInvoices()); //Visits Visits per week