Download the PHP package jimderonde/wp-mailer without Composer

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

Wordpress Mailer

This is a Wordpress module developed by Jim de Ronde (Gewest13).

Prerequisites

Installation

Do this first.

  1. Clone the repository in your server/ directory.
  2. Do a composer install inside the folder.
  3. Require or include the server/wp-mailer/autoload.php into your functions.php file.
  4. Please note that a hook within Wordpress is including a javascript file into the footer. Import it as you like whenever you desire a bundle over multiple javascript files.

    When this is done a first form can be added.

  5. Create a .env file in the root of your template folder with the credentials as presented in the example file .example.env.
  6. Create a new form and add any field to your liking.
  7. Add the /sample-component/ to your list of components/. Please note that the form will require some predefined settings like an action, data-wp-mailer and method.
  8. At last, please include wp_footer() before the ending of your </body> tag. Please not that the entire function will be cleared and will only return the javascript file that will take care of the asynchronous requests.
  9. If desired, add the following rule to your .css file in order to hide the badge: .grecaptcha-badge {display: none}

Functions

Always check if $mailer is a valid instance of the Mailer class.

  1. Use $mailer->getForm($id) to get all form fields.
  2. Then, use a foreach loop to loop through all fields. foreach ($mailer->getForm($id) as $name => $field).
  3. Inside the loop the $field->field variable will contain the entire html element so use $mailer->parseField($field->field, "classes") to parse it.
  4. Label can be accessed through $field->label.
  5. Name can be accessed through $field->name.
  6. Field type can be accessed through $field->type.

All versions of wp-mailer with dependencies

PHP Build Version
Package Version
Requires vlucas/phpdotenv Version ^4.1
phpmailer/phpmailer Version ^6.1
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 jimderonde/wp-mailer contains the following files

Loading the files please wait ....