devgeniem/linkedevents-client

1.3.0 2023-03-16 15:26 UTC

This package is auto-updated.

Last update: 2024-10-16 18:39:15 UTC


README

Extremely basic HTTP Call wrapper for LinkedEvents style API's.

Requires PHP 7.4, or later.

Installing

composer require devgeniem/linkedevents-client

Usage

<?php

require_once 'vendor/autoload.php';

$client = new \Geniem\LinkedEvents\LinkedEventsClient( 'https://www.example.com/api/v2' );
$multiple = $client->get_all( 'event', [
    'start' => '2021-01-17',
    'end'   => '2021-01-20',
] );

$single = $client->get( 'event/system:kKCxAqpRX' );

Changelog

Please see CHANGELOG for more information about what has changed recently.

Contributing

Contributions are highly welcome! Just leave a pull request of your awesome well-written must-have feature.

License

This project is licensed under the GPL-3.0 License.