Download the PHP package adityar15/contactform without Composer
On this page you can find all versions of the php package adityar15/contactform. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Download adityar15/contactform
More information about adityar15/contactform
Files in adityar15/contactform
Package contactform
Short Description A contact form package using Livewire and Tailwind CSS
License MIT
Informations about the package contactform
This is a simple Laravel package for adding functional responsive contact form to your website.
Whenever user fills up the detail and clicks send message, you receive an email at the email address specified by you. It is built using Livewire and Tailwind CSS
Pre Requisites:
Installation
To install use the following command
Publising view and config files
Once install publish the config and view files.
Blade file changes
In your blade file include tailwind cdn
Now in the same blade file wherever you would like to have the contact form just include these two lines
Usage
If you do not wish to use tailwind and have your own custom styling, you can do it by editing the blade file.
You can edit the stylings of the form by editing the view file in the resources/views/vendor/contactform/contactform.blade.php You can edit the email template from the view file in the resources/views/vendor/contactform/emailtemplate.blade.php
Alternatively you can change the email template blade from the config file. The config file is named as contactform.php.
If you are using a custom email template then make a note to add following variables in the email blade file:
$name for yourname, $body for the message, $fromname for user's name who contacted you, $fromemail for user's email who contacted you