Download the PHP package coder-manjeet/laravel-contact-form without Composer

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

A simple and customizable Laravel package to handle contact forms. This package allows you to easily manage contact form submissions, send emails, and store inquiries in the database.

Table of Contents

Installation

You can install the package via Composer. Run the following command in your terminal:

After installing the package, you need to publish the configuration file and run the migration to create the necessary database table.

Publish Configuration

To publish the configuration file, run the following Artisan command:

This will create a contact-form.php file in your config directory, where you can customize the package settings.

Run Migrations

Next, run the migration to create the contacts table in your database:

This will create the table where contact form submissions will be stored.

Add Service Provider (Optional for Laravel 5.5+)

If you are using Laravel 5.5 or above, the package will automatically register the service provider. For older versions, you need to manually add the service provider in your config/app.php file

Add Routes

Finally, ensure that the package routes are loaded by adding the following line to your routes/web.php file:

This will register the necessary routes for the contact form.

Configuration

After publishing the configuration file, you can customize the package settings by editing the config/contact-form.php file. This file contains various options such as email settings, form fields, and validation rules.

Example Configuration

Here is an example of how you might configure the config/contact-form.php file:

Customization

Views

The package includes default Blade views for the contact form and email templates. You can customize these views by publishing them to your application's resources/views/vendor/contact-form directory:

Mailables

The package includes mailables for sending emails when a contact form is submitted. You can customize these mailables by publishing them to your application's app/Mail directory:

Controller

If you need to customize the logic for handling form submissions, you can publish the ContactFormController to your application's app/Http/Controllers directory:

Migrations

The package includes a migration to create the contacts table. You can customize this migration by publishing it to your application's database/migrations directory:

Usage

To use the contact form in your application, simply include the form in one of your views:

This will render the contact form. When the form is submitted, the data will be stored in the contacts table, and an email will be sent to the configured recipient.

Customizing Form Fields

You can customize the form fields by editing the published views. The default form includes fields for name, email, subject, and message. You can add or remove fields as needed.

Validation

The package includes default validation rules for the form fields. You can customize these rules by editing the config/contact-form.php file.

Email Notifications

When a form is submitted, an email notification is sent to the configured recipient. You can customize the email template by editing the published views in resources/views/vendor/contact-form/mail.

Contributing

Contributions are welcome! Please feel free to submit a pull request or open an issue on GitHub.

License

This package is open-source software licensed under the MIT license.


All versions of laravel-contact-form 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 coder-manjeet/laravel-contact-form contains the following files

Loading the files please wait ....