devmehq/sdk-php 问题修复 & 功能扩展

解决BUG、新增功能、兼容多环境部署,快速响应你的开发需求

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

devmehq/sdk-php

Composer 安装命令:

composer require devmehq/sdk-php

包简介

DEV.ME SDK for PHP

README 文档

README

Build Status Composer Version Downloads

DEV.ME SDK for PHP

Works with php version >= 7.1, Compatible with all PHP Frameworks like laravel, symfony, wordpress, etc.

Get Your Free API Key

Signup Here and Get Your Free API Key

Installation and usage instructions

Installation

Install the module through YARN:

composer require devmehq/sdk-php

Examples

Currency API Conversion

use DevmeSdk\Authentication\APIKeyHeaderAuthentication;
use Jane\Component\OpenApiRuntime\Client\Plugin\AuthenticationRegistry;

$authenticationRegistry = new AuthenticationRegistry([new APIKeyHeaderAuthentication('demo-key')]);
$apiClient = \DevmeSdk\Client::create(null, [$authenticationRegistry]);

$apiClient->v1ConvertCurrency(['from' => 'USD', 'to' => 'EUR', 'amount' => 10]);

// {
//   convertedAmount: 8.819,
//   convertedText: '10 USD equal to 8.819 EUR',
//   exchangeRate: 0.8819,
//   from: 'USD',
//   originalAmount: 10,
//   rateTime: '2022-01-20T14:49:28.046Z',
//   to: 'EUR'
// }

IP API Geolocation, IP2Location, IP Data

use DevmeSdk\Authentication\APIKeyHeaderAuthentication;
use Jane\Component\OpenApiRuntime\Client\Plugin\AuthenticationRegistry;

$authenticationRegistry = new AuthenticationRegistry([new APIKeyHeaderAuthentication('demo-key')]);
$apiClient = \DevmeSdk\Client::create(null, [$authenticationRegistry]);

$apiClient->v1GetIpDetails([ 'ip' => '52.45.23.11']);

// {
//   asn: 14618,
//   aso: 'AMAZON-AES',
//   city: {
//   accuracyRadius: 1000,
//     latitude: 39.0469,
//     longitude: -77.4903,
//     metroCode: 511,
//     name: 'Ashburn',
//     timeZone: 'America/New_York',
//   },
//   countryCode: 'US',
//   ip: '52.45.23.11',
//   registeredCountryCode: 'US',
// }

Avanced Email Validation API

use DevmeSdk\Authentication\APIKeyHeaderAuthentication;
use Jane\Component\OpenApiRuntime\Client\Plugin\AuthenticationRegistry;

$authenticationRegistry = new AuthenticationRegistry([new APIKeyHeaderAuthentication('demo-key')]);
$apiClient = \DevmeSdk\Client::create(null, [$authenticationRegistry]);

$apiClient->v1GetEmailDetails(['email' => 'myemail@yahoo.com', 'verifyMx' => true, 'verifySmtp' => true, 'timeout' => 3]);

// {
//   validFormat: true,
//   validMx: true,
//   validSmtp: true,
//   isFree: true,
//   isDisposable: false
// }

Testing

composer test

Need Help?

If you need help please drop us a message, we would be glad to help @ Contact us

Contributing

Please feel free to open an issue or create a pull request and fix bugs or add features, All contributions are welcome. Thank you!

LICENSE MIT

统计信息

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

GitHub 信息

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

其他信息

  • 授权协议: MIT
  • 更新时间: 2022-01-20

承接程序开发

PHP开发

VUE

Vue开发

前端开发

小程序开发

公众号开发

系统定制

数据库设计

云部署

网站建设

安全加固