PHPackages                             lyrasoft/contact - 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. lyrasoft/contact

ActiveWindwalker-package

lyrasoft/contact
================

LYRASOFT contact package

1.2.4(1mo ago)011.2k↓36.1%1[7 issues](https://github.com/lyrasoft/luna-contact/issues)1MITPHPPHP &gt;=8.4.6

Since Jan 9Pushed 1mo ago1 watchersCompare

[ Source](https://github.com/lyrasoft/luna-contact)[ Packagist](https://packagist.org/packages/lyrasoft/contact)[ RSS](/packages/lyrasoft-contact/feed)WikiDiscussions master Synced 1mo ago

READMEChangelogDependencies (3)Versions (15)Used By (1)

LYRASOFT Contact Package
========================

[](#lyrasoft-contact-package)

[![contact](https://user-images.githubusercontent.com/1639206/148685457-379396e3-6da4-4c73-9c75-130e4b128004.jpg)](https://user-images.githubusercontent.com/1639206/148685457-379396e3-6da4-4c73-9c75-130e4b128004.jpg)

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

[](#installation)

Install from composer

```
composer require lyrasoft/contact
```

Then copy files to project

```
php windwalker pkg:install lyrasoft/contact -t routes -t migrations -t seeders
```

Seeders

- Add `contact-seeder.php` to `resources/seeders/main.php`

### Languages

[](#languages)

Add this line to admin &amp; front middleware:

```
$this->lang->loadAllFromVendor(\Lyrasoft\Contact\ContactPackage::class, 'ini');
```

If you want to copy language files, Run this command (Optional):

```
php windwalker pkg:install lyrasoft/contact -t lang
```

Register Admin Menu
-------------------

[](#register-admin-menu)

Edit `resources/menu/admin/sidemenu.menu.php`

```
// Contact
$menu->link('聯絡單')
    ->to($nav->to('contact_list', ['type' => 'main']))
    ->icon('fal fa-phone-volume');
```

Support Multiple Types
----------------------

[](#support-multiple-types)

Use Route to separate types:

```
/admin/contact/list/{type}

```

Use `type` param in Navigator.

```
$nav->to('contact_list', ['type' => '{type}']);
```

Frontend
--------

[](#frontend)

One MVC per type. If you want another contact form with type: `foo`, just generate a `FooContact` MVC

```
php windwalker g controller Admin/FooContact
php windwalker g view Admin/FooContact
php windwalker g form Admin/FooContact/Form/EditForm
```

And remember set type when saving in controller:

```
    $controller->prepareSave(
        function (PrepareSaveEvent $event) {
            $data = &$event->data;

            $data['type'] = 'foo';
        }
    );
```

### RateLimit

[](#ratelimit)

Front controller has rate limit function to prevent spam. you can configure it in `etc/packages/contact.config.php`

```
    'rate_limit' => [
        // Default rate limit config
        '_default' => [
            'policy' => 'fixed_window',
            'limit' => 10,
            'interval' => '1day',
        ],

        // You can add different rate limit for different type
        'main' => [
            'policy' => 'fixed_window',
            'limit' => 10,
            'interval' => '1day',
        ],
    ],
```

If you create a new controller to save contact form, you can use rate limiter in controller:

```
    public function save(
        AppContext $app,
        ContactService $contactService,
        // ...
    ): mixed {
        // Set your form type
        $type = 'inquiry';

        // Check or throw
        $contactService->rateLimitOrThrow($type, $app->getAppRequest()->getClientIP());

        // Or throw yourself
        $limit = $contactService->checkRateLimit($type, $app->getAppRequest()->getClientIP());

        if (!$limit->isAccepted()) {
            throw new \RuntimeException('Rate limit exceeded', 429);
        }

    // ...
```

###  Health Score

54

—

FairBetter than 97% of packages

Maintenance89

Actively maintained with recent releases

Popularity25

Limited adoption so far

Community14

Small or concentrated contributor base

Maturity74

Established project with proven stability

 Bus Factor1

Top contributor holds 94% 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

Every ~109 days

Recently: every ~1 days

Total

13

Last Release

55d ago

PHP version history (2 changes)1.1.4PHP &gt;=8.2

1.2.0PHP &gt;=8.4.6

### Community

Maintainers

![](https://avatars.githubusercontent.com/u/1639206?v=4)[Simon Asika](/maintainers/asika32764)[@asika32764](https://github.com/asika32764)

---

Top Contributors

[![asika32764](https://avatars.githubusercontent.com/u/1639206?v=4)](https://github.com/asika32764 "asika32764 (47 commits)")[![chokeslam](https://avatars.githubusercontent.com/u/34531644?v=4)](https://github.com/chokeslam "chokeslam (3 commits)")

---

Tags

luna-package

### Embed Badge

![Health badge](/badges/lyrasoft-contact/health.svg)

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

###  Alternatives

[shopware/platform

The Shopware e-commerce core

3.3k1.5M3](/packages/shopware-platform)[kimai/kimai

Kimai - Time Tracking

4.6k7.4k1](/packages/kimai-kimai)[contao/core-bundle

Contao Open Source CMS

1231.6M2.4k](/packages/contao-core-bundle)[shopware/core

Shopware platform is the core for all Shopware ecommerce products.

595.2M386](/packages/shopware-core)[ec-cube/ec-cube

EC-CUBE EC open platform.

78527.0k1](/packages/ec-cube-ec-cube)[open-dxp/opendxp

Content &amp; Product Management Framework (CMS/PIM)

7310.3k29](/packages/open-dxp-opendxp)

PHPackages © 2026

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