Download the PHP package mailkube/mailkube-laravel without Composer

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

mailkube-laravel

CI Packagist

Laravel mail transport for mailkube.

Send mail through mailkube using Laravel's own Mail facade, and receive webhooks as Laravel events. This package is a thin adapter over mailkube/mailkube-php: the API, retries, errors and signature verification all live there.

Full product and API documentation: docs.mailkube.com/sdks/laravel.

Requirements

PHP 8.3+ and Laravel 12 or 13.

Laravel 11 is not supported. It is past security support, and the advisory covering >=11.0.0,<12.0.0 has no patched 11.x release, so Composer's default audit policy declines to install it at all.

Install

The service provider is discovered automatically. Add the mailer to config/mail.php:

and point MAIL_MAILER at it:

That is the whole setup. Everything else on this page is optional.

Sending

Nothing about your application changes. Mailables, Mail::to(...), queued mail, attachments, Mail::fake() in tests: all of it works as it already did.

What is mapped

The sender, recipients (including blind copies), subject, both bodies, attachments and your custom headers. Anything Laravel's mail API can express, this transport passes through.

Send-time features the SDK offers but Laravel's mail API has no slot for — tags, topics, templates, scheduling, idempotency keys — are reached by using the SDK directly:

The client is bound in the container and already carries your configuration, so there is nothing to wire up.

Inline images degrade to ordinary attachments. The API's attachment model carries a filename, content and content type, with no content id, so a cid: reference has nothing to resolve against. This is a capability of the platform rather than of this package.

Configuration

Reading order for every setting: the per-mailer array in config/mail.php, then config/mailkube.php, then the SDK's own environment fallback.

Setting config/mail.php key Environment Default
API key api_key MAILKUBE_API_KEY required
Base URL base_url MAILKUBE_BASE_URL the SDK's
Timeout timeout MAILKUBE_TIMEOUT the SDK's
Log channel MAILKUBE_LOG_CHANNEL none (silent)
Webhook path MAILKUBE_WEBHOOK_PATH none (no route)
Webhook secret MAILKUBE_WEBHOOK_SECRET required for webhooks
Webhook tolerance MAILKUBE_WEBHOOK_TOLERANCE the SDK's

An unset setting is omitted rather than passed along as null, so the SDK's own resolution still applies.

Name a channel from config/logging.php and the SDK writes its request and response metadata through Laravel's logging stack at debug level:

Bodies are never logged, and the Authorization and Idempotency-Key headers are redacted by the SDK.

Publish the config file only if you want to edit it in place:

Two accounts, two mailers

Give a mailer its own credentials and it gets its own client:

Errors

A failed send raises Symfony\Component\Mailer\Exception\TransportException with the SDK's own exception as its previous. That is Laravel's and Symfony's error type rather than this package's on purpose: failover transports, queued-mail failure handling and Mail::assertNothingSent() all key off it.

Retry policy is deliberately not this package's business: the SDK documents which errors are safe to retry, and Laravel's queue is what retries them.

Webhooks

Off by default. A package should not mount an unauthenticated POST route just for being installed, so you opt in by naming a path:

Deliveries are verified against the raw request body and dispatched as one Laravel event:

One event class rather than one per webhook type, so an event this SDK release does not model still reaches your listener with its payload intact instead of being dropped.

Listeners run inside the request unless you queue them, and the endpoint answers as soon as they return. Queue anything slow, or delivery latency becomes retries.

The route defaults to the api middleware group, which has no CSRF verification. A machine-to-machine POST cannot present a CSRF token, so if you move it into web you must add the path to your CSRF exceptions or every delivery is rejected with a 419. Likewise, any middleware that decodes and re-encodes the request body breaks the signature: it no longer covers the bytes that were signed.

Point it at your own controller instead, if you prefer:

Extending this package

Before adding a setting, a mapped field, or another entry point, read .rules/INTEGRATION_CONTRACT.md (what every mailkube framework integration does identically) and .rules/LARAVEL_INTEGRATION.md (how those rules land here). The contract ends with the checklist for exposing a new SDK capability.

The short version: the capability has to exist in the SDK first, inputs are mapped in src/Payload.php and never at a call site, and configuration goes through src/Config.php.

This package ships no examples/ directory, deliberately: every entry point it exposes needs a host application before it can run. This README is the wiring documentation, and the test suite is what keeps it honest.

Contributing

See CONTRIBUTING.md for the development setup and the quality gates every change must pass. Security issues: see SECURITY.md.

License

Apache-2.0 © 2026 Mail Tactic Corporation.


All versions of mailkube-laravel with dependencies

PHP Build Version
Package Version
Requires php Version >=8.3
composer-runtime-api Version ^2.2
mailkube/mailkube-php Version ^1.1.0
illuminate/mail Version ^12.0 || ^13.0
illuminate/support Version ^12.0 || ^13.0
symfony/mailer Version ^7.0 || ^8.0
symfony/mime Version ^7.0 || ^8.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 mailkube/mailkube-laravel contains the following files

Loading the files please wait ...