Download the PHP package eubourne/laravel-mailgun without Composer

On this page you can find all versions of the php package eubourne/laravel-mailgun. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.

FAQ

After the download, you have to make one include require_once('vendor/autoload.php');. After that you have to import the classes with use statements.

Example:
If you use only one package a project is not needed. But if you use more then one package, without a project it is not possible to import the classes with use statements.

In general, it is recommended to use always a project to download your libraries. In an application normally there is more than one library needed.
Some PHP packages are not free to download and because of that hosted in private repositories. In this case some credentials are needed to access such packages. Please use the auth.json textarea to insert credentials, if a package is coming from a private repository. You can look here for more information.

  • Some hosting areas are not accessible by a terminal or SSH. Then it is not possible to use Composer.
  • To use Composer is sometimes complicated. Especially for beginners.
  • Composer needs much resources. Sometimes they are not available on a simple webspace.
  • If you are using private repositories you don't need to share your credentials. You can set up everything on our site and then you provide a simple download link to your team member.
  • Simplify your Composer build process. Use our own command line tool to download the vendor folder as binary. This makes your build process faster and you don't need to expose your credentials for private repositories.
Please rate this library. Is it a good library?

Informations about the package laravel-mailgun

Laravel Mailgun

Latest Version on Packagist

Laravel Mailgun is a custom Laravel Mailgun driver that enables you to configure individual domains for multiple mailers, providing enhanced flexibility and precise control over email delivery.

Features

Installation

To install the package, run:

This package supports Laravel's package auto-discovery feature, so no manual service provider registration is required.

Basic Usage

1. Configure Mailgun API Settings

In your config/services.php file, add the Mailgun API credentials:

2. Define a Mailer

Update or create a new mailer in your config/mail.php file, specifying the mailgun-api transport:

3. Set Environment Variables

Add the required Mailgun-specific values to your .env file.

4. Use the Mailer

When sending a mailable, specify your custom mailer:

Setting a Default Mailer for a Mailable

If you want to always send a specific mailable using a particular mailer, you can define it with a public $mailer property in your mailable class:

Alternatively, you can use the mailer($mailerName) method on your mailable instance to set the mailer dynamically at runtime:

Important Notes:

This flexibility allows you to set a default mailer for each mailable while retaining the ability to override it dynamically.


Utilities

The package comes with a helpful Artisan command for testing email configuration and deliverability:

Whitelist Addresses

Before sending test emails, whitelist the recipient addresses by adding a whitelist key to your config/mail.php file:

Example Usage

Send a test email to a whitelisted address:

Specify a mailer for the test:

Send the email through a specific queue:


License

This package is open-source and available for free under the MIT license.


Contributing

Feel free to submit issues or pull requests to help improve this package.


Contact

For more information or support, please reach out via GitHub or email.


All versions of laravel-mailgun with dependencies

PHP Build Version
Package Version
Requires php Version ^8.3
mailgun/mailgun-php Version ^4.3
nyholm/psr7 Version ^1.8
symfony/mailer Version ^7.1
illuminate/mail Version ^11.33
psr/http-client Version ^1.0
laravel/prompts Version ^0.3.2
illuminate/console Version ^11.33
illuminate/validation Version ^11.33
symfony/var-dumper Version ^7.1
illuminate/config Version ^11.33
Composer command for our command line client (download client) This client runs in each environment. You don't need a specific PHP version etc. The first 20 API calls are free. Standard composer command

The package eubourne/laravel-mailgun contains the following files

Loading the files please wait ....