Download the PHP package g33kme/adapay without Composer

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

ADAPay

ADAPay is a free and open-source Cardano (ADA) payment processor script written in PHP. You need to run a cardano-wallet to work with ADAPay.

With ADAPay you can simply create invoices for cardano payments in your webshop as well as verify the incoming payments.

🙏 Help us improve this project by staking your ADA to our pool with ticker: GEEK
GeekMe Stake Pool

1. Installation: cardano-wallet

Very important!

It's very easy to run cardano-wallet on your server, but you need to take care that your server has the minimum hardware requirements to run your cardano-node:

If your hardware did not meet the minimum requirements your cardano-node may not start/sync and you can not use the API the cardano-wallet will serve nor can use ADAPay.

Installing cardano-wallet via docker-compose

So, your server is up and running you can simply download the latest docker-compose.yml and save it to your server. Use docker-compose to quickly spin up cardano-wallet together with supported block producer. Here is exemplary docker-compose.yaml combining the latest versions of cardano-wallet and cardano-node.

We running on Ubuntu 20.04 LTS

When your cardano-wallet is up running NETWORK=mainnet docker-compose up -d ou can simply check in your Browser the height of the Cardano Blockchain by requesting the following URL:

It may take some time, maybe 1-2 days tilly our cardano-wallet is synced completely. When finish you get some "ready" status in the JSON response when browsing the above URL.

`

Good to know

If you down composer with NETWORK=mainnet docker-compose down and up with NETWORK=mainnet docker-compose up the cardano node maybe rebuilding its ledger DB, which can take a very long time. Cardano-Node only creates the socket file after this rebuild has finished. You can only connect to the API when the socket file was created.

Or you can simply do a clean-up of your docker with

Then your API is running immediately, however you have to wait some hour that your node height is synced.

Very important!

cardano-wallet creates a public accessible API on port 8090 (default). At easiest and best simple create firewall rules to access the cardano-wallet API only from specific IPs. You can create firewalls, mostly free, on popular hosting providers like Hetzner, Vultr or DigitalOcean. Of course you can setup a custom firewal rule in your operating system as well.

Wanna run cardano-wallet API on https?

Simply setup a nginx proxy pass for the served API of the cardano-wallet

You should now be able to browse your cardano-wallet API via https/ssl. Keep in mind that we don't created valid ssl certificates, so you get an insecure warning in your browser. However, we don't verify this on ADAPay.

You may also take care to update your firewall settings and block public traffic for Port 443.

2. Installation: ADAPay

Alright, your cardano-wallet is up and running. Let's have a look to our ADAPay library to easily create invoices and check payments.

This library is installable via Composer:

You can also simply manually include source/adapay.php from this repository to your project and use the ADAPay PHP Class.

Requirements

This library requires PHP 7.1 or later and if you use Composer you need Version 2+.

3. How to use ADApay

With the ADAPay PHP library it's very easy to work with your cardano-wallet API. Check your wallet, craete invoices, check receiving payments ...

Create or Restore Cardano Wallet

Create an invoice

Verify a payment

Get current ADA rates by EUR, USD, GBP ...

More stuff

Best practice and recommendations

🙏 Supporters

Stake your ADA to our pool with ticker: GEEK
GeekMe Stake Pool

☕ Wanna buy me a coffee or two? Send some ADA to our donation address: addr1qxksn95zhgje7tvdsgfpk9t49sssz4fqewt74neh56cnl4ml8zpc3556jh8exfp70a6f3pva7yf4fmfmw52tdh3dh94sqdvu27


All versions of adapay with dependencies

PHP Build Version
Package Version
Requires php Version >=7.1
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 g33kme/adapay contains the following files

Loading the files please wait ....