Download the PHP package otobul/epaybg-bundle without Composer

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

Symfony bundle for ePay.bg

OtobulEpaybgBundle is symfony bundle to help working with ePay.bg communication package for merchants.

1. Installation

Install the package with:

If you're not using Symfony Flex, you'll also need to enable the Otobul\EpaybgBundle\OtobulEpaybgBundle in your config/bundles.php file and configure the bundle.

2. Configuration

2.1 Configure the bundle

Configure the bundle in packages/otobul_epaybg.yaml

The default values can be listed with:

To work properly you need also to configure dev env files. If you don`t have access to ePay.bg demo system you can visit https://demo.epay.bg/ and make registration to get demo merchant number and secret keys.

2.2 Configure webhook notification

To use webhook notification you need to add webhook notification route to your config. Configure the route in config/routes/otobul_epaybg.yaml

The new notification URL will be something like: https://your-domain.com/webhook/epaybg/, add the notification URL in your ePay.bg account.

3. Usage

This bundle provides:

3.1 Template

3.1.1 Generate "Pay" button for WEB_LOGIN form

To generate simple web_login "Pay" button in your template you can use epayWebLoginForm twig function. Example:

Required parameters:

Advanced configuration of web_login "Pay" button allow you to configure other optional parameters:

Optional parameters:

3.1.2 Generate "Pay" button for CREDIT_CARD form

To generate simple credit_card "Pay" button in your template you can use epayCreditCardForm twig function. Example:

For advanced configuration you can use the same optional parameter from above.

3.1.3 Generate "Easypay code" in template

To generate Easypay code in your template you can use epayEasypayCode twig function. Example:

Please note that this will make HTTP request to Easypay server to retrieve the code. Use this careful! Recommended way is to generate the code in your controller and store it for later use.

3.2 Controller

3.2.1 Generate "Easypay code" in controller

Example usages of EpayManager service in controller to retrieve Easypay payment code.

3.2.2 Generate "Pay" button for WEB_LOGIN form in controller

Example usages of EpayManager service in controller to generate "Pay" button form.

To generate CREDIT_CARD form use createCreditCardForm function.

3.3 Events

Example event subscriber for INVOICE_NOTIFICATION_RECEIVED this event is called directly after the invoice notification is received. Listeners have the opportunity to process the invoice data.

Example for advanced event subscriber.


All versions of epaybg-bundle with dependencies

PHP Build Version
Package Version
Requires php Version ^7.2.5 || ^8.0
symfony/framework-bundle Version ^4.4 || ^5.0 || ^6.0 || ^7.0
symfony/string Version ^5.0 || ^6.0 || ^7.0
symfony/validator Version ^4.4 || ^5.0 || ^6.0 || ^7.0
symfony/form Version ^4.4 || ^5.0 || ^6.0 || ^7.0
symfony/http-client Version ^4.4 || ^5.0 || ^6.0 || ^7.0
twig/twig Version ^2.13 || ^3.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 otobul/epaybg-bundle contains the following files

Loading the files please wait ....