PayDirectly PHP: Send HTTP requests to the PayDirectly API

Recommend this page to a friend!
  Info   View files Example   View files View files (196)   DownloadInstall with Composer Download .zip   Reputation   Support forum   Blog    
Last Updated Ratings Unique User Downloads Download Rankings
2021-09-07 (4 days ago) RSS 2.0 feedNot yet rated by the usersTotal: 20 This week: 20All time: 10,354 This week: 7Up
Version License PHP version Categories
paydirectly-php 1.0.0Custom (specified...5PHP 5, Web services, Finances
Description Author

This package can send HTTP requests to the PayDirectly API.

It provides several classes that can send HTTP requests to the PayDirectly API using Curl or the Guzzle package.

The package can compose the HTTP requests to set the necessary headers to set API tokens. It can also retrieve the request responses and decode them before returning the response to the application.

Picture of Asad Ali
Name: Asad Ali <contact>
Classes: 1 package by
Country: Pakistan Pakistan

Details

<p align="center">

</p>

Paydirectly SDK for PHP

PHP library for paydirectly API.

Installation

The recommended way to install paydirectly-php is through Composer:

composer require paydirectly/paydirectly-php

After installing, you need to require Composer's autoloader:

require 'vendor/autoload.php';

Quickstart

All configs are passed around as a single variable config:

$paydirectly = new \paydirectly\paydirectly([
    'merchant_id' => 'id_ ...',
    'secret_key' => 'sk_live_ ...',
]);

Documentation

Fantastic documentation is available at https://php.paydirectly.io.

  Files folder image Files  
File Role Description
Files folder image.circleci (1 file)
Files folder imagesrc (1 file, 3 directories)
Files folder imagestorage (1 file)
Files folder image_tests (3 files, 1 directory)
Accessible without login Plain text file buildspec.yml Data Auxiliary data
Accessible without login Plain text file CHANGES.rst Data Auxiliary data
Accessible without login Plain text file composer.json Data Auxiliary data
Accessible without login Plain text file LICENSE Lic. License text
Accessible without login Plain text file package.json Data Auxiliary data
Accessible without login Plain text file README.md Doc. Documentation

  Files folder image Files  /  .circleci  
File Role Description
  Accessible without login Plain text file config.yml Data Auxiliary data

  Files folder image Files  /  src  
File Role Description
Files folder imageExceptions (3 files)
Files folder imageHttp (4 files)
Files folder imageHttpClients (5 files)
  Plain text file Paydirectly.php Class Class source

  Files folder image Files  /  src  /  Exceptions  
File Role Description
  Plain text file ApiException.php Class Class source
  Plain text file PaydirectlyException.php Class Class source
  Plain text file RESTfulException.php Class Class source

  Files folder image Files  /  src  /  Http  
File Role Description
  Plain text file Request.php Class Class source
  Plain text file Response.php Class Class source
  Plain text file Signature.php Class Class source
  Plain text file Url.php Class Class source

  Files folder image Files  /  src  /  HttpClients  
File Role Description
  Plain text file Client.php Class Class source
  Plain text file ClientInterface.php Class Class source
  Plain text file Curl.php Class Class source
  Plain text file CurlClient.php Class Class source
  Plain text file GuzzleClient.php Class Class source

  Files folder image Files  /  storage  
File Role Description
  Accessible without login Plain text file testing.sqlite Data Auxiliary data

  Files folder image Files  /  _tests  
File Role Description
Files folder imagevendor (1 file, 5 directories)
  Accessible without login Plain text file composer.json Data Auxiliary data
  Accessible without login Plain text file composer.lock Data Auxiliary data
  Accessible without login Plain text file TestPaydirectly.php Example Example script

  Files folder image Files  /  _tests  /  vendor  
File Role Description
Files folder imagecomposer (12 files)
Files folder imageguzzlehttp (3 directories)
Files folder imagepaydirectly (1 directory)
Files folder imagepsr (3 directories)
Files folder imageralouphie (1 directory)
  Accessible without login Plain text file autoload.php Aux. Auxiliary script

  Files folder image Files  /  _tests  /  vendor  /  composer  
File Role Description
  Accessible without login Plain text file autoload_classmap.php Aux. Auxiliary script
  Accessible without login Plain text file autoload_files.php Aux. Auxiliary script
  Accessible without login Plain text file autoload_namespaces.php Aux. Auxiliary script
  Accessible without login Plain text file autoload_psr4.php Aux. Auxiliary script
  Plain text file autoload_real.php Class Class source
  Plain text file autoload_static.php Class Class source
  Plain text file ClassLoader.php Class Class source
  Accessible without login Plain text file installed.json Data Auxiliary data
  Accessible without login Plain text file installed.php Aux. Auxiliary script
  Plain text file InstalledVersions.php Class Class source
  Accessible without login Plain text file LICENSE Lic. License text
  Accessible without login Plain text file platform_check.php Aux. Auxiliary script

  Files folder image Files  /  _tests  /  vendor  /  guzzlehttp  
File Role Description
Files folder imageguzzle (5 files, 2 directories)
Files folder imagepromises (5 files, 1 directory)
Files folder imagepsr7 (4 files, 2 directories)

  Files folder image Files  /  _tests  /  vendor  /  guzzlehttp  /  guzzle  
File Role Description
Files folder imagesrc (18 files, 3 directories)
Files folder imagevendor-bin (3 directories)
  Accessible without login Plain text file CHANGELOG.md Data Auxiliary data
  Accessible without login Plain text file composer.json Data Auxiliary data
  Accessible without login Plain text file LICENSE Lic. License text
  Accessible without login Plain text file README.md Doc. Documentation
  Accessible without login Plain text file UPGRADING.md Data Auxiliary data

  Files folder image Files  /  _tests  /  vendor  /  guzzlehttp  /  guzzle  /  src  
File Role Description
Files folder imageCookie (5 files)
Files folder imageException (9 files)
Files folder imageHandler (9 files)
  Plain text file BodySummarizer.php Class Class source
  Plain text file BodySummarizerInterface.php Class Class source
  Plain text file Client.php Class Class source
  Plain text file ClientInterface.php Class Class source
  Plain text file ClientTrait.php Class Class source
  Accessible without login Plain text file functions.php Aux. Auxiliary script
  Accessible without login Plain text file functions_include.php Aux. Auxiliary script
  Plain text file HandlerStack.php Class Class source
  Plain text file MessageFormatter.php Class Class source
  Plain text file MessageFormatterInterface.php Class Class source
  Plain text file Middleware.php Class Class source
  Plain text file Pool.php Class Class source
  Plain text file PrepareBodyMiddleware.php Class Class source
  Plain text file RedirectMiddleware.php Class Class source
  Plain text file RequestOptions.php Class Class source
  Plain text file RetryMiddleware.php Class Class source
  Plain text file TransferStats.php Class Class source
  Plain text file Utils.php Class Class source

  Files folder image Files  /  _tests  /  vendor  /  guzzlehttp  /  guzzle  /  src  /  Cookie  
File Role Description
  Plain text file CookieJar.php Class Class source
  Plain text file CookieJarInterface.php Class Class source
  Plain text file FileCookieJar.php Class Class source
  Plain text file SessionCookieJar.php Class Class source
  Plain text file SetCookie.php Class Class source

  Files folder image Files  /  _tests  /  vendor  /  guzzlehttp  /  guzzle  /  src  /  Exception  
File Role Description
  Plain text file BadResponseException.php Class Class source
  Plain text file ClientException.php Class Class source
  Plain text file ConnectException.php Class Class source
  Plain text file GuzzleException.php Class Class source
  Plain text file InvalidArgumentException.php Class Class source
  Plain text file RequestException.php Class Class source
  Plain text file ServerException.php Class Class source
  Plain text file TooManyRedirectsException.php Class Class source
  Plain text file TransferException.php Class Class source

  Files folder image Files  /  _tests  /  vendor  /  guzzlehttp  /  guzzle  /  src  /  Handler  
File Role Description
  Plain text file CurlFactory.php Class Class source
  Plain text file CurlFactoryInterface.php Class Class source
  Plain text file CurlHandler.php Class Class source
  Plain text file CurlMultiHandler.php Class Class source
  Plain text file EasyHandle.php Class Class source
  Plain text file HeaderProcessor.php Class Class source
  Plain text file MockHandler.php Class Class source
  Plain text file Proxy.php Class Class source
  Plain text file StreamHandler.php Class Class source

  Files folder image Files  /  _tests  /  vendor  /  guzzlehttp  /  guzzle  /  vendor-bin  
File Role Description
Files folder imagephp-cs-fixer (1 file)
Files folder imagephpstan (1 file)
Files folder imagepsalm (1 file)

  Files folder image Files  /  _tests  /  vendor  /  guzzlehttp  /  guzzle  /  vendor-bin  /  php-cs-fixer  
File Role Description
  Accessible without login Plain text file composer.json Data Auxiliary data

  Files folder image Files  /  _tests  /  vendor  /  guzzlehttp  /  guzzle  /  vendor-bin  /  phpstan  
File Role Description
  Accessible without login Plain text file composer.json Data Auxiliary data

  Files folder image Files  /  _tests  /  vendor  /  guzzlehttp  /  guzzle  /  vendor-bin  /  psalm  
File Role Description
  Accessible without login Plain text file composer.json Data Auxiliary data

  Files folder image Files  /  _tests  /  vendor  /  guzzlehttp  /  promises  
File Role Description
Files folder imagesrc (18 files)
  Accessible without login Plain text file CHANGELOG.md Data Auxiliary data
  Accessible without login Plain text file composer.json Data Auxiliary data
  Accessible without login Plain text file LICENSE Lic. License text
  Accessible without login Plain text file Makefile Data Auxiliary data
  Accessible without login Plain text file README.md Example Example script

  Files folder image Files  /  _tests  /  vendor  /  guzzlehttp  /  promises  /  src  
File Role Description
  Plain text file AggregateException.php Class Class source
  Plain text file CancellationException.php Class Class source
  Plain text file Coroutine.php Class Class source
  Plain text file Create.php Class Class source
  Plain text file Each.php Class Class source
  Plain text file EachPromise.php Class Class source
  Plain text file FulfilledPromise.php Class Class source
  Accessible without login Plain text file functions.php Aux. Auxiliary script
  Accessible without login Plain text file functions_include.php Aux. Auxiliary script
  Plain text file Is.php Class Class source
  Plain text file Promise.php Class Class source
  Plain text file PromiseInterface.php Class Class source
  Plain text file PromisorInterface.php Class Class source
  Plain text file RejectedPromise.php Class Class source
  Plain text file RejectionException.php Class Class source
  Plain text file TaskQueue.php Class Class source
  Plain text file TaskQueueInterface.php Class Class source
  Plain text file Utils.php Class Class source

  Files folder image Files  /  _tests  /  vendor  /  guzzlehttp  /  psr7  
File Role Description
Files folder imagesrc (29 files)
Files folder imagevendor-bin (3 directories)
  Accessible without login Plain text file CHANGELOG.md Data Auxiliary data
  Accessible without login Plain text file composer.json Data Auxiliary data
  Accessible without login Plain text file LICENSE Lic. License text
  Accessible without login Plain text file README.md Doc. Documentation

  Files folder image Files  /  _tests  /  vendor  /  guzzlehttp  /  psr7  /  src  
File Role Description
  Plain text file AppendStream.php Class Class source
  Plain text file BufferStream.php Class Class source
  Plain text file CachingStream.php Class Class source
  Plain text file DroppingStream.php Class Class source
  Plain text file FnStream.php Class Class source
  Plain text file Header.php Class Class source
  Plain text file HttpFactory.php Class Class source
  Plain text file InflateStream.php Class Class source
  Plain text file LazyOpenStream.php Class Class source
  Plain text file LimitStream.php Class Class source
  Plain text file Message.php Class Class source
  Plain text file MessageTrait.php Class Class source
  Plain text file MimeType.php Class Class source
  Plain text file MultipartStream.php Class Class source
  Plain text file NoSeekStream.php Class Class source
  Plain text file PumpStream.php Class Class source
  Plain text file Query.php Class Class source
  Plain text file Request.php Class Class source
  Plain text file Response.php Class Class source
  Plain text file Rfc7230.php Class Class source
  Plain text file ServerRequest.php Class Class source
  Plain text file Stream.php Class Class source
  Plain text file StreamDecoratorTrait.php Class Class source
  Plain text file StreamWrapper.php Class Class source
  Plain text file UploadedFile.php Class Class source
  Plain text file Uri.php Class Class source
  Plain text file UriNormalizer.php Class Class source
  Plain text file UriResolver.php Class Class source
  Plain text file Utils.php Class Class source

  Files folder image Files  /  _tests  /  vendor  /  guzzlehttp  /  psr7  /  vendor-bin  
File Role Description
Files folder imagephp-cs-fixer (1 file)
Files folder imagephpstan (1 file)
Files folder imagepsalm (1 file)

  Files folder image Files  /  _tests  /  vendor  /  guzzlehttp  /  psr7  /  vendor-bin  /  php-cs-fixer  
File Role Description
  Accessible without login Plain text file composer.json Data Auxiliary data

  Files folder image Files  /  _tests  /  vendor  /  guzzlehttp  /  psr7  /  vendor-bin  /  phpstan  
File Role Description
  Accessible without login Plain text file composer.json Data Auxiliary data

  Files folder image Files  /  _tests  /  vendor  /  guzzlehttp  /  psr7  /  vendor-bin  /  psalm  
File Role Description
  Accessible without login Plain text file composer.json Data Auxiliary data

  Files folder image Files  /  _tests  /  vendor  /  paydirectly  
File Role Description
Files folder imagepaydirectly-php (5 files, 1 directory)

  Files folder image Files  /  _tests  /  vendor  /  paydirectly  /  paydirectly-php  
File Role Description
Files folder imagesrc (1 file, 3 directories)
  Accessible without login Plain text file buildspec.yml Data Auxiliary data
  Accessible without login Plain text file CHANGES.rst Data Auxiliary data
  Accessible without login Plain text file composer.json Data Auxiliary data
  Accessible without login Plain text file LICENSE Lic. License text
  Accessible without login Plain text file README.md Doc. Documentation

  Files folder image Files  /  _tests  /  vendor  /  paydirectly  /  paydirectly-php  /  src  
File Role Description
Files folder imageExceptions (3 files)
Files folder imageHttp (4 files)
Files folder imageHttpClients (5 files)
  Plain text file Paydirectly.php Class Class source

  Files folder image Files  /  _tests  /  vendor  /  paydirectly  /  paydirectly-php  /  src  /  Exceptions  
File Role Description
  Plain text file ApiException.php Class Class source
  Plain text file PaydirectlyException.php Class Class source
  Plain text file RESTfulException.php Class Class source

  Files folder image Files  /  _tests  /  vendor  /  paydirectly  /  paydirectly-php  /  src  /  Http  
File Role Description
  Plain text file Request.php Class Class source
  Plain text file Response.php Class Class source
  Plain text file Signature.php Class Class source
  Plain text file Url.php Class Class source

  Files folder image Files  /  _tests  /  vendor  /  paydirectly  /  paydirectly-php  /  src  /  HttpClients  
File Role Description
  Plain text file Client.php Class Class source
  Plain text file ClientInterface.php Class Class source
  Plain text file Curl.php Class Class source
  Plain text file CurlClient.php Class Class source
  Plain text file GuzzleClient.php Class Class source

  Files folder image Files  /  _tests  /  vendor  /  psr  
File Role Description
Files folder imagehttp-client (4 files, 1 directory)
Files folder imagehttp-factory (4 files, 1 directory)
Files folder imagehttp-message (4 files, 1 directory)

  Files folder image Files  /  _tests  /  vendor  /  psr  /  http-client  
File Role Description
Files folder imagesrc (4 files)
  Accessible without login Plain text file CHANGELOG.md Data Auxiliary data
  Accessible without login Plain text file composer.json Data Auxiliary data
  Accessible without login Plain text file LICENSE Lic. License text
  Accessible without login Plain text file README.md Doc. Documentation

  Files folder image Files  /  _tests  /  vendor  /  psr  /  http-client  /  src  
File Role Description
  Plain text file ClientExceptionInterface.php Class Class source
  Plain text file ClientInterface.php Class Class source
  Plain text file NetworkExceptionInterface.php Class Class source
  Plain text file RequestExceptionInterface.php Class Class source

  Files folder image Files  /  _tests  /  vendor  /  psr  /  http-factory  
File Role Description
Files folder imagesrc (6 files)
  Accessible without login Plain text file .pullapprove.yml Data Auxiliary data
  Accessible without login Plain text file composer.json Data Auxiliary data
  Accessible without login Plain text file LICENSE Lic. License text
  Accessible without login Plain text file README.md Doc. Documentation

  Files folder image Files  /  _tests  /  vendor  /  psr  /  http-factory  /  src  
File Role Description
  Plain text file RequestFactoryInterface.php Class Class source
  Plain text file ResponseFactoryInterface.php Class Class source
  Plain text file ServerRequestFactoryInterface.php Class Class source
  Plain text file StreamFactoryInterface.php Class Class source
  Plain text file UploadedFileFactoryInterface.php Class Class source
  Plain text file UriFactoryInterface.php Class Class source

  Files folder image Files  /  _tests  /  vendor  /  psr  /  http-message  
File Role Description
Files folder imagesrc (7 files)
  Accessible without login Plain text file CHANGELOG.md Data Auxiliary data
  Accessible without login Plain text file composer.json Data Auxiliary data
  Accessible without login Plain text file LICENSE Lic. License text
  Accessible without login Plain text file README.md Doc. Documentation

  Files folder image Files  /  _tests  /  vendor  /  psr  /  http-message  /  src  
File Role Description
  Plain text file MessageInterface.php Class Class source
  Plain text file RequestInterface.php Class Class source
  Plain text file ResponseInterface.php Class Class source
  Plain text file ServerRequestInterface.php Class Class source
  Plain text file StreamInterface.php Class Class source
  Plain text file UploadedFileInterface.php Class Class source
  Plain text file UriInterface.php Class Class source

  Files folder image Files  /  _tests  /  vendor  /  ralouphie  
File Role Description
Files folder imagegetallheaders (3 files, 1 directory)

  Files folder image Files  /  _tests  /  vendor  /  ralouphie  /  getallheaders  
File Role Description
Files folder imagesrc (1 file)
  Accessible without login Plain text file composer.json Data Auxiliary data
  Accessible without login Plain text file LICENSE Lic. License text
  Accessible without login Plain text file README.md Doc. Documentation

  Files folder image Files  /  _tests  /  vendor  /  ralouphie  /  getallheaders  /  src  
File Role Description
  Accessible without login Plain text file getallheaders.php Aux. Auxiliary script

 Version Control Unique User Downloads Download Rankings  
 100%
Total:20
This week:20
All time:10,354
This week:7Up
For more information send a message to info at phpclasses dot org.