haoyuqi/download-bing-wallpaper

Retrieve Bing wallpaper metadata by date through a versioned JSON Artisan command.
2,285
Install
composer require haoyuqi/download-bing-wallpaper
Latest Version:3.0.0
PHP:^8.3
License:MIT
Last Updated:Sep 3, 2026
Links: GitHub  ·  Packagist
Maintainer: haoyuqi

Download Bing Wallpaper

Laravel 13 package that retrieves Bing wallpaper metadata for an exact date and writes one versioned JSON document to standard output. It never downloads or saves an image.

Requirements

  • PHP 8.3+
  • Laravel 13

Installation

composer require haoyuqi/download-bing-wallpaper

Usage

php artisan bing:wallpaper --date=2026-08-31 --no-ansi

The command uses Bing's fixed en-US metadata source, searches its current eight-item response for the exact calendar date, and writes exactly one JSON document followed by a newline. No dates are substituted.

Result Exit code
found or not_found 0
Invalid or missing date 2
Upstream or internal error 1

The --date option is required and must be a real YYYY-MM-DD date. JSON fields are always ordered as schemaVersion, status, query, data, rawPayload, error, and retrievedAt. Technical details are represented in the JSON error; standard error remains empty.

Migrating from v2

The BingWallpaperInterface, download(), and save() APIs were removed. Use the Artisan command and consume its JSON instead.

Development

Run composer check for validation, optimized autoloading, analysis, style, and tests. CI uses fake HTTP responses and does not contact Bing.

This project was developed with AI assistance. All changes were reviewed and verified by the maintainer.

See CONTRIBUTING.md, SECURITY.md, and SUPPORT.md.

Related Packages

bca/laravel-inspect

Instant support for PHP Code Sniffer, PHP CS Fixer, and PHP MD in the Artisan CL...

24,155 50
fedeisas/laravel-js-routes

Laravel 4 routes from Javascript

140,305 62
kodeine/laravel-meta

Fluent Meta Data for Eloquent Models, as if it is a property on your model.

932,469 422
nobodyiscertain/laravel-db-commands

A set of Artisan commands to help with database tasks.

2,235 1