承接 kanashimo/phpwaifu 相关项目开发

从需求分析到上线部署,全程专人跟进,保证项目质量与交付效率

邮箱:yvsm@zunyunkeji.com | QQ:316430983 | 微信:yvsm316

kanashimo/phpwaifu

最新稳定版本:1.0.0

Composer 安装命令:

composer require kanashimo/phpwaifu

包简介

waifu.pics API library for your PHP project!

README 文档

README

phpwaifu.

Packagist Version GitHub commit activity GitHub last commit GitHub License made by Kanashimo

About phpwaifu

Phpwaifu is API library for 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

Install phpwaifu via Composer:

composer require kanashimo/phpwaifu

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 list is available at official waifu.pics documentation

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

Released under the MIT license.

统计信息

  • 总下载量: 11
  • 月度下载量: 0
  • 日度下载量: 0
  • 收藏数: 2
  • 点击次数: 2
  • 依赖项目数: 0
  • 推荐数: 0

GitHub 信息

  • Stars: 2
  • Watchers: 1
  • Forks: 0
  • 开发语言: PHP

其他信息

  • 授权协议: MIT
  • 更新时间: 2024-05-04

承接程序开发

PHP开发

VUE

Vue开发

前端开发

小程序开发

公众号开发

系统定制

数据库设计

云部署

网站建设

安全加固