vinsinity/laravel-steam-inventory
Composer 安装命令:
composer require vinsinity/laravel-steam-inventory
包简介
Laravel Steam Inventory
README 文档
README
Dependencies
- Laravel cache driver, which supports tags. For example
RedisorMemcached
Installation Via Composer
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.
Laravel 5.4 and below
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.
Config Files
Lastly, publish the config file and configure it.
php artisan vendor:publish
Usage example
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')); } }
统计信息
- 总下载量: 4
- 月度下载量: 0
- 日度下载量: 0
- 收藏数: 0
- 点击次数: 0
- 依赖项目数: 0
- 推荐数: 0
其他信息
- 授权协议: MIT
- 更新时间: 2021-05-18