Download the PHP package grofgraf/laravel-contact-form without Composer

On this page you can find all versions of the php package grofgraf/laravel-contact-form. 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-contact-form

Laravel Contact Form

Contact form package for Laravel. Automatic creation of routes, controllers, email templates and views needed for contact form. Option of enabling captcha validation and sending mail attachments.

Requiremenets

Installation

Configuration

First add the service provider to the main configuration file located at config/app.php

Now you can navigate to /contact and you will see a default contact form.

Recaptcha

If you want to enable human verification, you have to register a site with Google reCAPTCHA and receive a pair of keys.

After that, you can add those keys to your .env file.

If only site key is defined, the client side validation is performed without server validation

If both keys are defined client and server side validation is performed.

If client key or both keys are undefined, no validation is performed and reCAPTCHA widget is not displayed by default.

Mail attachments

By default, all mime types are enabled for mail attachment. You can disable or enable mail attachment, or change allowed mime types, by editing the configuration file. To do so, you want to publish the configuration file by running

In the config directory contact.php file will be generated, where you can change attachment_mimetypes value.

To allow only certain mime types list them as array:

By leaving array empty 'attachment_mimetypes' => [], attachment will be disabled and input field won't be shown in email form.

To allow all mime types for attachment, set the value to 'attachment_mimetypes' => ['*'].

Usage

Overriding configurations

To override configuration file, run php artisan vendor:publish --tag=config command, that will create config/contact.php file. By editing this file you can choose between different configuration options, like enabling or disabling autoreply and human verification, adding addresses to mail carbon copy (cc), or choosing attachment mime types.

If you don't want to publish configuration file, you can override some options by assigning variables in .env file.

Overriding views

If you want to make changes to the views, you can publish them by running php artisan vendor:publish --tag=views in the root of your project.

By running this command the files that override the default views will be generated and stored to the /resources/views/contact directory. Now you can edit them as you wish and make then fit your needs. By default, available variables for your email templates are:

Overriding mailables

By running php artisan vendor:publish --tag=mail command, Contact.php and Autoreply,php files will be generated in app\Mail directory. In these file you can override mail logic.

Override controllers

By running php artisan vendor:publish --tag=controllers command, 'ContactController.php' will be generated in app\Mail directory. Here you can override controllers logic.

Overriding routes

By running php artisan vendor:publish --tag=routes command, contact.php file will be generated in routes directory. In this file, you can override used paths or assign them to different controllers.

Authors

License

The MIT License (MIT)

Copyright (c) 2017 GrofGraf

Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:

The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.

THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.


All versions of laravel-contact-form with dependencies

PHP Build Version
Package Version
Requires guzzlehttp/guzzle Version ^6.3
illuminate/support Version >=5.6.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 grofgraf/laravel-contact-form contains the following files

Loading the files please wait ....