PHP code example of anwar / abkash

1. Go to this page and download the library: Download anwar/abkash library. Choose the download type require.

2. Extract the ZIP file and open the index.php.

3. Add this code to the index.php.
    
        
<?php
require_once('vendor/autoload.php');

/* Start to develop here. Best regards https://php-download.com/ */

    

anwar / abkash example snippets


    'providers' => [
        ...
        Anwar\Abkash\AbkashServiceProvider::class,
    ],
    

    'aliases' => [
        ...
        Anwar\Abkash\Faceds\AbkashFaced::class,
    ],
    



/**
 * @Author: anwar
 * @Date:   2018-02-07 11:13:24
 * @Last Modified by:   anwar
 * @Last Modified time: 2018-02-07 11:32:48
 */
return [
	"Abkash" => [
		'username' => '', //username of your marchant account
		'password' => '', //password of your marchant account
		'mobile' => '',  //mobile of your marchant account
	],
];



namespace App\Http\Controllers;

use Abkash;

class HomeController extends Controller {
	/**
	 * Create a new controller instance.
	 *
	 * @return void
	 */
	public function __construct() {
		$this->middleware('auth');
	}

	/**
	 * Show the application dashboard.
	 *
	 * @return \Illuminate\Http\Response
	 */
	public function index() {

		return view('home', compact('Abkash'));
	}
}

  php artisan vendor:publish --provider Anwar\Abkash\AbkashServiceProvider --force true
  

  php artisan vendor:publish --provider Anwar\Abkash\AbkashServiceProvider --force true