eihmels / steam-price-overview
deliver some applications to work with the steam api
4.0.0
2023-01-26 13:37 UTC
Requires
- php: ^8.0
- ext-intl: *
- guzzlehttp/guzzle: ^7.5
- moneyphp/money: ^4.1
- symfony/http-foundation: ^6.0
Requires (Dev)
- ext-http: *
- mockery/mockery: ^1.4
- phpstan/phpstan: ^1.9
- phpunit/phpunit: ^9.5
- slevomat/coding-standard: ^6.4
- squizlabs/php_codesniffer: ^3.7
README
returns an Item Object based on the ItempriceOverview of Steam
Dependencies
Requirements:
>= PHP 8.0
Install and Usage
composer require eihmels/steam-price-overview
you can send a request to the market/priceOverview/ api from Steam. via the ModelItemPriceOverview.
execute will return a Item, which looks like this:
item:
Money lowestPrice
Money medianPrice
int volume
string name
lowestPrice
Money/Money value in Dollar
medianPrice
Money/Money value in Dollar. The average price at which the item has been sold. See the Steam marketplace item graph for a better understanding on how the median is calculated.
volume
a integer value - the total number of this specific item which has been sold/bought.
name
string value with the name of the Item.
Codequality Tools
run phpUnit
php ./vendor/bin/phpunit.phar --configuration ./phpunit.xml
php ./vendor/bin/phpunit.phar --coverage-html ./coverage-report
run phpstan
php ./vendor/bin/phpcs.phar --standard=./ruleset.xml ./src/*/
php ./vendor/bin/phpcs.phar --standard=./ruleset.xml ./tests/*
run phpstan
php ./vendor/bin/phpstan.phar analyse -l max ./src/