Download the PHP package sarani/cryptopay without Composer

On this page you can find all versions of the php package sarani/cryptopay. 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 cryptopay

cryptopay

cryptopay is a php library for Cryptocurrency Payment with support of accepting multiple cryptocurrencies. with this library you can add and support crypto payment to your sites, Apps and Telegram bot.

Get Start

To use this library, you need to create free Telegram account with CryptoBot.

Installation

Use the package manager composer to install sarani/cryptopay.

Usage and Methods

getMe

Use this method to test your app's authentication token. Requires no parameters. On success, returns basic information about an app.

createInvoice

Use this method to create a new invoice. On success, returns an object of the created invoice.

getInvoices

transfer

Use this method to send coins from your app's balance to a user. On success, returns object of completed transfer.

getBalance

Use this method to get a balance of your app. Returns array of assets.

getExchangeRates

Use this method to get exchange rates of supported currencies. Returns array of currencies.

getCurrencies

Use this method to get a list of supported currencies. Returns array of currencies.

Webhooks getUpdate

Use Webhooks to get updates for your app. Webhook request may be sent at least one time.

To make sure that the Webhook request was sent by Crypto Pay API, use a secret path in the URL, e.g. https://www.example.com/. Since nobody else knows your app's token, you can be pretty sure it's CryptoBot.

How to enable Webhooks? Open CryptoBot (@CryptoTestnetBot for testnet), go to Crypto Pay → My Apps, choose an app, open ‘Webhooks’ and tap ‘Enable Webhooks’. Then send HTTPS url used to receive updates.

Contributing

Pull requests are welcome. For major changes, please open an issue first to discuss what you would like to change.

Disclaimer

This project and its author is not associated with CryptoBot.

Financial Support

This Library is free for uses, But if you like it, any Supports are Wellcome.

You can support with this invoice or Join CryptoBot with affiliated link .

Or send directly:

  • TON: UQC09HtKpaK0prsE1X-V7cnk5JE_NrSy4bgTxVeCU8kfO1A6
  • BTC: 17sL8eapiCs1eeq2nRVAZozsn6ws9HCToP
  • BTC, TON, USDT, USDC, BUSD, BNB: Transfer with CryptoBot

License

This project is released under the MIT License License.


All versions of cryptopay with dependencies

PHP Build Version
Package Version
Requires guzzlehttp/guzzle Version ^6.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 sarani/cryptopay contains the following files

Loading the files please wait ....