Download the PHP package ivkos/wallhaven without Composer

On this page you can find all versions of the php package ivkos/wallhaven. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.

FAQ

After the download, you have to make one include require_once('vendor/autoload.php');. After that you have to import the classes with use statements.

Example:
If you use only one package a project is not needed. But if you use more then one package, without a project it is not possible to import the classes with use statements.

In general, it is recommended to use always a project to download your libraries. In an application normally there is more than one library needed.
Some PHP packages are not free to download and because of that hosted in private repositories. In this case some credentials are needed to access such packages. Please use the auth.json textarea to insert credentials, if a package is coming from a private repository. You can look here for more information.

  • Some hosting areas are not accessible by a terminal or SSH. Then it is not possible to use Composer.
  • To use Composer is sometimes complicated. Especially for beginners.
  • Composer needs much resources. Sometimes they are not available on a simple webspace.
  • If you are using private repositories you don't need to share your credentials. You can set up everything on our site and then you provide a simple download link to your team member.
  • Simplify your Composer build process. Use our own command line tool to download the vendor folder as binary. This makes your build process faster and you don't need to expose your credentials for private repositories.
Please rate this library. Is it a good library?

Informations about the package wallhaven

Wallhaven API for PHP

Description

A PHP library for Wallhaven 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

Install

Create a composer.json file in your project root:

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

Quick Documentation

Add this line to include Composer packages:

Initialize Wallhaven:

If you have an account on Wallhaven, you can use it to login and access all available wallpapers:

Searching

You can search for wallpapers and filter them using the Wallhaven::filter() method. It returns a Filter object that acts as a fluent interface with the following methods:

Examples:

Returns a WallpaperList object containing Wallpaper objects that match the criteria above.

The WallpaperList object can be accessed like an array, iterated over using foreach, and has a WallpaperList::count() method:

Wallpaper Information

The Wallpaper object has a number of methods that provide information about the wallpaper:

You can get information about a single wallpaper if you know its ID:

You can also get information about wallpapers from a search result:

Downloading

To download a single wallpaper to a specific directory:

To batch download wallpapers from a search result:

You can also create a WallpaperList, add specific wallpapers to it, and then batch download them, like so:

For more information, please refer to the source code and the PHPDoc blocks.


All versions of wallhaven with dependencies

PHP Build Version
Package Version
Requires php Version >= 5.4.0
paquettg/php-html-parser Version 1.7.0
guzzlehttp/guzzle Version 6.*
Composer command for our command line client (download client) This client runs in each environment. You don't need a specific PHP version etc. The first 20 API calls are free. Standard composer command

The package ivkos/wallhaven contains the following files

Loading the files please wait ....