imagina/laravel-payu

PayU autoloader for laravel

0.1.2 2020-02-28 13:48 UTC

This package is auto-updated.

Last update: 2024-10-23 05:45:47 UTC


README

A simple autoload for PayU SDK PHP in laravel.

Installation

Add follow lines in the composer.json file

  "repositories": [
    ...
    {
      "type": "git",
      "url": "https://github.com/imagina/Laravel-payU.git"
    }
    ...
  ],

Install via composer

 composer require imagina/laravel-payu

Usage

<?php
  
  namespace App\Http\Controllers;
  
  use App\Http\Controllers\Controller;
  use PayUReports;
  
  class myController extends Controller
  {
    public function ping () {
      PayUReports::doPing();
    }
  }