Download the PHP package woyra/woyra-php without Composer

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

woyra/woyra-php

The official PHP SDK for the Woyra email API.

Install

Quickstart

to, cc, bcc and reply_to each take one address or an array of them, and Name <address> is accepted. Responses are decoded associative arrays.

Options

Send with a template

Templates also have get($id), list(['limit' => 10, 'cursor' => ...]), update($id, ['subject' => ...]) and remove($id).

Batch

Up to 100 emails in one request, all or nothing, under one idempotency key:

Schedule and cancel

emails->get($id) returns an email with every status it has had; emails->list(['limit' => 25, 'cursor' => ...]) pages through them.

Idempotency

A key is generated for you on every POST. To make a send safe to repeat across process restarts, derive the key from what the send is about:

Domains and webhook endpoints

Also domains->list(), domains->remove($id), webhooks->list() and webhooks->remove($id).

Verify webhooks

Verify the raw body, before any JSON decoding. Webhook::verify checks the HMAC-SHA256 signature in constant time, rejects timestamps more than 5 minutes away, and returns the decoded event:

$woyra->webhooks->verify(...) is the same function. Headers may come from getallheaders(), $_SERVER, or a PSR-7 $request->getHeaders(). Deliveries are at-least-once: deduplicate on $event['id'].

Errors

Every error is a Woyra\WoyraException:

Getters (getStatus(), getErrorCode(), getParam(), getRequestId(), getDocUrl()) are available too. Woyra\ConnectionException (errorCode connection_error, status 0) means no response arrived after every retry. Woyra\WebhookVerificationException is thrown by webhook verification.

Development

The runner needs nothing but PHP: it starts a local mock API with php -S and runs every test against it.

License

MIT. Copyright (c) 2026 MINAC GROUP LLC.


All versions of woyra-php with dependencies

PHP Build Version
Package Version
Requires php Version >=8.1
ext-curl Version *
ext-json Version *
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 woyra/woyra-php contains the following files

Loading the files please wait ...