| Package Data | |
|---|---|
| Maintainer Username: | invisnik |
| Maintainer Contact: | invis.nik@gmail.com (Nikita Brytkov) |
| Package Create Date: | 2016-04-25 |
| Package Last Update: | 2023-03-05 |
| Home Page: | |
| Language: | PHP |
| License: | MIT |
| Last Refreshed: | 2025-11-04 15:00:14 |
| Package Statistics | |
|---|---|
| Total Downloads: | 401 |
| Monthly Downloads: | 0 |
| Daily Downloads: | 0 |
| Total Stars: | 5 |
| Total Watchers: | 1 |
| Total Forks: | 6 |
| Total Open Issues: | 1 |
Redis or Memcached
Add this to your composer.json file, in the require object:
"invisnik/laravel-steam-inventory": "1.*"
After that, run composer install to install the package.
Add the service provider to app/config/app.php, within the providers array.
'providers' => [
// ...
Invisnik\LaravelSteamInventory\ServiceProvider::class,
]
The package is automatically added if you are in Laravel 5.5.
Lastly, publish the config file and configure it.
php artisan vendor:publish
namespace App\Http\Controllers;
use Invisnik\LaravelSteamInventory\SteamInventory;
class YourController extends Controller
{
/**
* @var SteamInventory
*/
private $steamInventory;
public function __construct(SteamInventory $steamInventory)
{
$this->steamInventory = $steamInventory;
}
public function index()
{
$user = App\User::find(1);
// $user->steamid = '76561198233097000'
$items = $this->steamInventory
->loadInventory($user->steamid, 730)->getInventoryWithDescriptions();
return view('your.view.file', compact('items'));
}
}