Download the PHP package zerkxubas/esewa-laravel without Composer

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

Esewa package for Laravel

This package is for Laravel Framework making super easy for developers to integrate the eSewa payments into Laravel Application and use instantly. For more details read Official eSewa Documentation.

Installation

Install this Package – Using Composer.

Composer Installation

Sail Installation

Publishing The Configurations

This will publish esewa.php inside the config directory of your laravel project.

.env Settings [ Development Mode ]

inside the .env file use these below config values for quick setup. For, Production Mode ensuure you set ESEWA_DEBUG_MODE=false & use The Production ESEWA_API_URL and also the ESEWA_MERCHAND_CODE in .env file

NOTE: i prefer to use the Sail environment for development so the url seems to be without any port here in my .env but you can specify any url which works for you.

Quick Examples

Easily Create an eSewa Portal Payment Checkout

In this method i have made it super simpler & easier to implement & use instantly in laravel projects. Use like the below example code inside your controller and this will take the user to the esewa payment portal.

Dont Forget To Create The Success & Failure Route

Parameters

  1. pid => paymentID
  2. amt => totalAmount
  3. txAmt => taxAmount
  4. psc => serviceCharge
  5. pdc => deliveryCharge

Testing Credentials

Default credentials provided by esewa for testing or development purpose.

eSewa ID: 9806800001/2/3/4/5

Password: Nepal@123

Token: 123456

Verify Payment

To verify our payments status this is super simpler & easier just use like this and you are good to go.

License

This package is open-sourced & free to use licensed under the MIT license.

Additional

Reading esewa official documentation is highly recommended as there might be new changes in future so its crucial for a developer to be updated with the latest changes.


All versions of esewa-laravel with dependencies

PHP Build Version
Package Version
Requires php Version >=8.0
ext-curl Version *
ext-simplexml 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 zerkxubas/esewa-laravel contains the following files

Loading the files please wait ....