Download the PHP package skywebdev/laravel-db-mail without Composer

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

DbMail

Overview

A Laravel package that allow your customers to edit email templates (html and markdown).

Installation

Requirements

The package has been developed and tested to work with the following minimum requirements:

Install the Package

You can install the package via Composer:

Migrate the Database

This package contains migration that add table: . To run these migration, simply run the following command:

Import existing blade templates

After migration you should run following seeder that will import email templates to database.

You should run this seeder whenever new email template is added.

Using

After installation your Mailable class will read body and subject from table . You can allow customers to change them on front using rich text and markdown editors.

Routes

Package contains CRUD routes for maintaining tables. Nothing special, I would just emphasize that delete is actually revert to original. Delete will revert content and subject to be same as defined in blade file. Update and delete will clear view cache.

Verb URI Action Name
GET /blade-templates index blade-templates.index
POST /blade-templates create blade-templates.create
GET /blade-templates/{bladeTemplate} show blade-templates.show
PUT /blade-templates/{bladeTemplate} update blade-templates.update
DELETE /blade-templates/{bladeTemplate} destroy blade-templates.destroy

Example

Create markdown mail

This command will create

and view file in markdown format

In add route for displaying mail.

Call in browser and you will see something like this

Run seeder for adding blade templates to db

This seeder will add newly added template to table.

Next, edit body column of newly added template in table. For example append DB in button label.

Clear view cache

Refresh in browser and you will see something like this

Template is rendered from db.


All versions of laravel-db-mail with dependencies

PHP Build Version
Package Version
Requires php Version ^8.0
laravel/framework Version ^9.28|^10.0|^11.0|^12.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 skywebdev/laravel-db-mail contains the following files

Loading the files please wait ....