PHPackages                             telekommander/bingdailyphoto - PHPackages - PHPackages  [Skip to content](#main-content)[PHPackages](/)[Directory](/)[Categories](/categories)[Trending](/trending)[Leaderboard](/leaderboard)[Changelog](/changelog)[Analyze](/analyze)[Collections](/collections)[Log in](/login)[Sign up](/register)

1. [Directory](/)
2. /
3. [Image &amp; Media](/categories/media)
4. /
5. telekommander/bingdailyphoto

ActiveLibrary[Image &amp; Media](/categories/media)

telekommander/bingdailyphoto
============================

BingPhoto is a simple PHP class to fetch Bing's image of the day with meta data.

1.0.0(8y ago)025MITPHPPHP &gt;=5.6

Since Sep 1Pushed 8y agoCompare

[ Source](https://github.com/telekommander/bing-daily-photo)[ Packagist](https://packagist.org/packages/telekommander/bingdailyphoto)[ RSS](/packages/telekommander-bingdailyphoto/feed)WikiDiscussions master Synced 2mo ago

READMEChangelog (1)DependenciesVersions (3)Used By (0)

Bing Daily Photo
================

[](#bing-daily-photo)

BingPhoto is a simple PHP class to fetch Bing's image of the day with meta data.

Basic usage
-----------

[](#basic-usage)

```
$bing = new BingPhoto();
$image = $bing->getImage();

// Example result ($image)
[
    [startdate] => '20160913'
    [fullstartdate] => '201609130700'
    [enddate] => '20160914'
    [url] => 'http://www.bing.com/az/hprichbg/rb/Meteora_EN-US6763889417_1920x1080.jpg'
    [urlbase] => '/az/hprichbg/rb/Meteora_EN-US6763889417'
    [copyright] => 'Roussanou and other monasteries in Metéora, Greece (© Stian Rekdal/Nimia)'
    // ...
]
```

Parameters
----------

[](#parameters)

The class has some optional parameters to control various options:

ParameterDescriptionDefaultValid values$dateDate of photo`BingPhoto::DATE_TODAY``BingPhoto::DATE_YESTERDAY`, `BingPhoto::DATE_TODAY`, `BingPhoto::DATE_TOMORROW`, `any integer >= -1`$nNumber of photos to fetch, going from date backwards11 - 8$localeLocale codeen-USWhatever language Bing supports$resolutionImage resolution`BingPhoto::RESOLUTION_HIGH``BingPhoto::RESOLUTION_LOW`, `BingPhoto::RESOLUTION_HIGH`Examples
--------

[](#examples)

```
// Fetches two images of the day in high resolution from the American Bing portal
// Composer autoloader first
require __DIR__ . "/vendor/autoload.php";
// Here we go
use BingPhoto\BingPhoto;
$bing = new BingPhoto(BingPhoto::YESTERDAY, 2);
$images = $bing->getImages();
```

```
// Fetches three images of the day in low resolution, starting yesterday from the French Bing portal
// Composer autoloader first
require __DIR__ . "/vendor/autoload.php";
// Here we go
use BingPhoto\BingPhoto;
$bing = new BingPhoto(BingPhoto::YESTERDAY, 3, 'fr-FR', BingPhoto::RESOLUTION_LOW);
foreach ($bing->getImages() as $image) {
    printf('', $image['url']);
}
```

```
// Output the image of the day as an image in high resolution
// Composer autoloader first
require __DIR__ . "/vendor/autoload.php";
// Here we go
use BingPhoto\BingPhoto;
$bing       = new BingPhoto(BingPhoto::TODAY, 1, 'de-DE', BingPhoto::RESOLUTION_HIGH);
$current    = $bing->getImage();
$info       = getimagesize($current['url']);

header("Content-type: " . $info["mime"]);
readfile($current['url']);
die();
```

###  Health Score

26

—

LowBetter than 43% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity6

Limited adoption so far

Community8

Small or concentrated contributor base

Maturity59

Maturing project, gaining track record

 Bus Factor1

Top contributor holds 90.5% of commits — single point of failure

How is this calculated?**Maintenance (25%)** — Last commit recency, latest release date, and issue-to-star ratio. Uses a 2-year decay window.

**Popularity (30%)** — Total and monthly downloads, GitHub stars, and forks. Logarithmic scaling prevents top-heavy scores.

**Community (15%)** — Contributors, dependents, forks, watchers, and maintainers. Measures real ecosystem engagement.

**Maturity (30%)** — Project age, version count, PHP version support, and release stability.

###  Release Activity

Cadence

Every ~0 days

Total

2

Last Release

3176d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/c0d2a2bd65d7fd9170151a6a9ecb21e9785fcfde04011fa8ef2c0b729088802a?d=identicon)[telekommander](/maintainers/telekommander)

---

Top Contributors

[![grubersjoe](https://avatars.githubusercontent.com/u/3109364?v=4)](https://github.com/grubersjoe "grubersjoe (19 commits)")[![vlrmprjct](https://avatars.githubusercontent.com/u/1859497?v=4)](https://github.com/vlrmprjct "vlrmprjct (2 commits)")

---

Tags

bing

### Embed Badge

![Health badge](/badges/telekommander-bingdailyphoto/health.svg)

```
[![Health](https://phpackages.com/badges/telekommander-bingdailyphoto/health.svg)](https://phpackages.com/packages/telekommander-bingdailyphoto)
```

###  Alternatives

[milon/barcode

Barcode generator like Qr Code, PDF417, C39, C39+, C39E, C39E+, C93, S25, S25+, I25, I25+, C128, C128A, C128B, C128C, 2-Digits UPC-Based Extention, 5-Digits UPC-Based Extention, EAN 8, EAN 13, UPC-A, UPC-E, MSI (Variation of Plessey code)

1.5k13.3M39](/packages/milon-barcode)[bkwld/croppa

Image thumbnail creation through specially formatted URLs for Laravel

510496.0k23](/packages/bkwld-croppa)[char0n/ffmpeg-php

PHP wrapper for FFmpeg application

495225.1k1](/packages/char0n-ffmpeg-php)[goat1000/svggraph

Generates SVG graphs

132849.6k3](/packages/goat1000-svggraph)[cohensive/embed

Media Embed (for Laravel or as a standalone).

120370.4k](/packages/cohensive-embed)[netresearch/rte-ckeditor-image

Image support in CKEditor for the TYPO3 ecosystem - by Netresearch

63991.3k4](/packages/netresearch-rte-ckeditor-image)

PHPackages © 2026

[Directory](/)[Categories](/categories)[Trending](/trending)[Changelog](/changelog)[Analyze](/analyze)
