Wise-php - This library is written to accommodate the wise API's use in php projects With Wise

Last update: Aug 9, 2022

Wise php

This library is written to accomodate the wise API's use in php projects With Wise you can automate payments, connect your business tools, and create ways to manage your finances. You can also power your cross-border and domestic payouts. For more info have a look at https://wise.com/ and https://api-docs.wise.com/

Requirements

  • PHP 5.6.0 and later.
  • cURL

Install

To install the package use the composer command

composer require transferwise/wise-php

Sample Code

Initialing Client

"WISE_TOKEN", "profile_id" => "WISE_PROFILE_ID", "env" => "sandbox" // optional ] ); ">
$client = new \TransferWise\Client(
    [
         "token" => "WISE_TOKEN",
         "profile_id" => "WISE_PROFILE_ID",
         "env" => "sandbox" // optional
    ]
);

Creating a recipient account

"John Snow", "currency" => "EUR", "type" => "iban", "details" => [ "legalType" => "PRIVATE", "IBAN" => "GBFSDFS546S5DF46S5" ] ] ); ">
$client->recipient_accounts->create(
    [
        "accountHolderName" => "John Snow",
        "currency" => "EUR",
        "type" => "iban",
            "details" => [
                "legalType" => "PRIVATE",
                "IBAN" => "GBFSDFS546S5DF46S5"
        ]
    ]
);

Validating Iban

$client->validators->iban($iban);

Creating Quote

"EUR", "targetCurrency" => "GBP", "sourceAmount" => "100.00", "targetAmount" => null ] );">
$client->quotes->create(
    [
        "sourceCurrency" => "EUR",
        "targetCurrency" => "GBP",
        "sourceAmount" => "100.00",
        "targetAmount" => null
    ]
);

Creating transfer

"account id", "quoteUuid" => "generated quote id", "customerTransactionId" => "transaction id", "details" => [ "reference" => "Company X", "transferPurpose"=> "verification.transfers.purpose.pay.bills", "sourceOfFunds"=> "verification.source.of.funds.other" ] ] );">
$client->transfers->create(
    [
        "targetAccount" => "account id",
        "quoteUuid" => "generated quote id",
        "customerTransactionId" => "transaction id",
        "details" => [
            "reference" => "Company X",
            "transferPurpose"=> "verification.transfers.purpose.pay.bills",
            "sourceOfFunds"=> "verification.source.of.funds.other"
        ]
    ]
);

GitHub

https://github.com/albertxhani/wise-php
You might also like...

An asynchronous ClamAV wrapper written in PHP with amphp/socket

amphp-clamav An asynchronous ClamAV wrapper written with amphp/socket Installing composer require pato05/amphp-clamav Examples Ping and scan of a fil

Feb 28, 2022

BeckhoffPLCSoapClient - SoapClient to communicate with BeckHoff PLC. Library made in PHP based on TcAdsWebService JavaScript Library.

BeckhoffPLCSoapClient - SoapClient to communicate with BeckHoff PLC. Library made in PHP based on TcAdsWebService JavaScript Library.

May 18, 2022

Use Telegram on your cell phone

Use Telegram on your cell phone

Телеграмм для кнопочных телефонов! Веб-шлюз телеграмма. Пощупать в деле: http://tg.naltg.tk пароль: 123 К сайту подключен тестовый аккаунт телеграмма.

Apr 27, 2022

Simple papara payment api that you can use without the need for an activation key

Simple papara payment api that you can use without the need for an activation key

PaparaQrApi Papara QR Api Simple papara payment api that you can use without the need for an activation key. Explore the docs » View Demo About The Pr

Jul 8, 2022

Lightweight PHP library for WhatsApp API to send the whatsapp messages in PHP provided by ultramsg.com

Ultramsg.com WhatsApp API PHP SDK Lightweight PHP library for WhatsApp API to send the whatsappp messages in PHP provided by Ultramsg.com Installation

Aug 6, 2022

