PHPackages                             jlorente/laravel-payu - PHPackages - PHPackages  [Skip to content](#main-content)[PHPackages](/)[Directory](/)[Categories](/categories)[Trending](/trending)[Leaderboard](/leaderboard)[Changelog](/changelog)[Analyze](/analyze)[Collections](/collections)[Log in](/login)[Sign up](/register)

1. [Directory](/)
2. /
3. jlorente/laravel-payu

ActiveLibrary

jlorente/laravel-payu
=====================

Laravel &gt;=5.7 integration for the PayU PHP SDK package.

1.0.2(4y ago)05.4k↓100%1BSD-3-ClausePHPPHP &gt;=7.0.0

Since Sep 26Pushed 4y ago1 watchersCompare

[ Source](https://github.com/jlorente/laravel-payu)[ Packagist](https://packagist.org/packages/jlorente/laravel-payu)[ RSS](/packages/jlorente-laravel-payu/feed)WikiDiscussions master Synced 1mo ago

READMEChangelog (2)Dependencies (2)Versions (3)Used By (0)

PayU SDK for Laravel
====================

[](#payu-sdk-for-laravel)

Laravel integration of the [PayU PHP SDK](https://github.com/jlorente/payu-php-sdk).

Installation
------------

[](#installation)

The preferred way to install this extension is through [composer](http://getcomposer.org/download/).

With Composer installed, you can then install the extension using the following commands:

```
$ php composer.phar require jlorente/laravel-payu
```

or add

```
...
    "require": {
        "jlorente/laravel-payu": "*"
    }
```

to the `require` section of your `composer.json` file.

Configuration
-------------

[](#configuration)

1. Register the ServiceProvider in your config/app.php service provider list.

config/app.php

```
return [
    //other stuff
    'providers' => [
        //other stuff
        \Jlorente\Laravel\PayU\PayUServiceProvider::class,
    ];
];
```

2. Add the following facade to the $aliases section.

config/app.php

```
return [
    //other stuff
    'aliases' => [
        //other stuff
        'PayU' => \Jlorente\Laravel\PayU\Facades\PayU::class,
    ];
];
```

3. Publish the package configuration file.

```
$ php artisan vendor:publish --provider='Jlorente\Laravel\PayU\PayUServiceProvider'
```

4. Set the api\_key and api\_secret in the config/payu.php file or use the predefined env variables.

config/payu.php

```
return [
    'api_key' => 'YOUR_API_KEY',
    'api_login' => 'YOUR_API_LOGIN',
    'merchant_id' => 'YOUR_MERCHANT_ID',
    'language' => 'YOUR_LANGUAGE' // Currently 'en, 'es', 'pt (default 'es')
    'is_test' => 'YOUR_IS_TEST' // true or false
    //other configuration
];
```

or .env

```
//other configurations
PAYU_API_KEY=
PAYU_API_LOGIN=
PAYU_MERCHANT_ID=
PAYU_LANGUAGE=
PAYU_IS_TEST=

```

Usage
-----

[](#usage)

You can use the facade alias PayU to execute the PHP SDK methods through their classes. Note that the class name PayU prefix should be avoided.

```
PayU::tokens()::create($params);
PayU::payments()::doAuthorizationAndCapture($params);
PayU::reports()::getOrderDetail($parameters);
```

The authentication params will be automaticaly injected.

License
-------

[](#license)

Copyright © 2020 José Lorente Martín .

Licensed under the BSD 3-Clause License. See LICENSE.txt for details.

###  Health Score

28

—

LowBetter than 54% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity22

Limited adoption so far

Community8

Small or concentrated contributor base

Maturity50

Maturing project, gaining track record

 Bus Factor1

Top contributor holds 100% of commits — single point of failure

How is this calculated?**Maintenance (25%)** — Last commit recency, latest release date, and issue-to-star ratio. Uses a 2-year decay window.

**Popularity (30%)** — Total and monthly downloads, GitHub stars, and forks. Logarithmic scaling prevents top-heavy scores.

**Community (15%)** — Contributors, dependents, forks, watchers, and maintainers. Measures real ecosystem engagement.

**Maturity (30%)** — Project age, version count, PHP version support, and release stability.

###  Release Activity

Cadence

Every ~271 days

Total

2

Last Release

1782d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/b5b6d568331349beaf1945db65a076cf60e6c124d504fcb43a21937f0c85bde3?d=identicon)[jlorente](/maintainers/jlorente)

---

Top Contributors

[![jlorente](https://avatars.githubusercontent.com/u/301741?v=4)](https://github.com/jlorente "jlorente (3 commits)")

---

Tags

phplaravelpayujlorente

### Embed Badge

![Health badge](/badges/jlorente-laravel-payu/health.svg)

```
[![Health](https://phpackages.com/badges/jlorente-laravel-payu/health.svg)](https://phpackages.com/packages/jlorente-laravel-payu)
```

###  Alternatives

[maatwebsite/excel

Supercharged Excel exports and imports in Laravel

12.7k144.3M712](/packages/maatwebsite-excel)[monicahq/laravel-cloudflare

Add Cloudflare ip addresses to trusted proxies for Laravel.

3372.7M4](/packages/monicahq-laravel-cloudflare)[kra8/laravel-snowflake

Snowflake for Laravel and Lumen.

188402.3k6](/packages/kra8-laravel-snowflake)[php-flasher/flasher-laravel

Seamlessly integrate flash notifications into your Laravel applications with PHPFlasher. Enhance user feedback and engagement with minimal setup.

442.8M35](/packages/php-flasher-flasher-laravel)

PHPackages © 2026

[Directory](/)[Categories](/categories)[Trending](/trending)[Changelog](/changelog)[Analyze](/analyze)
