Skip to content

Commit 770b2b2

Browse files
Merge branch 'master' into patch-1
2 parents 41a0810 + ca28fcc commit 770b2b2

3 files changed

Lines changed: 26 additions & 26 deletions

File tree

.travis.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,9 @@
11
language: php
22

33
php:
4+
- 7.2
5+
- 7.1
46
- 7.0
5-
- 5.6
6-
- 5.5
77

88
notifications:
99
slack: nukacode:HyFrc2QLi5PC5fPxadm07O5v

README.md

Lines changed: 22 additions & 22 deletions
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@
1414
- [Usage](#usage)
1515
- [Contributors](#contributors)
1616

17-
This package provides an easy way to get details from the steam api service. The services it can access are:
17+
This package provides an easy way to get details from the Steam API service. The services it can access are:
1818

1919
- `ISteamNews`
2020
- `IPlayerService`
@@ -42,13 +42,13 @@ Once that is finished, add the service provider to `config/app.php`
4242

4343
> The alias to Steam is already handled by the package.
4444
45-
Lastly, publish the config file. You can get your API key from [Steam](http://steamcommunity.com/dev/apikey)
45+
Lastly, publish the config file. You can get your API key from [Steam](http://steamcommunity.com/dev/apikey).
4646

4747
php artisan vendor:publish
4848

4949
## Usage
5050

51-
Each service from the steam api has it's own methods you can use.
51+
Each service from the Steam API has its own methods you can use.
5252

5353
- [Global](#global)
5454
- [News](#news)
@@ -59,7 +59,7 @@ Each service from the steam api has it's own methods you can use.
5959
- [Group](#group)
6060

6161
### Global
62-
These are methods that are available to each service
62+
These are methods that are available to each service.
6363

6464
#### convertId
6565
This will convert the given steam ID to each type of steam ID (64 bit, 32 bit and steam ID3).
@@ -89,7 +89,7 @@ Steam::news()
8989
```
9090

9191
#### GetNewsForApp
92-
This method will get the news articles for a given app id. It has three parameters.
92+
This method will get the news articles for a given app ID. It has three parameters.
9393

9494
##### Arguments
9595

@@ -112,14 +112,14 @@ maxlength | int | The maximum number of characters to return | No | null
112112
### Player
113113
The [Player Service](https://developer.valvesoftware.com/wiki/Steam_Web_API#GetOwnedGames_.28v0001.29) is used to get details on players.
114114

115-
When instantiating the player class, you are required to pass a steamId or steam community ID.
115+
When instantiating the player class, you are required to pass a steamId or Steam community ID.
116116

117117
```php
118118
Steam::player($steamId)
119119
```
120120

121121
#### GetSteamLevel
122-
This method will return the level of the steam user given. It simply returns the integer of their current level.
122+
This method will return the level of the Steam user given. It simply returns the integer of their current level.
123123

124124

125125
> Example Output: [GetSteamLevel](./examples/player/GetSteamLevel.txt)
@@ -131,13 +131,13 @@ This will return a Syntax\Containers\Player_Level object with full details for t
131131
> Example Output: [GetPlayerLevelDetails](./examples/player/GetPlayerLevelDetails.txt)
132132
133133
#### GetBadges
134-
This call will give you a list of the badges that the player currently has. There is currently no schema for badges so all you will get is the id and details.
134+
This call will give you a list of the badges that the player currently has. There is currently no schema for badges, so all you will get is the ID and details.
135135

136136

137137
> Example Output: [GetBadges](./examples/player/GetBadges.txt)
138138
139139
#### GetOwnedGames
140-
GetOwnedGames returns a list of games a player owns along with some playtime information, if the profile is publicly visible. Private, friends-only, and other privacy settings are not supported unless you are asking for your own personal details (ie the WebAPI key you are using is linked to the steamid you are requesting).
140+
GetOwnedGames returns a list of games a player owns along with some playtime information, if the profile is publicly visible. Private, friends-only, and other privacy settings are not supported unless you are asking for your own personal details (i.e. the WebAPI key you are using is linked to the steamID you are requesting).
141141

142142
##### Arguments
143143

@@ -151,7 +151,7 @@ appIdsFilter | array | An array of appIds. These will be the only ones returned
151151
> Example Output: [GetOwnedGames](./examples/player/GetOwnedGames.txt)
152152
153153
#### GetRecentlyPlayedGames
154-
GetRecentlyPlayedGames returns a list of games a player has played in the last two weeks, if the profile is publicly visible. Private, friends-only, and other privacy settings are not supported unless you are asking for your own personal details (ie the WebAPI key you are using is linked to the steamid you are requesting).
154+
GetRecentlyPlayedGames returns a list of games a player has played in the last two weeks, if the profile is publicly visible. Private, friends-only, and other privacy settings are not supported unless you are asking for your own personal details (i.e. the WebAPI key you are using is linked to the steamID you are requesting).
155155

156156
##### Arguments
157157

@@ -204,7 +204,7 @@ This will return details on one or more users.
204204

205205
Name | Type | Description | Required | Default
206206
-----|------|-------------|----------|---------
207-
steamId| int[] | Steam id(s) to get details for | No | Steam id(s) passed to user()
207+
steamId| int[] | An array of (or singular) steam ID(s) to get details for | No | Steam ID passed to user()
208208

209209
```php
210210
// One user
@@ -247,14 +247,14 @@ steamId| int[] | An array of (or singular) steam id(s) to get details for | No
247247
### User Stats
248248
The [User Stats](https://developer.valvesoftware.com/wiki/Steam_Web_API#GetPlayerAchievements_.28v0001.29) WebAPI call is used to get details about a user's gaming.
249249

250-
When instantiating the user stats class, you are required to pass a steamId or steam community ID.
250+
When instantiating the user stats class, you are required to pass a steamID or Steam community ID.
251251

252252
```php
253253
Steam::userStats($steamId)
254254
```
255255

256256
#### GetPlayerAchievements
257-
Returns a list of achievements for this user by app id.
257+
Returns a list of achievements for this user by app ID.
258258

259259
##### Arguments
260260

@@ -266,38 +266,38 @@ appId| int | The id of the game you want the user's achievements in | Yes |
266266
> Example Output: [GetPlayerAchievements](./examples/user/stats/GetPlayerAchievements.txt)
267267
268268
#### GetGlobalAchievementPercentagesForApp
269-
This method will return a list of all chievements for the specified game and the percentage that each achievement has been unlocked.
269+
This method will return a list of all achievements for the specified game and the percentage of all users that have unlocked each achievement.
270270

271271
##### Arguments
272272

273273
Name | Type | Description | Required | Default
274274
-----|------|-------------|----------|---------
275-
appId| int | The id of the game you want the user's achievements in | Yes |
275+
appId| int | The ID of the game you want the user's achievements in | Yes |
276276

277277

278278
> Example Output: [GetGlobalAchievementPercentagesForApp](./examples/user/stats/GetGlobalAchievementPercentageForApp.txt)
279279
280280
#### GetUserStatsForGame
281-
Returns a list of achievements for this user by app id.
281+
Returns a list of achievements for this user by app ID.
282282

283283
##### Arguments
284284

285285
Name | Type | Description | Required | Default
286286
-----|------|-------------|----------|---------
287-
appId| int | The id of the game you want the user's achievements in | Yes |
287+
appId| int | The ID of the game you want the user's achievements in | Yes |
288288
all| boolean | If you want all stats and not just the achievements set to true.| No | FALSE
289289

290290

291291
> Example Output: [GetUserStatsForGame](./examples/user/stats/GetUserStatsForGame.txt) | [GetUserStatsForGame (all)](./examples/user/stats/GetUserStatsForGameAll.txt)
292292
293293
#### GetSchemaForGame
294-
Returns a list of game details including achievements and stats.
294+
Returns a list of game details, including achievements and stats.
295295

296296
##### Arguments
297297

298298
Name | Type | Description | Required | Default
299299
-----|------|-------------|----------|---------
300-
appId| int | The id of the game you want the details for. | Yes |
300+
appId| int | The ID of the game you want the details for. | Yes |
301301

302302

303303
> Example Output: [GetSchemaForGame](./examples/user/stats/GetSchemaForGame.txt)
@@ -322,12 +322,12 @@ appIds| int[] | The ids of the games you want details for | Yes |
322322
> Example Output: [appDetails](./examples/app/appDetails.txt)
323323
324324
#### GetAppList
325-
This method will return an array of app objects directly from steam. It includes the appId and the app name.
325+
This method will return an array of app objects directly from Steam. It includes the appID and the app name.
326326

327327
> Example Output: [GetAppList](./examples/app/GetAppList.txt)
328328
329329
### Group
330-
This service is used to get details on a steam group.
330+
This service is used to get details on a Steam group.
331331

332332
```php
333333
Steam::group()
@@ -340,7 +340,7 @@ This method will get the details for a group.
340340

341341
Name | Type | Description | Required | Default
342342
-----|------|-------------|----------|---------
343-
group| string or int | The id or the name of the group. | Yes
343+
group| string or int | The ID or the name of the group. | Yes
344344

345345
##### Example usage
346346

src/config/config.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -6,5 +6,5 @@
66
* You can get a steam API key from http://steamcommunity.com/dev/apikey
77
* Once you get your key, add it here.
88
*/
9-
'steamApiKey' => 'YOUR-API-KEY',
10-
);
9+
'steamApiKey' => env('STEAM_API_KEY'),
10+
);

0 commit comments

Comments
 (0)