Download the PHP package opencoreemr/oce-module-sinch-fax without Composer

On this page you can find all versions of the php package opencoreemr/oce-module-sinch-fax. 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 oce-module-sinch-fax

OpenEMR Sinch Fax Module

A secure fax integration module for OpenEMR using the Sinch Fax API.

Features

Requirements

Installation

Via Composer (Recommended)

  1. Navigate to your OpenEMR installation directory
  2. Install the module via Composer:

  3. Log into OpenEMR as an administrator
  4. Navigate to Administration > Modules > Manage Modules
  5. Find "OpenCoreEMR Sinch Fax" in the list and click Register
  6. Click Install
  7. Click Enable

Manual Installation

  1. Download the latest release
  2. Extract to interface/modules/custom_modules/oce-module-sinch-fax (relative to your OpenEMR root directory)
  3. Follow steps 3-7 from the Composer installation

Configuration

The module supports three configuration modes with the following precedence (highest to lowest):

  1. Environment variables — each OCE_SINCH_FAX_* variable overrides the corresponding setting
  2. YAML files — for Kubernetes-style deployments with ConfigMap/Secret volumes
  3. Database (UI) — the default; edit settings in Administration > Globals > OpenCoreEMR Sinch Fax Module

When file-based or environment configuration is active, the admin UI displays "Configuration Managed Externally" instead of editable fields.

Configuration Settings

General Settings (not sensitive)

Setting Env Var Default Description
Enabled OCE_SINCH_FAX_ENABLED false Enable the module
Project ID OCE_SINCH_FAX_PROJECT_ID Sinch project ID (required)
Service ID OCE_SINCH_FAX_SERVICE_ID Sinch service ID (optional, not required for fax)
Auth Method OCE_SINCH_FAX_AUTH_METHOD basic Authentication method (basic)
Region OCE_SINCH_FAX_REGION global API region (global, use1, eu1, sae1, apse1, apse2)
File Storage Path OCE_SINCH_FAX_FILE_STORAGE_PATH Fax file storage directory (defaults to site documents)
Default Retry Count OCE_SINCH_FAX_DEFAULT_RETRY_COUNT 3 Number of send retries
Webhook Username OCE_SINCH_FAX_WEBHOOK_USERNAME HTTP Basic Auth username for incoming webhooks
Webhook IP Allowlist OCE_SINCH_FAX_WEBHOOK_IP_ALLOWLIST Allowed IPs/CIDRs for webhooks (comma or newline-separated; empty allows all)

Secrets (treat as sensitive)

Setting Env Var Description
API Key OCE_SINCH_FAX_API_KEY Sinch API key
API Secret OCE_SINCH_FAX_API_SECRET Sinch API secret
Webhook Password OCE_SINCH_FAX_WEBHOOK_PASSWORD HTTP Basic Auth password for incoming webhooks — should be a bcrypt hash (see below)

In database mode, API Secret is encrypted at rest, and Webhook Password is automatically hashed on save. In file/environment modes, the deployment platform (e.g., Kubernetes Secrets) is responsible for protecting these values. Webhook Password should be provided as a bcrypt hash — the module will accept plaintext for development convenience, but plaintext passwords should never be used in production. Generate a hash with htpasswd -nbBC 10 '' 'your-password' | cut -d: -f2 or any bcrypt tool.

Mode 1: Database (Default)

Navigate to Administration > Globals > OpenCoreEMR Sinch Fax Module, configure the settings, and save.

Mode 2: YAML Files

Mount YAML files at the conventional paths. The module auto-detects their presence — no activation flag needed.

Path Purpose K8s Source
/etc/oce/sinch-fax/config.yaml General settings ConfigMap
/etc/oce/sinch-fax/secrets.yaml Secrets Secret

Override paths with OCE_SINCH_FAX_CONFIG_FILE and OCE_SINCH_FAX_SECRETS_FILE.

Example config.yaml:

Example secrets.yaml:

Config files support Symfony-style imports for splitting across files (paths resolve relative to the importing file). Keys in the parent file override imported keys.

Even when using YAML files, any OCE_SINCH_FAX_* environment variable still takes precedence over the file value.

Mode 3: Environment Variables Only

Set OCE_SINCH_FAX_ENV_CONFIG=1 to use pure environment variable configuration without YAML files. Then set each OCE_SINCH_FAX_* variable listed in the tables above.

Usage

Accessing the Module

Once installed and configured, you can access the module from the Modules menu:

Sending a Fax

The module supports the following file formats: PDF, TIFF, PNG, JPEG, DOC, and DOCX.

From Patient Documents (Recommended)

In real-world usage, you'll typically send faxes directly from a patient's document:

  1. Navigate to a patient's Documents tab
  2. Select the document you want to fax
  3. Click the Send Fax button in the document viewer toolbar

  1. In the Send Fax dialog, the document and patient are already pre-filled
  2. Enter the recipient fax number in E.164 format (e.g., +12345678901)
  3. Click Send Fax

From the Module Interface

Alternatively, you can upload and send files directly:

  1. Navigate to Modules > OpenCoreEMR Sinch Fax
  2. Click the Send Fax tab
  3. Enter the recipient fax number(s)
  4. Select or upload the file(s) to fax
  5. Optionally link to a patient record
  6. Click Send Fax

Upon successful submission, you'll receive a fax ID that can be used to track the fax in progress.

Note: The screenshots show demo data. Patient information displayed is for demonstration purposes only, and +19898989898 is Sinch's demo fax number for testing.

Receiving Faxes

Incoming faxes are automatically received via webhook and stored in the module:

  1. Navigate to Modules > OpenCoreEMR Sinch Fax
  2. Click the Fax List tab to view all received faxes
  3. Locate the received fax you want to assign to a patient
  4. Click the Move to Patient button
  5. Select the patient to associate the fax with

Once moved to a patient, the fax will:

Viewing Faxes

  1. Navigate to Modules > OpenCoreEMR Sinch Fax
  2. Click the Fax List tab to view all sent and received faxes
  3. The list shows direction, fax ID, recipient/sender, status, pages, and timestamp

Fax States:

Filtering:

Bulk Actions:

Automatic Actions:

Security

Support

License

GNU General Public License v3.0 or later

Credits

Developed by OpenCoreEMR Inc


All versions of oce-module-sinch-fax with dependencies

PHP Build Version
Package Version
Requires php Version >=8.2
ext-curl Version *
ext-date Version *
ext-filter Version *
ext-hash Version *
ext-json Version *
guzzlehttp/guzzle Version ^7.0
openemr/oe-module-installer-plugin Version ^0.1.5
psr/http-message Version ^1.1 || ^2.0
psr/log Version ^1.0 || ^2.0 || ^3.0
symfony/console Version ^6.4 || ^7.0
symfony/event-dispatcher Version ^6.4 || ^7.0
symfony/http-foundation Version ^6.4 || ^7.0
symfony/yaml Version ^6.4 || ^7.0
twig/twig Version ^3.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 opencoreemr/oce-module-sinch-fax contains the following files

Loading the files please wait ...