grschannel/laravel-notification-fax-ir
Laravel notification channel for sending faxes via Fax.ir. Install with Composer and use it in your notification workflows to deliver fax messages from your Laravel application through the Fax.ir service.
fax.ir API), which may restrict flexibility for enterprises needing multi-provider fax support or custom fax logic.config/notifications.php).fax.ir). Requires:
.env).laravel-notification-channel base). May need adjustments for older versions.fax.ir API could complicate provider swaps or regulatory compliance (e.g., GDPR for fax storage).fax.ir the only fax provider needed, or will multi-provider support be required later?fax.ir? Are there fallback mechanisms for downtime?Notification::send($user, new FaxNotification)).shouldQueue()).Mailable classes for fax content).composer require grschannel/laravel-faxir-notification.php artisan vendor:publish --tag=faxir-config.FAXIR_API_KEY in .env.config/notifications.php:
'fax' => [
'driver' => 'faxir',
'api_key' => env('FAXIR_API_KEY'),
],
Notification class or use anonymous notifications:
use Grschannel\FaxirNotification\FaxirMessage;
Notification::send($user, new class extends Notification {
public function via($notifiable) {
return ['fax'];
}
public function toFax($notifiable) {
return (new FaxirMessage)
->to($notifiable->fax_number)
->subject('Invoice #123')
->content('PDF invoice attached.');
}
});
GuzzleHttp\Client to test API interactions.laravel-notification-channel base).composer.json constraints).fax.ir API: Monitor for breaking changes or deprecations.InvalidFaxNumber).fax.ir may throttle high-volume requests (check their docs).fax.ir pricing).| Failure Scenario | Impact | Mitigation |
|---|---|---|
fax.ir API downtime |
Faxes not sent | Implement retry logic + fallback provider. |
| Invalid fax number | API rejects request | Validate numbers before sending. |
| PDF conversion errors | Fax content corrupted | Use pre-generated PDFs or robust library. |
| API key leakage | Security breach | Use Laravel Envoy or AWS Secrets Manager. |
| High API latency | Slow user experience | Cache static fax templates. |
| Queue worker crashes | Backlog of unsent faxes | Monitor failed jobs with Horizon/Sentry. |
fax.ir errors.How can I help you explore Laravel packages today?