Looking to hire Laravel developers? Try LaraJobs

laravel-tnt maintained by alagaccia

Description
TNT SOAP client for Laravel Projects
Last update
2026/05/05 13:07 (dev-master)
License
Links
Downloads
6

Comments
comments powered by Disqus

laravel-tnt

Table of Contents

Installing and configuring

Installing the package

You need to use Composer to install this package into your Laravel project:

composer require alagaccia/laravel-tnt

Load Service Provider

From Laravel 5.5 and newer the package wil register itself using Laravel's Auto Discovery.

Laravel 5.4 and older needs to include TntServiceProvider in your config/app.php:

'providers' => [
    /*
     * Package Service Providers...
     */
    AndreaLagaccia\TntServiceProvider::class,
]

Publishing the configuration file

Run the following Artisan command in your terminal to copy the environment variables:

php artisan vendor:publish --provider="AndreaLagaccia\Tnt\TntServiceProvider"

Choose the preference and press ENTER

Provider: AndreaLagaccia\Tnt\TntServiceProvider

Now you have a config/tnt.php config file, where you can set the API_KEY and your favorite LIST_ID. You can also write your Sendinblue variables in the .env file as follow:

TNT_CUSTOMER=
TNT_USER=
TNT_PASSWORD=
TNT_SENDER_ACC_ID=

Usage