Download the PHP package dainsys/mailing without Composer

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

Dainsys Mailing and Recipients

A full stack package to add mailing functionality to Laravel applications. This package allows you to associate recipients (contacts) to your mailable files.

Installation

  1. Require using composer: composer require dainsys/mailing.
  2. You can install all package assets by running php artisan mailing:install command.
    1. Another option is installing each asset individually:
      1. Publish the assets: @php artisan vendor:publish --force --tag=mailing:assets.
        1. optionally, you add the following line to your composer file, under the scripts and post-update-cmd key, to publish the assets every time you update your composer dependencies: @php artisan vendor:publish --tag=mailing:assets --force --ansi.
    2. If you may want to customize the migrations before next step, first publish them: @php artisan vendor:publish --force --tag=mailing:migrations.
    3. Run the migrations: php artisan migrate.
  3. Only super admin users are allowed to interact with the app. You can register them using any of the following options:
    1. Using the register method of your AuthServiceProvider: \Dainsys\Mailing\Mailing::registerSuperUsers(["[email protected]", "[email protected]"]);.
    2. In your .env file, MAILING_SUPER_USERS='[email protected],[email protected]'
      Configure your application
  4. Visit package main route: /dainsys/mailing/about.
  5. Optionally, you may want to publish and tweek the config file: @php artisan vendor:publish --force --tag=mailing:config.
  6. This package has its own views, designed with livewire and AdminLte. However, if you may want to change them then you can publish them with @php artisan vendor:publish --force --tag=mailing:views.
  7. Package views extend it's own layout app. However, you can change this by adding the key MAILING_LAYOUT_VIEW to your .env file. Or, change it directly in the mailing config file, under the layout key.

Usage

  1. The package is configured to auto discover your mailables within then app\Mail directory. However, if your mailables reside outside this folder or if you want to register another directory, add the line \Dainsys\Mailing\Mailing::bind(app_path('Mail')); to your AppServiceProvider. The package will try to load all your mailables for all directories added.
  2. Visit route /mailing/admin/recipients to manage your recipients contacts.
  3. Visit route /mailing/admin/mailables to manage your mailables and assign them to the recipients.
  4. In your mailables, you can access the array of recipients associated to that class with the code snippet \Dainsys\Mailing\Mailing::recipients($this);. For example, ->to(\Dainsys\Mailing\Mailing::recipients($this))

All versions of mailing with dependencies

PHP Build Version
Package Version
Requires illuminate/support Version ^8.0|9.0
laravel/ui Version ^3.0|4.0
livewire/livewire Version ^2.10
rappasoft/laravel-livewire-tables Version ^2.8
php-flasher/flasher-laravel Version ^1.7
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 dainsys/mailing contains the following files

Loading the files please wait ....