Download the PHP package ome-tronet/laravel-frontapp-mailer without Composer

On this page you can find all versions of the php package ome-tronet/laravel-frontapp-mailer. 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-frontapp-mailer

Laravel Package for using Front as a mailer

Latest Version on Packagist GitHub Tests Action Status Total Downloads

This package registers a laravel mailer so you can send your application's mails via Front API (https://front.com/). This can be useful if you are expecting a conversation with the recipient and want to follow it up in Front. You also have the option of tagging emails when they are sent in order to classify them in Front.

Requires

Installation

You can install the package via composer:

Add your Frontapp API token to your .env file like this:

You must publish the config file frontapp-mailer.php in order to specify all allowed senders.

Just FYI: This config will automatically be added as a new config key of mail.mailers by the package when booting.

To add your senders you need the Front channel_id of the shared inbox. If you want to send mails from a specific user you also need to provide the author_id of the teammate.

Usage

Create your mailable as usual like php artisan make:mail MyMail and use one of the senders you added to the frontapp-mailer.php config file as address in the envelope. You may also add front tags by their tag_id to the conversation upfront.

Now you can use the Front mailer everywhere you like to send this mailable to your recipients.

Where to get the API token

In the front app, go to Settings > Developers and click on the API tokens tab. There you can get an existing API token or create a new one.

Where do I find the IDs of channels, authors, and tags

Got to Front's API reference page to list the channels, teammates and tags. If you provide your API token, the page will generate the API call ready to use as e.g. curl shell command:

Extract the IDs of the channels ('cha_XXXXX'), authors ('tea_XXXXX') and tags ('tag_XXXXX') that you want to use in your application from the API responses.

Changelog

Please see CHANGELOG for more information on what has changed recently.

License

The MIT License (MIT). Please see License File for more information.


All versions of laravel-frontapp-mailer with dependencies

PHP Build Version
Package Version
Requires php Version ^8.2
illuminate/contracts Version ^10.0||^11.0
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 ome-tronet/laravel-frontapp-mailer contains the following files

Loading the files please wait ....