Download the PHP package circlecreative/payvala-php-sdk without Composer

On this page you can find all versions of the php package circlecreative/payvala-php-sdk. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.

FAQ

After the download, you have to make one include require_once('vendor/autoload.php');. After that you have to import the classes with use statements.

Example:
If you use only one package a project is not needed. But if you use more then one package, without a project it is not possible to import the classes with use statements.

In general, it is recommended to use always a project to download your libraries. In an application normally there is more than one library needed.
Some PHP packages are not free to download and because of that hosted in private repositories. In this case some credentials are needed to access such packages. Please use the auth.json textarea to insert credentials, if a package is coming from a private repository. You can look here for more information.

  • Some hosting areas are not accessible by a terminal or SSH. Then it is not possible to use Composer.
  • To use Composer is sometimes complicated. Especially for beginners.
  • Composer needs much resources. Sometimes they are not available on a simple webspace.
  • If you are using private repositories you don't need to share your credentials. You can set up everything on our site and then you provide a simple download link to your team member.
  • Simplify your Composer build process. Use our own command line tool to download the vendor folder as binary. This makes your build process faster and you don't need to expose your credentials for private repositories.
Please rate this library. Is it a good library?

Informations about the package payvala-php-sdk

PayVala SoundBox PHP SDK

Build Status Code Quality Latest Version Total Downloads License

Payvala PHP SDK is a PHP library to send messages through the PayVala API into PayVala SoundBox Device. This library uses GuzzleHttp\Client for HTTP communication with the Payvala API.

Features

Installation

To install Payvala, you can use Composer:

If you are using PHP without a framework, you can include the autoload file:

Usage

Using Payvala

Methods

setAccessKey(string $accessKey)

Sets the accessKey for authentication.

setAccessKeyId(string $accessKeyId)

Sets the accessKeyId for authentication.

setAuthCode(string $authCode)

Sets the authCode for authentication.

sendMessage(array $data): array

Sends a message via the Payvala API with the provided data.

Template Code List

Code Description
01 Amount Only
02 Amount broadcast with Payer Name (not in use as of now)
10 Test Message

Language Code List

Code Description
DE Default
EN English
ID Indonesia

API Response

Response Code List

Code Message
0001 Delivered to Device
0002 Broadcasted by Device
0003 Delivered to Device and Broadcasted by Device
1001 Invalid credentials (Access Key ID/Access Key/Auth Code)
1002 Missing credentials (Access Key ID/Access Key/Auth Code)
1003 Incorrect Parameter Value
1004 Missing Mandatory parameter
1005 Incorrect combination of template and language
1006 Amount Invalid
2001 Device Does not exist / not provisioned / Device Inactive
2002 Device offline / delivery to device unsuccessful
3001 MQTT system failure
3002 API not available
3003 API overflow
9000 Other Error

License

This library is licensed under the MIT License.

Contributing

We welcome contributions from the community. If you'd like to contribute, please follow these steps:

  1. Fork this repository
  2. Create a branch for your new feature (git checkout -b feature-new-feature)
  3. Commit your changes (git commit -am 'Add new feature')
  4. Push to the branch (git push origin feature-new-feature)
  5. Open a pull request

Contact

If you have any questions or need further assistance, please open an issue on the GitHub repository or contact us via email.


All versions of payvala-php-sdk with dependencies

PHP Build Version
Package Version
Requires php Version ^8.1.0
guzzlehttp/guzzle Version ^7.0
Composer command for our command line client (download client) This client runs in each environment. You don't need a specific PHP version etc. The first 20 API calls are free. Standard composer command

The package circlecreative/payvala-php-sdk contains the following files

Loading the files please wait ....