Download the PHP package fmasites/omeda without Composer
On this page you can find all versions of the php package fmasites/omeda. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Table of contents
Download fmasites/omeda
More information about fmasites/omeda
Files in fmasites/omeda
Download fmasites/omeda
More information about fmasites/omeda
Files in fmasites/omeda
Vendor fmasites
Package omeda
Short Description Omeda API client and utilities for Laravel
License MIT
Package omeda
Short Description Omeda API client and utilities for Laravel
License MIT
Please rate this library. Is it a good library?
Informations about the package omeda
fmasites/omeda
A Laravel package for interacting with the Omeda API.
Requirements
- PHP 8.3+
- Laravel 11 or 12
Installation
Configuration
Add the following to your .env file:
| Variable | Description |
|---|---|
OMEDA_APP_ID |
Your Omeda application ID |
OMEDA_BASE_API_URL |
Base URL for the Omeda brand API |
OMEDA_BRAND |
Your Omeda brand abbreviation |
OMEDA_CLIENT |
Your Omeda client abbreviation |
OMEDA_CLIENT_BASE_API_URL |
Base URL for client-level API endpoints |
OMEDA_INPUT_ID |
Input ID used for POST requests |
Usage
OmedaApi
You can also inject custom base URLs directly, which is useful in tests:
Available methods
GET methods return array|false — false indicates a non-successful response (404, 300, etc.). POST methods return an Illuminate\Http\Client\Response instance.
Getting HTML links for past issues of a deployment product
- Call
productLookupByBrand()and find the product of interest (e.g. filter byProductTypeorDeploymentTypeId). - Call
emailDeploymentSearch()with that product'sDeploymentTypeIdasType, a date range, andStatuses => ['SENT']to get the past deployments'TrackIds. - Call
emailDeploymentLookup($trackId)for each and readHtmlContentUrloff each entry inSplits. HtmlContentUrl/TextContentUrlare themselves Omeda API URLs and 400 with "No applicationId was submitted" if fetched directly (e.g. linked to from a browser) - fetch them server-side withfetchDeploymentContent($url)instead.
DataAdapter
Utilities for transforming brand comprehensive lookup data:
Enums
The package includes enums for common Omeda constants:
| Enum | Description |
|---|---|
AddressContactType |
Address contact type codes |
EmailContactType |
Email contact type codes |
PhoneContactType |
Phone contact type codes |
MarketingClassCode |
Marketing classification codes |
ProductType |
Product type codes |
SubscriptionClassCode |
Subscription classification codes |
LocationCodes |
Country, US state, Canadian province, and Mexican state codes |
Testing
All versions of omeda with dependencies
PHP Build Version
Package Version
Requires
php Version
^8.3
illuminate/support Version ^11.0|^12.0
illuminate/http Version ^11.0|^12.0
illuminate/cache Version ^11.0|^12.0
illuminate/support Version ^11.0|^12.0
illuminate/http Version ^11.0|^12.0
illuminate/cache Version ^11.0|^12.0
The package fmasites/omeda contains the following files
Loading the files please wait ...