PHPackages                             kanashimo/phpwaifu - 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. kanashimo/phpwaifu

AbandonedArchivedLibrary[API Development](/categories/api)

kanashimo/phpwaifu
==================

waifu.pics API library for your PHP project!

1.0.0(2y ago)210MITPHP

Since May 4Pushed 7mo ago1 watchersCompare

[ Source](https://github.com/Kanashimo/phpwaifu)[ Packagist](https://packagist.org/packages/kanashimo/phpwaifu)[ RSS](/packages/kanashimo-phpwaifu/feed)WikiDiscussions main Synced 1mo ago

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

[![phpwaifu.](https://camo.githubusercontent.com/087dd40d3c95d86bcbc374e023edc83b1cfc0764fd7fa3833bd475357aeacfa8/68747470733a2f2f692e696d6775722e636f6d2f61556b506f63782e706e67)](https://packagist.org/packages/kanashimo/phpwaifu)

[![Packagist Version](https://camo.githubusercontent.com/fafa4f170baff478a99c0f9773df162673aa5b036ff4a138b567cf0717e4ace4/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f762f6b616e617368696d6f2f7068707761696675)](https://packagist.org/packages/kanashimo/phpwaifu)[![GitHub commit activity](https://camo.githubusercontent.com/79fc33beb0357eb8a7be103d95b1cb4d3ca8a61287fddabf9de03c66812fb500/68747470733a2f2f696d672e736869656c64732e696f2f6769746875622f636f6d6d69742d61637469766974792f742f6b616e617368696d6f2f7068707761696675)](https://github.com/Kanashimo/phpwaifu/commits/main/)[![GitHub last commit](https://camo.githubusercontent.com/bbeebc1b74a361c0e4e95e6a3699bdd646c951640e662d97ff8f38d8e24d0bf3/68747470733a2f2f696d672e736869656c64732e696f2f6769746875622f6c6173742d636f6d6d69742f6b616e617368696d6f2f7068707761696675)](https://github.com/Kanashimo/phpwaifu/commits/main/)[![GitHub License](https://camo.githubusercontent.com/3a3fa4d1f7c464fdf0058891106b492a93543830b3be591c00fe54bf4b31eab0/68747470733a2f2f696d672e736869656c64732e696f2f6769746875622f6c6963656e73652f6b616e617368696d6f2f7068707761696675)](https://github.com/Kanashimo/phpwaifu/blob/main/LICENSE)[![made by Kanashimo](https://camo.githubusercontent.com/c290a805ca739f9d084430e54549e877572173f5b44943ed4067d9720e13c361/68747470733a2f2f696d672e736869656c64732e696f2f62616467652f6d61646525323062792532304b616e617368696d6f2d384132424532)](https://github.com/Kanashimo)

About phpwaifu
==============

[](#about-phpwaifu)

Phpwaifu is API library for [waifu.pics](https://github.com/Waifu-pics/waifu-api "waifu.pics"), a platform and API for anime images. Now everyone can enjoy waifus on your website! I made it for fun but feel free to use it anywhere. In the future maybe I will add more features.

Warning

This library is no longer maintained, use at your own risk! ‼️

Installation
------------

[](#installation)

Install phpwaifu via Composer:

```
composer require kanashimo/phpwaifu

```

Usage
-----

[](#usage)

```
// Require autoloader
require __DIR__ . '/vendor/autoload.php';

// Create phpwaifu instance
$phpwaifu = new \Kanashimo\phpwaifu\phpwaifu();

//  Make a request
$request = $phpwaifu->request([
    "type" => "sfw",
    "category" => "waifu"
]);
//  Output image URL
echo $request;
```

Types and categories
--------------------

[](#types-and-categories)

Types and categories list is available at official [waifu.pics documentation](https://waifu.pics/docs "waifu.pics documentation")

Error handling
--------------

[](#error-handling)

```
// Require autoloader
require __DIR__ . '/vendor/autoload.php';

// Create phpwaifu instance
$phpwaifu = new \Kanashimo\phpwaifu\phpwaifu();

//  Make a request
$request = $phpwaifu->request([
    "type" => "sfw",
    "category" => "waifu"
]);
// Print information about the error or output image URL if everything works
if($phpwaifu->err){
    echo $phpwaifu->err;
} else {
    echo $request;
}
```

License
-------

[](#license)

Released under the MIT license.

###  Health Score

26

—

LowBetter than 43% of packages

Maintenance44

Moderate activity, may be stable

Popularity8

Limited adoption so far

Community7

Small or concentrated contributor base

Maturity40

Maturing project, gaining track record

 Bus Factor1

Top contributor holds 100% 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

Unknown

Total

1

Last Release

735d ago

### Community

Maintainers

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

---

Top Contributors

[![Kanashimo](https://avatars.githubusercontent.com/u/66676567?v=4)](https://github.com/Kanashimo "Kanashimo (21 commits)")

---

Tags

animephpwaifuwaifupics

### Embed Badge

![Health badge](/badges/kanashimo-phpwaifu/health.svg)

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

###  Alternatives

[stripe/stripe-php

Stripe PHP Library

4.0k143.3M475](/packages/stripe-stripe-php)[twilio/sdk

A PHP wrapper for Twilio's API

1.6k92.9M270](/packages/twilio-sdk)[knplabs/github-api

GitHub API v3 client

2.2k15.8M187](/packages/knplabs-github-api)[facebook/php-business-sdk

PHP SDK for Facebook Business

90121.9M34](/packages/facebook-php-business-sdk)[meilisearch/meilisearch-php

PHP wrapper for the Meilisearch API

73813.7M114](/packages/meilisearch-meilisearch-php)[google/gax

Google API Core for PHP

263103.1M452](/packages/google-gax)

PHPackages © 2026

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