Download the PHP package rhaima/larakonnect without Composer

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

LaraKonnect

Latest Version on Packagist Total Downloads License

A Laravel package for integrating Konnect.network payment gateway. Accept online payments in Tunisia via bank cards, e-DINAR, and Konnect wallet.

Features

Installation

Run the installation command:

This will:

Configuration

Add your Konnect credentials to .env:

Get your credentials from:

Exclude Webhook from CSRF

Add the webhook route to your CSRF exceptions in app/Http/Middleware/VerifyCsrfToken.php:

Usage

Basic Usage with Facade

Advanced Usage

Using the Model

Using the Trait

Add the trait to any model that can have payments:

Then use it:

Handling Events

Listen to payment events in your EventServiceProvider:

Example listener:

Available Methods

Facade Methods

Method Description
createPaymentLink($amount, $orderId, $description?, $customer?) Quick payment link creation
initPayment($amountMillimes, $orderId, $options?) Full payment initialization
getPayment($paymentRef) Get payment details
isCompleted($paymentRef) Check if payment is completed
getStatus($paymentRef) Get payment status enum
toMillimes($amountTND) Convert TND to millimes
toTND($millimes) Convert millimes to TND

Model Methods

Method Description
createAndInitiate(...) Create record and initiate payment
markAsCompleted() Mark payment as completed
markAsFailed() Mark payment as failed
refreshFromKonnect() Sync status from Konnect API
isCompleted() Check if completed
isPending() Check if pending

Artisan Commands

Testing

Use sandbox mode and test cards:

Card Type Number CVV
Visa 4000000000000002 Any 3 digits
Mastercard 5100000000000008 Any 3 digits

Customization

Views

Publish and customize the views:

Views will be published to resources/views/vendor/larakonnect/.

Configuration

Publish the configuration:

Security

If you discover any security vulnerabilities, please email [email protected].

Credits

License

The MIT License (MIT). Please see License File for more information.


All versions of larakonnect with dependencies

PHP Build Version
Package Version
Requires php Version ^8.1
illuminate/support Version ^10.0|^11.0|^12.0
illuminate/http Version ^10.0|^11.0|^12.0
illuminate/routing Version ^10.0|^11.0|^12.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 rhaima/larakonnect contains the following files

Loading the files please wait ...