steam-market-providers / enums
This library contains useful values that the Steam platform uses. For example filters, tags, currencies, categories. If you work with the market place, or parse Steam, you will need it.
1.0.5
2022-07-09 18:42 UTC
Requires
- php: >=8.1
Requires (Dev)
- friendsofphp/php-cs-fixer: ^3.8
- phpunit/phpunit: ^9.5
- vimeo/psalm: ^4.24
README
This library has collected all the necessary values of filters, currencies, countries, categories, and so on from the Steam service. If you are developing under steam, this library will come in handy.
Why do you need
- Who works with api steam
- Who is parsing the site
- Who parses the marketplace
- And in other cases of working with the steam platform
Install
composer require steam-market-providers/enums
Implementation List
- Steam App
- Steam Currency
- Steam Language
- Steam Global tag
- Steam Platform
- Steam Countries
- Steam Players
- Steam Visuals
- Steam Themes moods
- Steam Genre
- Steam Sub genre
- Steam Top level genre
How to use
Get app id
echo \KrepyshSpec\SteamEnums\SteamApp::CSGO->name; // CSGO echo \KrepyshSpec\SteamEnums\SteamApp::CSGO->value; // 730
Get all from SteamApp
$all = \KrepyshSpec\SteamEnums\SteamApp::cases(); var_dump($all); /** array(2) { [0]=> enum(KrepyshSpec\SteamEnums\SteamApp::CSGO) [1]=> enum(KrepyshSpec\SteamEnums\SteamApp::Dota2) } **/
Steam App
Total app games 2
echo SteamApp::Dota2->name // USD echo SteamApp::Dota2->value; // 570
Steam Currency
Total currencies 32
echo SteamCurrency::USD->name; // USD echo SteamCurrency::USD->value; // 1
Steam Language
Total languages 28
echo SteamLanguage::English->name; // English echo SteamLanguage::English->value; // english
Steam Global tag
Total tags 431
Using here Steam browse tag
echo SteamGlobalTag::Survival->name; // Survival echo SteamGlobalTag::Survival->value; // 1662
Steam Platforms
Total platforms 3
echo SteamPlatform::MacOS->name; // MacOS echo SteamPlatform::MacOS->value; // mac
Steam Countries
Total countries 259
echo SteamCountry::United_States->name; // United_States echo SteamCountry::United_States->value; // US
Support
For support, email evgeniymykhalichenko@gmail.com or telegram @krep1sh
License
MIT