PHPackages                             phuclh/dklog-form - 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. phuclh/dklog-form

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

phuclh/dklog-form
=================

Add ability to create and submit forms for DKLog.

1.0.2(4y ago)018MITPHPPHP ^8.0

Since Oct 10Pushed 4y ago1 watchersCompare

[ Source](https://github.com/phuclh/dklog-form)[ Packagist](https://packagist.org/packages/phuclh/dklog-form)[ RSS](/packages/phuclh-dklog-form/feed)WikiDiscussions main Synced 2w ago

READMEChangelog (3)Dependencies (1)Versions (4)Used By (0)

DKLog Form
==========

[](#dklog-form)

Add ability to create and submit forms for DKLog.

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

[](#installation)

```
composer require phuclh/dklog-form
```

Compile Form Assets
-------------------

[](#compile-form-assets)

```
php artisan form:compile
                        {form-id}
                        {--p|production : Minify all CSS output AND set NODE_ENV to "production" for other optimizations within Tailwind}
                        {--m|minify : Minify all CSS output files using cssnano}
                        {--w|watch : Watch all purge reference files for changes and re-build the CSS output}
                        {--c|config= : Tailwind config file path}
```

Blade Directives + Helpers
--------------------------

[](#blade-directives--helpers)

- Add Form stylesheet file to head tag of current page: `@formStyles('newsletter-form')`
- Create a link to Form Submission method: `route('plugins.forms.submit', 'newsletter-form')`
- Include a Form into a view: `{!! \Phuclh\DKLogForm\Form::include('newsletter-form') !!}`

Example of Form Class
---------------------

[](#example-of-form-class)

```
class NewsletterForm extends BaseForm
{
    public function rules(): array
    {
        return [
            'email' => ['required', 'email']
        ];
    }

    public function redirect(): ?string
    {
        return 'newsletter-subscribed';
    }

    public function view(): View|Factory
    {
        return view('forms.newsletter-form');
    }

    public function key(): string
    {
        return 'newsletter-form';
    }
}
```

Todo
----

[](#todo)

- \[\] Command to generate Form class.
- \[\] Publishing plugin config/assets.
- \[\] Add @includeForm directive.
- \[\] @tailwindcss/form.
- \[\] Add input error compoenent.

###  Health Score

25

—

LowBetter than 36% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity6

Limited adoption so far

Community7

Small or concentrated contributor base

Maturity58

Maturing project, gaining track record

 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

Every ~2 days

Total

3

Last Release

1714d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/4266b3a5a108beea54b059cba17d0f10e64ddb35e7e9a3bf49c6e6b8060d672d?d=identicon)[phuclh](/maintainers/phuclh)

---

Top Contributors

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

---

Tags

blogformdklog

### Embed Badge

![Health badge](/badges/phuclh-dklog-form/health.svg)

```
[![Health](https://phpackages.com/badges/phuclh-dklog-form/health.svg)](https://phpackages.com/packages/phuclh-dklog-form)
```

PHPackages © 2026

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