Download the PHP package laravel-notification-channels/interfax without Composer

On this page you can find all versions of the php package laravel-notification-channels/interfax. 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 interfax

InterFAX notification channel for Laravel 9.x, 10.x

Latest Version on Packagist Build Status Total Downloads

This package makes it easy to send notifications using InterFAX with Laravel 9.x and 10.x.

Contents

Installation

You can install this package via composer:

The service provider gets loaded automatically.

Setting up the InterFAX service

This channel will use your InterFAX username and password. To use the channel, add this to your config/services.php file:

This will load your InterFAX credentials from the .env file. If your requests must be PCI-DSS-compliant, set INTERFAX_PCI=true in your .env file.

The services.interfax.interval configuration setting is the polling interval, in seconds, for a fax if it is set to check the status until it is complete. This is optional and will default to 15 if left empty. The interval has a minimum of 10 seconds, as the outbound service in the API has a maximum freqncy of 6 requests per minute and can return errors if polled more frequently.

Faxes can sometimes take more than 10 minutes to send, so it is recommended to configure a long-running queue and to push your fax notifications to that queue. More information on configuring long-running queues can be found here.

The services.interfax.chunk_size configuration setting is the maximum file size before the InterFAX core SDK starts chunking files. The default chunk size is 1048576. When chunking, an \Interfax\Document object is created, but the /outbound/documents endpoint does not exist for the PCI-DSS-compliant API. If services.interfax.pci is set to true, it is recommended to increase the chunk size to avoid 404 errors.

Usage

To use this package, you can create a notification class, like DocumentWasSent from the example below, in your Laravel application. Make sure to check out Laravel's documentation for this process.

Send PDF via fax

The Notifiable model will need to return a destination fax number.

Available Message methods

file(string $file) : Accepts the full path to a single file (full list of supported file types found here).
files(array $array) : Accepts an array of file paths. If overriding the default chunk_size in the config and using an \Interfax\File object in the array, use \NotificationChannels\Interfax\InterfaxFile instead to automatically set the file's chunk size on initialization.
stream(Filestream $stream, string $name) : Accepts a file stream.
addMetadata(array $data): Add metadata for logging purposes in case of an error.

Changelog

Please see CHANGELOG for more information what has changed recently.

Testing

Security

If you discover any security related issues, please email [email protected] instead of using the issue tracker.

Contributing

Please see CONTRIBUTING for details.

Credits

License

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


All versions of interfax with dependencies

PHP Build Version
Package Version
Requires php Version ^8.1
illuminate/notifications Version ^10.0|^11.0
illuminate/support Version ^10.0|^11.0
interfax/interfax Version ^2.0
psr/log Version ^2.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 laravel-notification-channels/interfax contains the following files

Loading the files please wait ....