haoyuqi / download-bing-wallpaper
Retrieve Bing wallpaper metadata by date through a versioned JSON Artisan command.
Package info
github.com/haoyuqi/download-bing-wallpaper
pkg:composer/haoyuqi/download-bing-wallpaper
3.0.0
2026-09-03 14:35 UTC
Requires
- php: ^8.3
- ext-json: *
- illuminate/console: ^13.0
- illuminate/http: ^13.0
- illuminate/support: ^13.0
Requires (Dev)
- larastan/larastan: ^3.10
- laravel/pint: ^1.30
- orchestra/testbench: ^11.0
- phpstan/phpstan: ^2.2
- phpunit/phpunit: ^12.5
Suggests
None
Provides
None
Conflicts
None
Replaces
None
This package is auto-updated.
Last update: 2026-09-03 23:38:51 UTC
README
Installation
composer require haoyuqi/download-bing-wallpaper
Usage
<?php namespace App\Http\Controllers; use Haoyuqi\DownloadBingWallpaper\Contracts\BingWallpaperInterface; use Illuminate\Http\Request; class IndexController extends Controller { protected $bingWallpaper; public function __construct(BingWallpaperInterface $bingWallpaper) { $this->bingWallpaper = $bingWallpaper; } public function index() { $content = $this->bingWallpaper->download(); $this->bingWallpaper->save($content, storage_path('bing-wallpaper'), 'bing-wallpaper.png'); } }