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 2d 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 41% 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

3225d ago

### Community

Maintainers

![](https://avatars.githubusercontent.com/u/124777299?v=4)[telekommander](/maintainers/telekommander)[@telekommander](https://github.com/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

[goat1000/svggraph

Generates SVG graphs

133890.0k3](/packages/goat1000-svggraph)[imagekit/imagekit

PHP library for Imagekit

46877.3k10](/packages/imagekit-imagekit)[gravatarphp/gravatar

Gravatar URL builder which is most commonly called as a Gravatar library

16653.6k2](/packages/gravatarphp-gravatar)

PHPackages © 2026

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