PHPackages                             codewithren/contactform - 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. [Utility &amp; Helpers](/categories/utility)
4. /
5. codewithren/contactform

ActivePackage[Utility &amp; Helpers](/categories/utility)

codewithren/contactform
=======================

Laravel contact form package

v1.0.0(11mo ago)19MITBlade

Since Jun 7Pushed 11mo agoCompare

[ Source](https://github.com/Renish437/ContactForm)[ Packagist](https://packagist.org/packages/codewithren/contactform)[ RSS](/packages/codewithren-contactform/feed)WikiDiscussions main Synced 1mo ago

READMEChangelog (1)Dependencies (1)Versions (2)Used By (0)

Laravel Livewire Contact Form Package
=====================================

[](#laravel-livewire-contact-form-package)

A simple, reusable contact form package for Laravel using Livewire v3. Perfect for quickly adding a styled contact form to your Laravel projects.

📬 Laravel Livewire Contact Form

🚀 Features

```
🧩 Plug-and-play Livewire component

🎨 Beautiful Tailwind CSS design

📧 Email sending support

🔒 Validation and CSRF protection

⚡ Uses Laravel component structure (no config needed)

```

📦 Installation

```
composer require codewithren/contactform:dev-main --with-all-dependencies

```

🧠 Requirements

```
PHP 8.2+

Laravel 10/11/12

Livewire 3+

Sweetalert2

```

Install Sweetalert through composer and run our installer.

```
composer require wavey/sweetalert && php artisan sweetalert:install

```

Include the Sweetalert2 javascript and then include our sweetalert 2 layout component.

```

@include('sweetalert::sweetalert')

```

Include the scripts in your layout

```

    window.addEventListener('alert', (event) => {
        var data = event.detail;
        console.log(data);
        Swal.fire({
            title: "Success",
            text: data.message,
            icon: "success",
            toast: true,
            position: "top-end",
            showCloseButton: true,
            showConfirmButton: false,
            timer: 3000,
            timerProgressBar: true,
            customClass: {
                popup: 'rounded-xl shadow-md text-sm bg-white',
                title: 'font-semibold text-gray-800',
                closeButton: 'text-gray-500 hover:text-red-500',
            },
            didOpen: (toast) => {
                toast.addEventListener('mouseenter', Swal.stopTimer)
                toast.addEventListener('mouseleave', Swal.resumeTimer)
            }
        });
    });
    window.addEventListener('alert-error', (event) => {
        var data = event.detail;
        console.log(data);
        Swal.fire({
            title: "Error",
            text: data.message,
            icon: "error",
            toast: true,
            position: "top-end",
            showCloseButton: true,
            showConfirmButton: false,
            timer: 3000,
            timerProgressBar: true,
            customClass: {
                popup: 'rounded-xl shadow-md text-sm bg-white',
                title: 'font-semibold text-gray-800',
                closeButton: 'text-gray-500 hover:text-red-500',
            },
            didOpen: (toast) => {
                toast.addEventListener('mouseenter', Swal.stopTimer)
                toast.addEventListener('mouseleave', Swal.resumeTimer)
            }
        });
    });

```

To enable email notifications, configure your Mailable in the package or override the email logic using events or extending the component. 🧾 Publish Config required

```
php artisan vendor:publish --tag=contactform-config

```

In .env file add ADMIN\_EMAIL and make sure to configure your stmp

```
ADMIN_EMAIL="admin@gmail.com"

```

🛠 Usage

Include the Livewire component in your Blade file:

```

```

🗃️ Migrations

The package automatically loads its own migrations.

To run them:

```
php artisan migrate
php artisan queue:work

```

That's it! 🎉 The form includes fields for name, email, and message. 📨 Email Support

To publish the resources views and livewire component file (optional).

```
php artisan vendor:publish --tag=contactform-views
php artisan vendor:publish --tag=contactform-livewire

```

The views will be published to:

resources/views/vendor/contactform/

✅ Validation Rules

The component validates the following:

```
name: required, string

email: required, valid email

message: required, min:10

```

You can customize these by publishing and editing the component. 🧪 Example Form Output

🙋‍♂️ Maintainer

Renish Siwakoti GitHub: @Renish437 📄 License

This package is open-sourced under the MIT license.

###  Health Score

26

—

LowBetter than 43% of packages

Maintenance51

Moderate activity, may be stable

Popularity6

Limited adoption so far

Community6

Small or concentrated contributor base

Maturity36

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.

###  Release Activity

Cadence

Unknown

Total

1

Last Release

345d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/68e178ece4eed9015733c6adccc8744c82344e45dfe44612f580bbe0421c486b?d=identicon)[Renish437](/maintainers/Renish437)

---

Top Contributors

[![Renish437](https://avatars.githubusercontent.com/u/159528633?v=4)](https://github.com/Renish437 "Renish437 (21 commits)")

### Embed Badge

![Health badge](/badges/codewithren-contactform/health.svg)

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

###  Alternatives

[livewire/flux

The official UI component library for Livewire.

9475.0M86](/packages/livewire-flux)[livewire/volt

An elegantly crafted functional API for Laravel Livewire.

4205.3M84](/packages/livewire-volt)[jantinnerezo/livewire-alert

This package provides a simple alert utilities for your livewire components.

8041.2M20](/packages/jantinnerezo-livewire-alert)[leandrocfe/filament-apex-charts

Apex Charts integration for Filament PHP.

4861.2M8](/packages/leandrocfe-filament-apex-charts)[spatie/laravel-livewire-wizard

Build wizards using Livewire

4061.0M4](/packages/spatie-laravel-livewire-wizard)[spatie/laravel-dashboard

A dashboard for Laravel

568156.1k94](/packages/spatie-laravel-dashboard)

PHPackages © 2026

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