mirror of
https://github.com/Sysbot-org/tgscraper.git
synced 2024-12-27 03:55:50 +01:00
A PHP library used to extract JSON data (and auto-generate PHP classes) from Telegram bot API documentation page.
bot-apijson-schemaopenapiphpphp-code-generatorphp-frameworkschema-generationtelegramtelegram-bottelegram-bot-api
bin | ||
src | ||
.gitignore | ||
composer.json | ||
composer.lock | ||
LICENSE | ||
README.md | ||
ReturnTypeExtractor.php |
TGScraper
A PHP library used to extract JSON data (and auto-generate PHP classes) from Telegram bot API documentation page.
Note: the scraper is, obviously, based on a hack and you shouldn't rely on automagically generated files from it, since they are prone to errors. I'll try to fix them ASAP, but manual review is always required (at least for now).
Installation
Install the library with composer:
$ composer require sysbot/tgscraper
Using from command line
Once installed, you can use the CLI to interact with the library:
$ vendor/bin/tgscraper