Download the PHP
package webtopay/libwebtopay without Composer
On this page you can find all versions of the php package
webtopay/libwebtopay. It is possible to download/install
these versions without Composer. Possible dependencies are resolved
automatically.
Vendor webtopay Package libwebtopay Short Description PHP Library for Paysera payment gateway integration License
LGPL-3.0
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.
The Checkout API (Payment Gateway API) allows for the collection of online payments with many payment methods.
The Checkout API is easy to integrate – simply use one of our methods and the checkout processes will be performed
automatically. The library can be used to check all the necessary security parameters of transferred and received data.
More information can be found in the documentation.
Installation
Easiest way to use library is to include merged all-in-one file.
It is located in base libwebtopay directory, "WebToPay.php".
In this case you only need this one file.
Example:
Alternatively, you can use files in the "src" folder.
Either set-up autoloader or include file "includes.php" in "src" directory.
Example:
Another way to install library is using composer:
And then:
Pay attention that the ^3.0 version has the same interface as the ^2.0 but newest one is brought up to
PHP 7.4 standards and code style like strict_types, type hints etc
Requiresphp Version
>=7.4 ext-simplexml Version
* ext-openssl Version
* ext-libxml Version
*
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 webtopay/libwebtopay contains the following files
Loading the files please wait ....
Loading please wait ...
Before you can download the PHP files, the dependencies should be resolved. This can take some minutes. Please be patient.