PHPackages                             ivkos/wallhaven - 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. [API Development](/categories/api)
4. /
5. ivkos/wallhaven

ActiveLibrary[API Development](/categories/api)

ivkos/wallhaven
===============

Wallhaven API - Search, filter and download wallpapers

v2.3.0(9y ago)371306MITPHPPHP &gt;= 5.4.0

Since May 2Pushed 9y ago3 watchersCompare

[ Source](https://github.com/ivkos/Wallhaven)[ Packagist](https://packagist.org/packages/ivkos/wallhaven)[ Docs](https://github.com/ivkos/Wallhaven)[ RSS](/packages/ivkos-wallhaven/feed)WikiDiscussions master Synced 1mo ago

READMEChangelog (9)Dependencies (2)Versions (7)Used By (0)

Wallhaven API for PHP
=====================

[](#wallhaven-api-for-php)

[![](https://camo.githubusercontent.com/eff8cbcbcd0fa433299aa8a91cd13664a995dc313a0fabe047ff481a95059abe/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f762f69766b6f732f77616c6c686176656e2e7376673f7374796c653d666c61742d737175617265)](https://packagist.org/packages/ivkos/wallhaven)[![](https://camo.githubusercontent.com/0f40ae99165ef2a94ee121b298a953130fcb099ac051a0de9757b70be334ecf5/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f64742f69766b6f732f77616c6c686176656e2e7376673f7374796c653d666c61742d737175617265)](https://packagist.org/packages/ivkos/wallhaven)[![](https://camo.githubusercontent.com/d48530f0c8ed30207a6edfac96f057d4482a6b243cc013ccdf5cae89a3b1743b/68747470733a2f2f696d672e736869656c64732e696f2f6769746875622f6c6963656e73652f69766b6f732f57616c6c686176656e2e7376673f7374796c653d666c61742d737175617265)](LICENSE)

Description
-----------

[](#description)

A PHP library for **[Wallhaven](https://wallhaven.cc)** that allows you to search for wallpapers and get information about them in convenient OOP syntax. Additionally, this library provides the ability to download individual wallpapers, or batch download many wallpapers asynchronously which considerably reduces download times.

Requirements
------------

[](#requirements)

- PHP 5.4 or newer
- Composer

Install
-------

[](#install)

Create a `composer.json` file in your project root:

```
{
    "require": {
        "ivkos/wallhaven": "2.*"
    }
}
```

Run `php composer.phar install` to download the library and its dependencies.

Quick Documentation
-------------------

[](#quick-documentation)

Add this line to include Composer packages:

```
