PHPackages                             dhamkith/contactus - PHPackages - PHPackages  [Skip to content](#main-content)[PHPackages](/)[Directory](/)[Categories](/categories)[Trending](/trending)[Leaderboard](/leaderboard)[Changelog](/changelog)[Analyze](/analyze)[Collections](/collections)[Log in](/login)[Sign up](/register)

1. [Directory](/)
2. /
3. dhamkith/contactus

ActiveLibrary

dhamkith/contactus
==================

contact us feture for laravel framwork

01CSS

Since Aug 3Pushed 5y ago1 watchersCompare

[ Source](https://github.com/dhamkith/contactus)[ Packagist](https://packagist.org/packages/dhamkith/contactus)[ RSS](/packages/dhamkith-contactus/feed)WikiDiscussions master Synced 5d ago

READMEChangelogDependenciesVersions (1)Used By (0)

Laravel contactus package
=========================

[](#laravel-contactus-package)

contactus

Installation
------------

[](#installation)

Installation is straightforward, setup is similar to every other Laravel Package.

#### 1. Install via Composer

[](#1-install-via-composer)

Begin by pulling in the package through Composer:

```
composer require dhamkith/contactus

```

#### 2. Define the Service Provider and alias

[](#2-define-the-service-provider-and-alias)

Next we need to pull in the alias and service providers.

**Note:** This package supports the new *auto-discovery* features of Laravel 5.5, so if you are working on a Laravel 5.5 project, then your install is complete, you can skip to step 3.

If you are using Laravel 5.0 - 5.4 then you need to add a provider and alias. Inside of your `config/app.php` define a new service provider

```
'providers' => [
	//  other providers

	Dhamkith\Contactus\ContactUsServiceProvider::class,
];

```

Then we want to define an alias in the same `config/app.php` file.

```
'aliases' => [
	// other aliases

	'Contact' => Dhamkith\Contactus\Facades\DhamkithContact::class,
];

```

#### 3. Publish Config File and Other Resources (OPTIONAL)

[](#3-publish-config-file-and-other-resources-optional)

The config file allows you to override default settings of this package to meet your specific needs. It is optional and allows you to set a

- Set contactus email - `"email" => "site email address"` (OPTIONAL),
- URL path - `"path" => "dhamkith"`,
- middleware for ContactUsController - `"middleware_for_view" => "auth"`,
- `"auth"` is defalt middleware You can override this value if,
- your application suported Multiple Authentication you can change to `"auth:admin"`

To generate a config file and other resources type this command into your terminal:

```
php artisan vendor:publish --tag=contactus

```

This generates

- a config file at `config/dhamkith_contactus.php`.
- a view file at `resources/views/vendor/contactus/contact.blade.php`.
- a view file at `resources/views/vendor/contactus/index.blade.php`.
- a view file at `resources/views/vendor/contactus/show.blade.php`.
- a style file at `public/css/dhamkith-contactus.css`.
- a javascript file at `public/js/dhamkith-contactus.js`.

#### 4. Migrate (OPTIONAL)

[](#4-migrate-optional)

php artisan migrate for create contact\_us table

```
php artisan migrate

```

Usage
-----

[](#usage)

This package is easy to use. It provides a handful of helpful View.

- `contact.blade.php` view for display contact us from,
- `index.blade.php` view for display all contact messages,
- `show.blade.php` view for display message,

#### 1. add style and javascript file

[](#1-add-style-and-javascript-file)

adding dhamkith-contactus.css stylesheet tag to 'app' or other layout, in head section

```

```

adding dhamkith-contactus.js script tag in body section

```

```

#### 2. extends views

[](#2-extends-views)

extends views `contact, index, show`

**Example:** view contact `resources/views/vendor/contactus/contact.blade.php`

```
@extends('layouts.app')

@section('content')

            {{ __('Want to contact Us?') }}
            Here are a few ways to get in touch with us.
            @include('contactus::notify.message')

                @csrf

                    Name*

                    @if ($errors->has('name'))
                        {{ $errors->first('name') }}
                    @endif

                    E-Mail Address*

                    @if ($errors->has('email'))
                        {{ $errors->first('email') }}
                    @endif

                    Subject*

                    @if ($errors->has('subject'))
                        {{ $errors->first('subject') }}
                    @endif

                    Message*
                    {{ old('name')}}
                    @if ($errors->has('message'))
                        {{ $errors->first('message') }}
                    @endif

                 send

@endsection
```

#### 3. use package router

[](#3-use-package-router)

package router names are

###### for display all store contact messages `contactus.lists`

[](#for-display-all-store-contact-messages-contactuslists)

```
{{ route('contactus.lists') }}
```

###### for get contact us from `contactus.create`

[](#for-get-contact-us-from-contactuscreate)

```
{{ route('contactus.create') }}
```

###### for display single message `contactus.show`

[](#for-display-single-message-contactusshow)

```
{{ route('contactus.show') }}
```

Contribute
----------

[](#contribute)

I encourage you to contribute to this package to improve it and make it better. Even if you don't feel comfortable with coding or submitting a pull-request (PR), you can still support it by submitting issues with bugs or requesting new features, or simply helping discuss existing issues to give us your opinion and shape the progress of this package.

Contact
-------

[](#contact)

I would love to hear from you. I run the dhamkith channel on [YouTube](https://www.youtube.com/user/dhamkith/videos), please subscribe and check out the videos.

You can also email me at  for any other requests.

###  Health Score

16

—

LowBetter than 5% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity1

Limited adoption so far

Community7

Small or concentrated contributor base

Maturity32

Early-stage or recently created project

 Bus Factor1

Top contributor holds 100% of commits — single point of failure

How is this calculated?**Maintenance (25%)** — Last commit recency, latest release date, and issue-to-star ratio. Uses a 2-year decay window.

**Popularity (30%)** — Total and monthly downloads, GitHub stars, and forks. Logarithmic scaling prevents top-heavy scores.

**Community (15%)** — Contributors, dependents, forks, watchers, and maintainers. Measures real ecosystem engagement.

**Maturity (30%)** — Project age, version count, PHP version support, and release stability.

### Community

Maintainers

![](https://www.gravatar.com/avatar/9f2c7e995979bfda110f69b2b8c69df0b451b493f16020a611cc4f31d18c384a?d=identicon)[ishan](/maintainers/ishan)

---

Top Contributors

[![dhamkith](https://avatars.githubusercontent.com/u/64707520?v=4)](https://github.com/dhamkith "dhamkith (1 commits)")

### Embed Badge

![Health badge](/badges/dhamkith-contactus/health.svg)

```
[![Health](https://phpackages.com/badges/dhamkith-contactus/health.svg)](https://phpackages.com/packages/dhamkith-contactus)
```

PHPackages © 2026

[Directory](/)[Categories](/categories)[Trending](/trending)[Changelog](/changelog)[Analyze](/analyze)
