GithubHelp home page GithubHelp logo

devmehq / devme-sdk-php Goto Github PK

View Code? Open in Web Editor NEW
1.0 1.0 1.0 390 KB

DEV.ME SDK for PHP, Works with php version >= 7.3 Compatible with all PHP Frameworks like laravel, symfony, wordpress, etc.

Home Page: https://dev.me

License: MIT License

PHP 100.00%
ip-geolocation ip-geolocation-api ip-geolocation-ip2location currency-exchange-rates phone-validation email-verification currency-converter currency-exchange phone-number-validation ip-location-lookup ip-data email-stmp-verification php sdk

devme-sdk-php's Introduction

DEV.ME SDK for PHP

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' => '[email protected]', '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

devme-sdk-php's People

Contributors

meabed avatar renovate-bot avatar renovate[bot] avatar

Stargazers

 avatar

Watchers

 avatar

Forkers

ownerae

devme-sdk-php's Issues

Dependency Dashboard

This issue lists Renovate updates and detected dependencies. Read the Dependency Dashboard docs to learn more.

Open

These updates have all been created already. Click a checkbox below to force a retry/rebase of any.

Detected dependencies

composer
composer.json
  • php >=7.3
  • guzzlehttp/guzzle ^7
  • guzzlehttp/psr7 ^1 || ^2
  • jane-php/open-api-runtime ^7.1
  • friendsofphp/php-cs-fixer 3.57.1
  • overtrue/phplint 9.3.0
  • phpstan/phpstan 1.11.1
  • phpunit/phpunit 10.5.20
  • squizlabs/php_codesniffer 3.9.2
github-actions
.github/workflows/ci.yml
  • styfle/cancel-workflow-action 0.12.1
  • actions/checkout v4
  • php-actions/composer v6
  • php-actions/phpunit v9
  • ubuntu 22.04

  • Check this box to trigger a request for Renovate to run again on this repository

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.