New

Just launched: Vueblocks, a brand-new search engine for Vue packages! Explore Vueblocks →

halilcosdu/laravel-signalwire

Laravel SignalWire - Send Fax From Laravel
2,911 5
Install
composer require halilcosdu/laravel-signalwire
Latest Version:v1.1.0
PHP:^8.2
Laravel:10 – 13
License:MIT
Last Updated:Apr 9, 2026
Links: GitHub  ·  Packagist
Maintainer: halilcosdu

Laravel SignalWire - Send Fax From Laravel

Latest Version on Packagist GitHub Tests Action Status GitHub Code Style Action Status Total Downloads

Send Fax From Laravel package provides a Laravel-friendly interface for interacting with the SignalWire API, a cloud communication platform that offers services like voice, messaging, and video.

The package offers a variety of methods to interact with different aspects of the SignalWire services:

  • Fax Operations: You can send, receive, update, and delete faxes. This includes methods like faxes, sendFax, getFax, updateFax, and deleteFax.

  • Phone Numbers: You can list, create, update, and delete incoming phone numbers. This includes methods like listIncomingPhoneNumbers, createIncomingPhoneNumber, getIncomingPhoneNumber, updateIncomingPhoneNumber, deleteIncomingPhoneNumber, and getAvailablePhoneNumbers.

  • Fax Media: You can manage media related to faxes. This includes methods like faxMedias, getFaxMedia, and deleteFaxMedia.

The package uses the Facade pattern, which means you can access all these methods statically via the SignalWire facade. This makes it easy to use the SignalWire services in your Laravel application.

Installation

You can install the package via composer:

composer require halilcosdu/laravel-signalwire

You can publish the config file with:

php artisan vendor:publish --tag="signalwire-config"

This is the contents of the published config file:

return [
    'project_id' => env('SIGNALWIRE_PROJECT_ID'),
    'token' => env('SIGNALWIRE_TOKEN'),
    'space_url' => env('SIGNALWIRE_SPACE_URL'),
    'incoming_phone_number_status_callback_url' => env('SIGNALWIRE_INCOMING_PHONE_NUMBER_STATUS_CALLBACK_URL'), //create or update IncomingPhoneNumbers
    'incoming_phone_number_voice_url' => env('SIGNALWIRE_INCOMING_PHONE_NUMBER_VOICE_URL'),// create or update IncomingPhoneNumbers
];

Usage

use HalilCosdu\SignalWire\Facades\SignalWire;

// Fax Operations
SignalWire::faxes(?string $dateCreateAfter = null, ?string $dateCreatedOnOrBefore = null, ?string $from = null, ?string $to = null)

SignalWire::sendFax(string $mediaUrl, string $to, string $from, ?string $statusCallback = null, string $quality = 'standard')

SignalWire::getFax(string $sid)

SignalWire::updateFax(string $sid, string $status)

SignalWire::deleteFax(string $sid)

// Phone Number Operations
SignalWire::listIncomingPhoneNumbers(?string $beta = null, ?string $friendlyName = null, ?string $origin = null, ?string $phoneNumber = null)

SignalWire::createIncomingPhoneNumber(string $areaCode, string $phoneNumber, ?string $addressSid = null, ?string $friendlyName = null, ?string $identitySid = null, ?string $smsApplicationSid = null, ?string $smsFallbackMethod = null, ?string $smsFallbackUrl = null, ?string $smsMethod = null, ?string $smsUrl = null, ?string $statusCallback = null, ?string $statusCallbackMethod = null, ?string $trunkSid = null, ?string $voiceApplicationSid = null, bool $voiceCallerIdLookup = false, ?string $voiceFallbackMethod = null, ?string $voiceFallbackUrl = null, ?string $voiceMethod = null, string $voiceReceiveMode = 'fax', ?string $voiceUrl = null)

SignalWire::getIncomingPhoneNumber(string $phoneNumberSid)

SignalWire::updateIncomingPhoneNumber(string $phoneNumberSid, string $friendlyName, string $smsUrl, string $smsMethod, string $voiceUrl, string $voiceMethod)

SignalWire::deleteIncomingPhoneNumber(string $phoneNumberSid)

// Available Numbers to Buy
SignalWire::getAvailablePhoneNumbers(string $isoCountry, ?string $areaCode, bool $beta = false, ?string $contains = null, bool $excludeAllAddressRequired = false, bool $excludeLocalAddressRequired = false, bool $faxEnabled = false, string $inRegion = null, bool $mmsEnabled = false, bool $voiceEnabled = false)

// Fax Media
SignalWire::faxMedias(string $faxSid)

SignalWire::getFaxMedia(string $faxSid, string $mediaSid)

SignalWire::deleteFaxMedia(string $faxSid, string $mediaSid)


Example

use HalilCosdu\SignalWire\Facades\SignalWire;

// Send Fax
SignalWire::sendFax('https://www.example.com/fax.pdf', '+1234567890', '+0987654321', 'https://www.example.com/fax-status-callback', 'standard');

Testing

composer test

Changelog

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

Contributing

Please see CONTRIBUTING for details.

Security Vulnerabilities

Please review our security policy on how to report security vulnerabilities.

Credits

License

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

Related Packages

halilcosdu/laravel-logweaver

Laravel S3-compatible log system.

1,653 7
halilcosdu/laravel-ollama

Laravel Ollama API Wrapper - Interact with the Ollama API

1,087 26
doctrine/dbal

Powerful PHP database abstraction layer (DBAL) with many features for database s...

648,266,899 9,701
laravel/framework

The Laravel Framework.

604,216,237 34,982
laravel/tinker

Powerful REPL for the Laravel framework.

512,508,631 7,443

Version History

Version Released PHP Laravel License
v1.1.0 ^8.2 ^10.0||^11.0||^12.0||^13.0 MIT
v1.0.2 ^8.2 ^10.0||^11.0||^12.0 MIT
v1.0.1 ^8.2 ^10.0||^11.0 MIT
v1.0.0 ^8.2 ^10.0||^11.0 MIT