A framework agnostic PHP library to build chat bots

A framework agnostic PHP library to build chat bots

BotMan If you want to learn how to create reusable PHP packages yourself, take a look at my upcoming PHP Package Development video course. About BotMa

Aug 8, 2022

PHP library for the Stripe API.

Stripe PHP bindings The Stripe PHP library provides convenient access to the Stripe API from applications written in the PHP language. It includes a p

Aug 11, 2022

A PHP library for communicating with the Twilio REST API and generating TwiML.

twilio-php The default branch name for this repository has been changed to main as of 07/27/2020. Documentation The documentation for the Twilio API c

Aug 11, 2022

A PHP library for the Campaign Monitor API

createsend A PHP library which implements the complete functionality of the Campaign Monitor API. Installation Composer If you use Composer, you can r

Jun 8, 2022
Comments
  • 1. php version problem

    I'm trying to install this package with laravel, but I get this error: Package transferwise/wise-php has requirements incompatible with your PHP version, PHP extensions and Composer version: - transferwise/wise-php v0.2 requires ext-json ^1.6 which does not match your installed version 8.1.6.

    What should I do to fix this?

    Reviewed by RitliRoland at 2022-05-31 14:22
  • 2. Sandbox endpoint

    For use in the test environment, a new optional config variable "env" with "sandbox" as an option. Changes the endpoint to "https://api.sandbox.transferwise.tech".

    Reviewed by tobzey at 2022-01-02 11:47
A library written in PHP to interact with Coinbase Pro via API.

A library written in PHP to interact with Coinbase Pro via API.

Mar 31, 2022
The library provides convenient access to the Epoint.az API from applications written in the PHP language.

Tural/Epoint library/SDK The library provides convenient access to the Epoint.az API from applications written in the PHP language. It includes a pre-

Jan 20, 2022
The library provides convenient access to the Epoint.az API from applications written in the PHP language.

Tural/Epoint library/SDK The library provides convenient access to the Epoint.az API from applications written in the PHP language. It includes a pre-

Jan 20, 2022
SendGrid's PHP HTTP Client for calling APIs
SendGrid's PHP HTTP Client for calling APIs

Quickly and easily access any RESTful or RESTful-like API. If you are looking for the SendGrid API client library, please see this repo. Announcements

Jul 15, 2022
OVHcloud APIs lightweight PHP wrapper

Lightweight PHP wrapper for OVHcloud APIs - The easiest way to use OVHcloud APIs in your PHP applications - Compatible with PHP 7.4, 8.0, 8.1 - Not affiliated with OVHcloud

Jul 27, 2022
Laravel Package for 1APP. Learn how to integrate our APIs to build a web or mobile integration to send and accept payments for your application and businesses.
Laravel Package for 1APP. Learn how to integrate our APIs to build a web or mobile integration to send and accept payments for your application and businesses.

1APP Laravel Library Learn how to integrate our APIs to build a web or mobile integration to accept payments, make payment of Bills and as well custom

Jul 25, 2022
PHP library to use IOTA REST API to help node management and tangle queries

iota.php About PHP library to use IOTA REST API to help node management and tangle queries. Please be aware that this library is in an early developme

Jul 19, 2022
This library allows you to quickly and easily use the Twilio SendGrid Web API v3 via PHP
This library allows you to quickly and easily use the Twilio SendGrid Web API v3 via PHP

This library allows you to quickly and easily use the Twilio SendGrid Web API v3 via PHP

Aug 11, 2022
PHP library with ready-to-use Yunbi API implementation.

yunbi-client-php A simple PHP client for Crypto Trade Site Yunbi.com Quick example <?php require_once('lib/yunbi-client.php'); try { $client = new

Dec 2, 2019
A telegram bot to check credit cards. written in php & py

MRBANKER BOT A telegram bot to check credit cards. written in php & py. You can find me on telegram STEP1: goto botfather create a bot copy the token

Aug 11, 2022