1- # Steam
1+ # Steam API
22
33[ ![ Join the chat at https://gitter.im/syntaxerrors/Steam ] ( https://badges.gitter.im/Join%20Chat.svg )] ( https://gitter.im/syntaxerrors/Steam?utm_source=badge&utm_medium=badge&utm_campaign=pr-badge&utm_content=badge )
44
5- [ ![ Build Status] ( https://travis-ci.org/syntaxerrors/Steam.svg )] ( https://travis-ci.org/syntaxerrors/Steam )
6- [ ![ Scrutinizer Code Quality] ( https://scrutinizer-ci.com/g/syntaxerrors/Steam/badges/quality-score.png?b=master )] ( https://scrutinizer-ci.com/g/syntaxerrors/Steam/?branch=master )
5+ ![ Unit Tests] ( https://github.com/syntaxerrors/Steam/workflows/Unit%20Tests/badge.svg )
6+ [ ![ Maintainability] ( https://api.codeclimate.com/v1/badges/eb99d8de80e750fd4c27/maintainability )] ( https://codeclimate.com/github/syntaxerrors/Steam/maintainability )
7+ <a href =" https://codeclimate.com/github/syntaxerrors/Steam/test_coverage " ><img src =" https://api.codeclimate.com/v1/badges/eb99d8de80e750fd4c27/test_coverage " /></a >
78[ ![ Latest Stable Version] ( https://poser.pugx.org/syntax/steam-api/v/stable.svg )] ( https://packagist.org/packages/syntax/steam-api )
89[ ![ Total Downloads] ( https://poser.pugx.org/syntax/steam-api/downloads.svg )] ( https://packagist.org/packages/syntax/steam-api )
910[ ![ License] ( https://poser.pugx.org/syntax/steam-api/license.svg )] ( https://packagist.org/packages/syntax/steam-api )
1011
1112** Version Support**
12- ` Laravel >= 5.8 .0 `
13- ` PHP >= 7.2 .0 `
13+ ` Laravel >= 6 .0 `
14+ ` PHP >= 7.3 .0 `
1415
1516- [ Installation] ( #installation )
1617- [ Usage] ( #usage )
@@ -29,7 +30,7 @@ This package provides an easy way to get details from the Steam API service. Th
2930Begin by installing this package with composer.
3031
3132 "require": {
32- "syntax/steam-api": "2.1 .*"
33+ "syntax/steam-api": "2.3 .*"
3334 }
3435
3536Next, update composer from the terminal.
@@ -397,13 +398,25 @@ group| string or int | The ID or the name of the group. | Yes
397398
398399## Testing the Steam Package
399400
400- ** Install dependancies**
401- ` docker run -it --rm -v $PWD:/opt/app -w /opt/app --network host --name php nicekiwi/php composer install `
402-
403401A Steam API key must be provided or most tests will fail.
404402
405403** Run Tests**
406- ` docker run -it --rm -v $PWD:/opt/app -w /opt/app --network host --name php -e apiKey='YOUR_STEAM_API_KEY' nicekiwi/php ./vendor/bin/phpunit `
404+ ```
405+ # Install dependancies
406+ docker-compose run php composer install
407+
408+ # Run tests (assumes apiKey is set in .env file)
409+ docker-compose run php composer test
410+
411+ # Or with the apiKey inline
412+ docker-compose run -e api=YOUR_STEAM_API_KEY php composer test
413+
414+ # With coverage
415+ docker-compose run php composer coverage
416+
417+ # Play around
418+ docker-compose run php bash
419+ ```
407420
408421## Contributors
409422- [ Stygiansabyss] ( https://github.com/stygiansabyss )
@@ -415,3 +428,4 @@ A Steam API key must be provided or most tests will fail.
415428- [ JRizzle88] ( https://github.com/JRizzle88 )
416429- [ jastend] ( https://github.com/jastend )
417430- [ Teakowa] ( https://github.com/Teakowa )
431+ - [ Ben Sherred] ( https://github.com/bensherred )
0 commit comments