v1v2/php-client

JSON API to https://cov19vacsideeffects.online data

1.0.1 2021-04-19 11:02 UTC

This package is not auto-updated.

Last update: 2024-05-01 00:42:48 UTC


README

JSON API to https://cov19vacsideeffects.online data

How to install

composer require v1v2/php-client

#Usage

<?php

use V1V2\Client;
use V1V2\Security;

$client = new Client(
    new Security(),
    'your_api_key'
);

$result = $client->getTemperaturePiePlotsAllAge();

// gets all V1V2\PlotInterface plots from getTemperaturePiePlotsAllAge
$result->toArray(); 

// gets specific plot. see V1V2\PlotEnum for all available plots
$stage2Plot = $result->getByPlotType(\V1V2\PlotEnum::get(\V1V2\PlotEnum::PIE_TEMP_ALL_STAGE_2));