Download the PHP package php-monsters/shaparak without Composer

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

Shaparak :: Laravel Online Payment Component

Online Payment Component for Laravel 5+ known as Shaparak component completely compatible with BankTest simulator. Shaparak integrated all Iranian/Shetab payment gateways to one component.

What is Banktest?

Support This Project

Please support the package by giving it :star: and contributing to its development.

Currently supported PSPs:

Requirements

Shaparak require PHP 7.1+

Installation

  1. Installation via php composer

  2. Add package service provider to your app service providers:

  3. Add package alias to your app aliases:

  4. Publish package assets and configs

Configuration

If you complete installation step correctly, you can find Shaparak config file as shaparak.php in you project config file.

For using sandbox environment you should set in your .env file otherwise set

if you choose development mode, Shaparak uses banktest.ir as its payment gateway.

Usage

Add required fields to the model migration

Prepare required model(s)

Your Transaction, Invoice or Order model MUST implement Shaparak Transaction Interface.

Shaparak Integration Trait

You can use a trait as below in order integrate your model with Shaparak and implement Shaparak's Transaction contract.

Sample integration trait (THIS IS JUST AN EXAMPLE):

Initialize a Shaparak instance

Create goto IPG form (Payment form)

Create a form in order to go to payment gateway. This form is auto-submit by default

Show the form in your blade like:

Callback URL/route on your application

In your callback action create a Shaparak instance and handle the transaction

Next steps (optional steps)

Use the following methods based on your needs

Security

If you discover any security related issues, please email [email protected] instead of using the issue tracker.

Team

This component is developed by the following person(s) and a bunch of awesome contributors.

Aboozar Ghaffari Maryam Nabiyan
Aboozar Ghaffari Maryam Nabiyan

License

The Laravel Online Payment Module is open-sourced software licensed under the MIT license


All versions of shaparak with dependencies

PHP Build Version
Package Version
Requires php Version >8.0
ext-curl Version *
ext-json Version *
ext-openssl Version *
ext-simplexml Version *
ext-soap Version *
ext-xml Version *
ext-bcmath Version *
illuminate/support Version >=8.0
illuminate/view Version >=8.0
php-monsters/laravel-xlog Version ^1.3
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 php-monsters/shaparak contains the following files

Loading the files please wait ....