定制 hyperplural/ohmywishes 二次开发

按需修改功能、优化性能、对接业务系统,提供一站式技术支持

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

hyperplural/ohmywishes

Composer 安装命令:

composer require hyperplural/ohmywishes

包简介

SDK for the public Ohmywishes API

README 文档

README

Unofficial PHP SDK for Ohmywishes.

This project is not affiliated with Ohmywishes and is not maintained by them.

Installation

composer require hyperplural/ohmywishes

Quick Start

<?php

declare(strict_types=1);

use Hyperplural\Ohmywishes\Auth\StaticTokenProvider;
use Hyperplural\Ohmywishes\Client\ClientConfig;
use Hyperplural\Ohmywishes\Client\OhMyWishesClient;

$client = new OhMyWishesClient(
    new ClientConfig(),
    new StaticTokenProvider('your-access-token'),
);

$profile = $client->users()->self();

echo $profile->fullName;

If you want to resolve Cloudflare captcha tokens lazily, pass a callback when creating the auth service:

$client->auth(function (string $purpose, array $context): string {
    return getCaptchaTokenSomehow($purpose, $context);
})->requestPhoneNumberConfirmationCode('+79990000000');

If you need raw HTTP payloads instead of DTOs:

$response = $client->raw()->request('GET', '/api/v3/client');
$payload = $response->json();

Documentation

Credits

  • Ohmywishes for the product and the public HTTP surface this SDK mirrors.
  • The favicon used in this README comes from the public Ohmywishes site favicon.

Support & Contact

For support, questions, or coordination:

License

MIT. See LICENSE.

统计信息

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

GitHub 信息

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

其他信息

  • 授权协议: MIT
  • 更新时间: 2026-06-14

承接程序开发

PHP开发

VUE

Vue开发

前端开发

小程序开发

公众号开发

系统定制

数据库设计

云部署

网站建设

安全加固