PHPackages                             sinevia/laravel-helpers - 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. sinevia/laravel-helpers

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

sinevia/laravel-helpers
=======================

Helpers for Laravel

v0.0.5(3y ago)162proprietaryPHP

Since Aug 15Pushed 3y ago1 watchersCompare

[ Source](https://github.com/Sinevia/laravel-helpers)[ Packagist](https://packagist.org/packages/sinevia/laravel-helpers)[ Docs](https://github.com/Sinevia/laravel-helper)[ RSS](/packages/sinevia-laravel-helpers/feed)WikiDiscussions master Synced 3d ago

READMEChangelog (5)Dependencies (1)Versions (6)Used By (0)

Laravel Helpers
===============

[](#laravel-helpers)

Helpers for laravel

Link
----

[](#link)

UI (User Interface) Helper
--------------------------

[](#ui-user-interface-helper)

1. Define the form fields

```
private function getFields($options = []) {
  $model = $options['model'] ?? null;
  $fields = [
      [
          'type' => 'html',
          'html' => '.btn-success { width:100%; padding:10px;}',
      ],
      [
          'type' => 'html',
          'html' => 'First Heading',
      ],
      [
          'type' => 'text',
          'name' => 'TextField',
          'label' => 'Text Field',
          'width' => 12,
          'rule' => 'required',
          'value' => is_null($model) ? null : '' . $model->TextField,
      ],
      [
          'type' => 'textarea',
          'name' => 'TextArea',
          'label' => 'Text Area',
          'width' => 12,
          'rule' => 'required',
          'value' => is_null($model) ? null : '' . $model->TextArea,
      ],
      [
          'type' => 'hidden',
          'name' => 'HiddenField',
          'label' => 'Hidden Field',
          'width' => 12,
          'rule' => 'required',
          'value' => is_null($model) ? null : '' . $model->HiddenField,
      ],
      [
          'type' => 'select',
          'name' => 'SelectField',
          'label' => 'Select Field',
          'options' => [''=>'','1'=>'1','2'=>'2',],
          'width' => 12,
          'rule' => 'required',
          'value' => is_null($model) ? null : '' . $model->SelectField,
      ],
  ];
  return $fields;
}
```

2. Build the form

```
$form = \Sinevia\LaravelHelpers\Ui::formBuild($this->getFields(), [
      'button.apply.show' => 'yes',
      'button.cancel.show' => 'yes',
      'button.cancel.link' => '/back',
      'button.cancel.icon' => '',
      'button.apply.icon' => '',
      'button.save.icon' => '',
  ])
  ->toHtml();
```

3. Validate and save model

```
$validOrErrorMessage = \Sinevia\LaravelHelpers\Ui::formValidate($this->formFields());
if ($validOrErrorMessage !== true) {
    return back()->withErrors($validOrErrorMessage)->withInput(request()->all());
}

$formValues = \App\Helpers\Ui::formFieldValues($this->getFields());
\App\Models\YourModel::unguard();
$yourModel = \App\Models\YourModel::create($formValues);

if(is_null($yourModel)){
    return back()->withErrors('Model creation failed')->withInput(request()->all());
}

if (request('form_action') == 'apply') {
    return redirect('/update?ModelId=' . $yourModel->Id]))
                    ->withSuccess('Model successfully created');
}

return redirect('/list')->withSuccess('Model successfully created');
```

###  Health Score

26

—

LowBetter than 43% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity10

Limited adoption so far

Community7

Small or concentrated contributor base

Maturity56

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 ~395 days

Total

5

Last Release

1250d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/d935723d26f92caa8fb66c4a44cf1995c488734b54e36f5b616ac290a109ab59?d=identicon)[sinevia](/maintainers/sinevia)

---

Top Contributors

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

---

Tags

laravelhelperssinevia

### Embed Badge

![Health badge](/badges/sinevia-laravel-helpers/health.svg)

```
[![Health](https://phpackages.com/badges/sinevia-laravel-helpers/health.svg)](https://phpackages.com/packages/sinevia-laravel-helpers)
```

###  Alternatives

[transprime-research/piper

PHP Pipe method execution with values from chained method executions

174.6k2](/packages/transprime-research-piper)

PHPackages © 2026

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