Download the PHP package barkapay-sa/barkapay-laravel without Composer

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

🚀 BarkaPay Laravel

BarkaPay Laravel est un package Laravel qui permet d'intégrer facilement les services de paiement BarkaPay dans vos applications. Il fournit une interface simple pour effectuer des transactions via BarkaPay, y compris les paiements mobiles et les services SCI.


📌 Installation

1️⃣ Installer le package via Composer

2️⃣ Publier le fichier de configuration

3️⃣ Configurer les clés API

Ajoutez vos informations d'identification BarkaPay dans votre fichier .env :


⚙️ Configuration

Après la publication, un fichier de configuration config/barkapay.php sera généré. Vous pouvez y modifier les paramètres selon vos besoins :


🚀 Utilisation

Une fois installé et configuré, vous pouvez utiliser BarkaPay via la Façade Laravel ou directement via le Service Container.

📌 Accéder aux Services

BarkaPay expose cinq services principaux sous une seule interface :


📌 Services Disponibles

Service Description
APIBarkaPayPaymentService Service principal pour les paiements mobiles via API
SCIBarkaPayPaymentService Service pour créer des liens de paiement en ligne (SCI)
MoovMoneyBFBarkaPayPaymentService Service spécifique pour Moov Money au Burkina Faso
OrangeMoneyBFBarkaPayPaymentService Service spécifique pour Orange Money au Burkina Faso
BaseBarkaPayPaymentService Service de base utilisé par les autres services
APIService Vérification des identifiants et récupération des services disponibles

📌 Liste des fonctions disponibles

Nom de la fonction Description Appel
verifyCredentials() Vérifie si les identifiants API sont valides BarkaPay::api()->verifyCredentials();
getUserInfos() Récupère les informations du compte utilisateur BarkaPay::api()->getUserInfos();
getAccountsBalances() Récupère les soldes des comptes associés BarkaPay::api()->getAccountsBalances();
getOperatorsInfos() Récupère les informations sur les opérateurs de paiement BarkaPay::api()->getOperatorsInfos();
getAvailableServices() Liste les services BarkaPay disponibles pour l'utilisateur BarkaPay::api()->getAvailableServices();
getPaymentDetails($publicId) Récupère les détails d'un paiement spécifique BarkaPay::api()->getPaymentDetails($publicId);
getTransferDetails($publicId) Récupère les détails d'un transfert spécifique BarkaPay::api()->getTransferDetails($publicId);
createMobilePayment($details) Crée une transaction de paiement mobile BarkaPay::api()->createMobilePayment([...]);
createPaymentLink($data) Crée un lien de paiement SCI BarkaPay::sci()->createPaymentLink([...]);
proceedPayment($paymentDetails, $language) Initialise un paiement mobile avec Orange Money BarkaPay::api()->proceedPayment([...], 'fr');
initMobilePayment($paymentDetails, $language) Initialise un paiement mobile avec Moov Money BarkaPay::api()->initMobilePayment([...], 'fr');
verifyMobilePayment($publicId, $language) Vérifie le statut d'un paiement mobile BarkaPay::api()->verifyMobilePayment($publicId, 'fr');
base() Accède au service de base BarkaPay::base();
api() Accède au service API BarkaPay::api();
sci() Accède au service SCI BarkaPay::sci();
orangeMoney() Accède au service Orange Money BarkaPay::orangeMoney();
moovMoney() Accède au service Moov Money BarkaPay::moovMoney();

📌 Exemples d'utilisation

🔹 Création d'un lien de paiement SCI

🔹 Création d'un paiement mobile

🔹 Vérification d'un paiement

🔹 Paiement avec Orange Money

🔹 Paiement avec Moov Money


🔥 Pourquoi utiliser BarkaPay Laravel ?

Intégration simple et rapide dans vos applications Laravel
Interface fluide avec une façade Laravel
Gestion complète des paiements mobiles et des liens SCI
Sécurisé avec l’utilisation des clés API et des bonnes pratiques Laravel

🔍 Débogage et Assistance

📌 Vider le cache en cas d’erreur

Si vous rencontrez des erreurs après l'installation, essayez les commandes suivantes :

sh composer dump-autoload php artisan config:clear php artisan cache:clear php artisan route:clear php artisan view:clear

📌 Contacter le support

Pour toute question ou problème, veuillez contacter notre support technique :


🔥 Avec BarkaPay Laravel, boostez vos paiements en toute simplicité ! 🚀


All versions of barkapay-laravel with dependencies

PHP Build Version
Package Version
Requires php Version >=8.0
guzzlehttp/guzzle Version ^7.0
vlucas/phpdotenv Version ^5.4
illuminate/support Version ^8.0|^9.0|^10.0|^11.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 barkapay-sa/barkapay-laravel contains the following files

Loading the files please wait ....