Download the PHP package j87nl/laravel-vue-mailbox without Composer

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

J87 Laravel Vue Mailbox

Vue 3 / Inertia UI for j87nl/laravel-mailbox: folder list, message list (TableBuilder), message view in a sandboxed iframe, compose/reply/forward (FormBuilder) and mailbox settings with access management and the trusted senders of the spam filter. The tables use compact cells and rows that open with a click or with Tab and Enter, see Tables.

Requirements

Installation

Name the version and pass -W: with older tranquil-tools/* packages locked, a plain composer require silently installs an old 0.1.x release instead of updating them. See Installation.

mailbox:install publishes the core and Vue config and the migrations, and adds the @mailbox Vite alias (./vendor/j87nl/laravel-vue-mailbox/resources/js, in an object or array form of resolve.alias) and the @mailbox/* tsconfig path. Running it again changes nothing that is already there.

Pages

The Vue pages stay in the package, like those of j87nl/laravel-vue-cms. The controllers render them by name, and every default name starts with mailbox/ (mailbox/Index, mailbox/Show, mailbox/Compose, mailbox/Contacts/Index, mailbox/Contacts/Edit, mailbox/Settings/Index, mailbox/Settings/Edit); the rest of the name is the path below the package's resources/js/pages. The package registers no Inertia resolver, so let your app's resolver load those names from @mailbox/pages:

The pages set no layout: wrap them in yours in the resolver (page.layout ??= Layout). An app on resolvePageComponent() with ./Pages keeps it for its own pages and only adds the mailbox/ branch, see Installation. Provide a confirmation dialog under the key confirm, or deleting a contact, template or mailbox (and a message, when the mailbox asks for confirmation) does nothing. An app on the @inertiajs/vite plugin without a resolve of its own adds this one (the plugin then leaves it alone), and an app with SSR uses the same resolver in resources/js/ssr.ts.

To replace one page, point its key in config/vue-mailbox.php (vue-mailbox.pages.*) at a page of your own. To copy every page into your app instead, run php artisan mailbox:install --pages: it copies them to resources/js/pages/Mailbox and points the default names in config/vue-mailbox.php at the copies (Mailbox/Index, ...). See Upgrading.

The compose editor defaults to HugeRTE:

Loading it lazily keeps about 1 MB out of the main bundle. The plugins are imported after the editor because they need globalThis.hugerte.

The pages use plain Tailwind utility classes and no host UI kit. Let Tailwind scan the package so those classes are generated, e.g. in Tailwind 4:

Then follow the core package README for admins, the sync schedule, the queue worker and the configuration keys (MAILBOX_DISPLAY_TIMEZONE, MAILBOX_CONNECTION_TIMEOUT, …).

Pages and props

The default pages read their texts from the Inertia prop vue_mailbox_translations (the core mailbox::mailbox file, nl and en) through useMailboxTranslations() from @mailbox/translations. The empty state texts come from this package's own vue-mailbox::mailbox file (nl and en) and arrive as props. Deletes ask for confirmation (messages only when the mailbox has "Bevestigen bij verwijderen" on) through the function the host provides under the Vue injection key confirm (app.provide('confirm', (message) => Promise<boolean>)), never window.confirm; without it they do nothing. Delete in the message view of a conversation with more than one message asks "Alleen dit bericht" or "Hele conversatie" through the function under the key mailboxChoice (app.provide('mailboxChoice', (options) => Promise<string | null>), see Choices); without it Delete removes only the open message. The prop is shared only on the mailbox routes; a host page outside them that needs it adds the J87NL\VueMailbox\Http\Middleware\ShareMailboxTranslations middleware.

Page (vue-mailbox.pages.*) Props
mailbox/Index composeUrl, contactsUrl, folder (id, label, name, role, syncs) or null, folderForm, folders, mailbox, mailboxes, olderMessagesUrl, refreshUrl, settingsUrl, syncNotice, syncing, table
mailbox/Show actionsUrl, attachments, backUrl, composeUrl, contactUrl, conversation, folders, hasRemoteImages, history, html, imageOrigin, mailbox, message, remoteImages, spam, spamSuggested
mailbox/Compose backUrl, folders, form, mailbox, mode
mailbox/Contacts/Index backUrl, createUrl, folders, mailbox, table
mailbox/Contacts/Edit backUrl, destroyUrl, form, mailbox, title
mailbox/Empty hint, title
mailbox/Settings/Index, mailbox/Settings/Edit unchanged

Reply, reply all and forward put the original HTML in the compose body (Gmail-style header or "On … wrote:" blockquote). Its inline images use signed inline URLs with data-mailbox-cid; keep that attribute in your editor (the default HugeRTE options do). Inline SVG images are served with a locked-down CSP. After sending a reply or forward the app returns to the folder of the original message.

The message table polls every vue-mailbox.poll_seconds (30); pass :only="['table', 'folders']" to TableBuilder so a tick reloads only the table and the folder counts. Unread rows get font-semibold from the server, and a paperclip follows the subject of a message with attachments. A message the core spam filter marked gets a "Mogelijk spam" or "Door filter naar spam" badge, in the list and on the message page, and a suggested one offers "Geen spam". The "Voorstellen" filter lists the suggested messages. The Refresh button queues a sync of the folder (mailbox.folders.refresh). When the server holds more mail in the folder than is stored (for example from before the core's sync.initial_days), an "Oudere berichten ophalen" button queues the core FetchOlderMessagesJob (mailbox.folders.older) and reloads the list a few seconds later. With the core conversation_view setting of a mailbox on, the list shows one row per conversation and the message view lists the conversation.

The message view has "Vorige" and "Volgende" buttons and the Gmail keys J (next) and K (previous), which step through the list the message was opened from with its search, filters and sort. With "Daarna volgende openen" on (stored per browser), Archive opens the next message instead of returning to the list. See docs/pages/messages.md#previous-and-next.

The folder page shows only the folders of the open mailbox, with a compact mailbox switcher when the user has several (vue-mailbox.mailbox_switcher, default true). To list every mailbox in the host menu, use J87NL\VueMailbox\Support\MailboxNavigation::for($user) or the ShareMailboxNavigation middleware, which shares it as the mailboxNavigation prop (id, name, email, unseen, url, active_path); see docs/navigation.md.

Folders the core does not sync (by default Gmail's Important and Starred; All Mail syncs since core 0.12) have syncs: false: the folder list mutes them with a "Niet gesynct" badge and the folder page shows syncNotice above the list.

Browser notifications: the folder page and the message view have a "Meldingen aanzetten voor deze mailbox" toggle, so notifications are switched per mailbox (stored per browser). Once the user turns it on (the browser asks for permission then, never on load), the open tab polls mailbox.notifications every poll_seconds and shows a notification per new unread inbox message of the mailboxes that have notifications on and the user may read (one "N nieuwe berichten" notification above three). Clicking it opens the message. No service worker: it only works while a tab of the app is open. See docs/notifications.md.

The message view fills the viewport and has a Full screen button that opens the message, with its actions, in a package-owned dialog (Esc or Close closes it). It needs no dialog component of the host; the host's confirm dialog must sit above z-40.

Routes

All routes live under config('vue-mailbox.routes.prefix') (default /mailbox) with the web and auth middleware. Menu links: route('mailbox.index') (show it with @canany(['accessAnyMailbox', 'manageAnyMailbox']); without an open mailbox it redirects users who pass manageAnyMailbox to the settings and shows others the mailbox/Empty page) and route('mailbox.settings.index') (show it with @can('manageAnyMailbox')). Every route except the signed inline image route is gated with the core abilities (accessAnyMailbox, accessMailbox, workInMailbox, manageMailbox, manageMailboxes) or manageAnyMailbox, which this package defines unless the app already has it: manageMailboxes, or manageMailbox on at least one mailbox. The pages hide controls the user cannot use.

Route Ability
mailbox.notifications GET notifications?after= (new unread inbox messages, JSON, throttled) accessAnyMailbox, then accessMailbox per message
mailbox.contacts.index GET {mailbox}/contacts accessMailbox
mailbox.contacts.create, .store, .edit, .update, .destroy workInMailbox
mailbox.messages.contact POST {mailbox}/messages/{message}/contact (add the sender to the address book) workInMailbox
mailbox.addresses GET {mailbox}/addresses?q= (recipient suggestions, JSON) workInMailbox

Development

The core package comes from Packagist (j87nl/laravel-mailbox). To work against a local checkout of the core, add a path repository temporarily and do not commit it:


All versions of laravel-vue-mailbox with dependencies

PHP Build Version
Package Version
Requires php Version ^8.4
inertiajs/inertia-laravel Version ^2.0|^3.0
j87nl/laravel-mailbox Version ^0.16
spatie/laravel-package-tools Version ^1.16
spatie/laravel-query-builder Version ^6.0|^7.0
tranquil-tools/laravel-vue-form-builder Version ^1.13
tranquil-tools/laravel-vue-table-builder Version ^1.20
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 j87nl/laravel-vue-mailbox contains the following files

Loading the files please wait ...