kin29 / ticket-hunter
You can search ticket info with artist-name(or keyword) from several vender.
v1.0.1
2019-06-28 05:53 UTC
Requires
- php: >=7.1.0
- fabpot/goutte: ^3.2
Requires (Dev)
- friendsofphp/php-cs-fixer: ^2.11
- phpmd/phpmd: ^2.6
- phpstan/phpstan-shim: ^0.10
- phpunit/phpunit: ^7.5
- squizlabs/php_codesniffer: ^3.2
This package is auto-updated.
Last update: 2023-05-18 02:03:33 UTC
README
You can search ticket info with artist-name(or keyword) from several vender.
If you use this, You Should be able to take tickets difficult to obtain.
You can choose.
- TicketPia
- Eplus
- LawsonTicket ※ unenable now
how to use
git clone git@github.com:kin29/ticket-hunter.git composer install
when you search multiple ticket-seller
※has key(=ticket-seller name)
- ticket-hunter/exmple.php
<?php require __DIR__ . '/vendor/autoload.php'; try { $ticketVendors = new Kin29\TicketHunter\TicketHunter(['TicketPia', 'Eplus']); $ticketVendors->echoJson($ticketVendors->getList('雨のパレード')); } catch (\Exception $e) { die($e->getMessage()); }
php ticket-hunter/example.php | jq
{
"TicketPia": [
{
"title" : "[ツアー名 or フェス名]",
"date_time": "[開演日]",
"pref_id": "[都道府県ID]",
"pref_name": "[都道府県名]",
"stage": "[ハコの名前]",
"sale_method": "[sale_method]", //(例) 先行 / 一般発売 ...etc
"sale_status": "[sale_status]", //(例) 予定枚数終了 / 受付中 / 受付終了 ...etc
"link": "[link]"
},
],
"Eplus": [
{
"title" : "[ツアー名 or フェス名]",
"date_time": "[開演日]",
"pref_id": "[都道府県ID]",
"pref_name": "[都道府県名]",
"stage": "[ハコの名前]",
"sale_method": "[sale_method]", //(例) 先行 / 一般発売 ...etc
"sale_status": "[sale_status]", //(例) 予定枚数終了 / 受付中 / 受付終了 ...etc
"link": "[link]"
},
],
"LawsonTicket": [
{
"title" : "[ツアー名 or フェス名]",
"date_time": "[開演日]",
"pref_id": "[都道府県ID]",
"pref_name": "[都道府県名]",
"stage": "[ハコの名前]",
"sale_method": "[sale_method]", //(例) 先行 / 一般発売 ...etc
"sale_status": "[sale_status]", //(例) 予定枚数終了 / 受付中 / 受付終了 ...etc
"link": "[link]"
},
]
}
when you search single ticket-seller
// TicketPiaの場合 $ticketPia = new Kin29\TicketHunter\Seller\TicketPia(); $ticketPia->echoJson($ticketPia->setKeyword('[artist-name(or keyword)]')->getList());
[
{
"title" : "[ツアー名 or フェス名]",
"date_time": "[開演日]",
"pref_id": "[都道府県ID]",
"pref_name": "[都道府県名]",
"stage": "[ハコの名前]",
"sale_method": "[sale_method]", //(例) 先行 / 一般発売 ...etc
"sale_status": "[sale_status]", //(例) 予定枚数終了 / 受付中 / 受付終了 ...etc
"link": "[link]"
},
{
"title" : "[ツアー名 or フェス名]",
"date_time": "[開演日]",
"pref_id": "[都道府県ID]",
"pref_name": "[都道府県名]",
"stage": "[ハコの名前]",
"sale_method": "[sale_method]", //(例) 先行 / 一般発売 ...etc
"sale_status": "[sale_status]", //(例) 予定枚数終了 / 受付中 / 受付終了 ...etc
"link": "[link]"
}
]