Download the PHP package dymantic/secretary without Composer

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

Secretary - Handles contact form messages for Laravel projects

A simple way to handle contact forms and such. At the very least, it saves you from having to deal with handling that damn contact form for the millionth time. Simply pass the message to your Secretary and it will handle it accordingly, whether it is sending off an email, Slack message, etc. Database records are kept for each message. Only Email and Slack messages are included out of the box, but it is easy to add your own.

Installation and setup

Step 1: Require with composer

Laravel should auto-discover the ServiceProvider and Facade. If you don't use auto-discovery you can add them yourself to your app config.

Step 2: Publish the config file:

Step 3: Run the migration

Step 4: Set your config accordingly in config/secretary.php. Below is an example:

Step 5: Use it!

Usage

The general flow is to create a new message that implements Dymantic\Secretary\SecretaryMessage and then pas it to Secretary's receive method. This package contains Dymantic\Secretary\ContactMessage which should be fine for most cases.

The above is the most common use case, so this package includes a form request to simplify the process.

The above will handle basic validation for the name, email address and message body.

Additional message data

Aside from the name. email and message_body fields of a message, there is the message_notes field that holds additional data that can be included as part of the message. You may pass these fields as an associative array with the key 'message_notes' when creating a new message, or you can pass the fields to be plucked from the request if using the ContactForm form request object.

Note: You are responsible for validating the extra fields.

Database messages

Each message received by your Secretary will be saved to the database. The model is Dymantic\Secretary\Message and is just an eloquent model to be used as such, so you may delete, etc at will. The model does include an archive method to archive a message, and a reinstate method which is just the opposite of archive.

The secretary itself has some convenience methods for retrieving messages


All versions of secretary with dependencies

PHP Build Version
Package Version
No informations.
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 dymantic/secretary contains the following files

Loading the files please wait ....