passchn/konzertmeister 问题修复 & 功能扩展

解决BUG、新增功能、兼容多环境部署,快速响应你的开发需求

邮箱:yvsm@zunyunkeji.com | QQ:316430983 | 微信:yvsm316

passchn/konzertmeister

最新稳定版本:v0.3.2

Composer 安装命令:

composer require passchn/konzertmeister

包简介

Konzertmeister Integration for PHP

README 文档

README

Installation

Install the package via composer:

composer require passchn/konzertmeister

Dependencies:

  • php ^8.1
  • guzzlehttp/guzzle ^7
  • nette/http ^3

Usage

// Copy the "Terminlisten-Link" with your filters (tags, types, ...) from this url:
// https://web.konzertmeister.app/export/list
// Note: Don't change the params as the hash will be invalid! 
$url = 'https://rest.konzertmeister.app/api/v3/org/OALS_4dad../upcomingappointments?types=1,2&limit=5&display=light&tags=22351,2024&hash=93af9...'

$guzzle = new GuzzleHttp\Client();
$options = new Passchn\Konzertmeister\Network\ClientOptions($guzzle, $url);

$client = new Passchn\Konzertmeister\Network\Client($options);

/** @var list<Passchn\Konzertmeister\Event\Event> **/
$events = $client->fetch();

If everything worked, $events will be an array of Passchn\Konzertmeister\Event\Event.

$event = current($events);
$eventName = $event->name;
$dateFrom = $event->start->format('d.m.Y');

echo "$eventName wird am $dateFrom stattfinden. Wir freuen uns auf Deinen Besuch!";

Contribution

Feel free to open a ticket or a pull request.

统计信息

  • 总下载量: 54
  • 月度下载量: 0
  • 日度下载量: 0
  • 收藏数: 4
  • 点击次数: 0
  • 依赖项目数: 0
  • 推荐数: 0

GitHub 信息

  • Stars: 4
  • Watchers: 2
  • Forks: 0
  • 开发语言: PHP

其他信息

  • 授权协议: MIT
  • 更新时间: 2023-07-10