eihmels/steam-price-overview

deliver some applications to work with the steam api

4.0.0 2023-01-26 13:37 UTC

This package is auto-updated.

Last update: 2024-05-26 16:22:36 UTC


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/