PHPackages                             dployhub/enett - 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. [Payment Processing](/categories/payments)
4. /
5. dployhub/enett

ActiveLibrary[Payment Processing](/categories/payments)

dployhub/enett
==============

Enett API payment integration library

1739PHP

Since May 5Pushed 9y ago1 watchersCompare

[ Source](https://github.com/dployhub/enett)[ Packagist](https://packagist.org/packages/dployhub/enett)[ RSS](/packages/dployhub-enett/feed)WikiDiscussions master Synced 5d ago

READMEChangelogDependenciesVersions (1)Used By (0)

Enett:
======

[](#enett)

A simple Laravel 5 Enett payment gateway library.

Setps for installation:
=======================

[](#setps-for-installation)

1. Use following command in your terminal to install this library. (Currently the library is in development mode):

    composer require dploy/enett dev-master
2. Update the poviders in config/app.php

    ```
     'providers' => [
         // ...
         Dploy\Enett\EnettServiceProvider::class,
     ]

    ```
3. Update the aliases in config/app.php

    ```
     'aliases' => [
         // ...
         'Enett' => Dploy\Enett\Facade\Enett::class,
     ]

    ```
4. Add following line in composer.json in your project root only

    ```
      "autoload": {
             "psr-4": {
     	        ......
     	        ......
                 "Dploy\\Enett\\": "src/"
             }
         },

    ```
5. Use composer command in your terminal

    ```
     composer dump-autoload

    ```
6. To use your own settings, publish config.

    ```
     $ php artisan vendor:publish

    ```

This is going to add config/enett.php file

NOTE: Make sure you have curl install in your system.

Examples:
=========

[](#examples)

Please find the example below:

```
	// add name space in your controller
	use Enett
	use Dploy\Enett\Models\ProcessDebitRequest;

	// In controller action, add the following code

	// Create request object, this is going to hold all your parameters
	$req = new ProcessDebitRequest([
		'transID' => '1234567',
		'primaryRef' => '987654',
		'secondaryRef' => '',
		'passengerName' => 'John Citizen',
		'departureDate' => '2017-10-01',
		'notes' => 'Testing notes',
		'ECN' => '500318',
		'amount' => 10.00,
		'currency' => 'AUD',
		'paymentDate' => date('Y-m-d'),
		'agentID' => '500221',
		'payer' => '500221',
	]);

	// Now we are ready to make our call, this is going to make your direct payment in eNett gateway
	$result = Enet::processDebitRequest($req);

	// Here you can check the returned response
	var_dump($result);

```

Results:

If all parameters are correct then API will return an XML structure following eNett's specifications.

If case of error or missing parameters Errors are thrown using classes

- EnettException

For example:

```
	throw new EnettException($request);

```

Enett server-to-server payment API note:
========================================

[](#enett-server-to-server-payment-api-note)

NOTE: You should be fully PCI compliant if you wish to perform an initial payment request server-to-server (as it requires that you collect the card data). If you are not fully PCI compliant, you can use Enett.js to collect the payment data securely.

Methods
=======

[](#methods)

- processDebitRequest

Path to Config file:
====================

[](#path-to-config-file)

```
	/src/Config/enett.php

```

Environment variables used:
===========================

[](#environment-variables-used)

```
	ENETT_ENVIRONMENT = test|live
	ENETT_INTEGRATOR = replace with your integrator ID
	ENETT_KEY = replace with your eNett key
	ENETT_VERSION=1.0
	ENETT_SOURCE = replace with your website URL

```

###  Health Score

23

—

LowBetter than 27% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity15

Limited adoption so far

Community7

Small or concentrated contributor base

Maturity41

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.

### Community

Maintainers

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

---

Top Contributors

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

### Embed Badge

![Health badge](/badges/dployhub-enett/health.svg)

```
[![Health](https://phpackages.com/badges/dployhub-enett/health.svg)](https://phpackages.com/packages/dployhub-enett)
```

###  Alternatives

[omnipay/paypal

PayPal gateway for Omnipay payment processing library

3156.8M53](/packages/omnipay-paypal)[eduardokum/laravel-boleto

Biblioteca com boletos para o laravel

626351.9k2](/packages/eduardokum-laravel-boleto)[tbbc/money-bundle

This is a Symfony bundle that integrates moneyphp/money library (Fowler pattern): https://github.com/moneyphp/money.

1961.9M](/packages/tbbc-money-bundle)[2checkout/2checkout-php

2Checkout PHP Library

83740.3k2](/packages/2checkout-2checkout-php)[smhg/sepa-qr-data

Generate QR code data for SEPA payments

61717.2k5](/packages/smhg-sepa-qr-data)[omnipay/dummy

Dummy driver for the Omnipay payment processing library

271.2M33](/packages/omnipay-dummy)

PHPackages © 2026

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