PHPackages                             dmb/particles - 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. [Templating &amp; Views](/categories/templating)
4. /
5. dmb/particles

ActiveLibrary[Templating &amp; Views](/categories/templating)

dmb/particles
=============

A package that provides blade components, compatible with Laravel 6 and earlier, to compose forms in a more structured and easy way.

v0.1.0(3y ago)05MITBladePHP &gt;=7.2

Since Dec 7Pushed 3y ago1 watchersCompare

[ Source](https://github.com/davidemariabusi/particles)[ Packagist](https://packagist.org/packages/dmb/particles)[ Docs](https://github.com/davidemariabusi/particles)[ RSS](/packages/dmb-particles/feed)WikiDiscussions main Synced 1mo ago

READMEChangelog (1)DependenciesVersions (2)Used By (0)

[![](https://camo.githubusercontent.com/2bedf63f24cda7efab02da955dc11fb7ef8a060e2f26b73c33a7aac84529b8a3/68747470733a2f2f6769746875622d6164732e73332e65752d63656e7472616c2d312e616d617a6f6e6177732e636f6d2f737570706f72742d756b7261696e652e7376673f743d31)](https://supportukrainenow.org)

Particles - compose your form
=============================

[](#particles---compose-your-form)

[![Latest Version on Packagist](https://camo.githubusercontent.com/0d274ae0ddb400f0f303b483aa5849ef4bb96d4510a8f543c6ffaae9e475a96d/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f762f646d622f7061727469636c65732e7376673f7374796c653d666c61742d737175617265)](https://packagist.org/packages/dmb/particles)
--------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------

[](#)

A package that provides blade components, compatible with Laravel 6 and earlier, to compose forms in a more structured and easy way.
------------------------------------------------------------------------------------------------------------------------------------

[](#a-package-that-provides-blade-components-compatible-with-laravel-6-and-earlier-to-compose-forms-in-a-more-structured-and-easy-way)

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

[](#installation)

You can install the package via composer:

```
composer require dmb/particles
```

Usage
-----

[](#usage)

Using Particles is pretty straightforward. Each component renders the html markup and takes advantage of the convenience and modularity of the parameters which, in some cases, have default values that can be overridden.

All components are based on [bootstrap 4](https://getbootstrap.com/docs/4.6/getting-started/introduction/)

The components available are:

- checkbox
- datepicker - *based on [Datepicker for Bootstrap v1.9.0](https://github.com/uxsolutions/bootstrap-datepicker)*
- input
- label
- multiple - *based on [Selec2](https://select2.github.io)*
- radio
- select
- textarea - *ckeditor option based on [CkEditor](https://ckeditor.com)*
- tooltip - *dependecy [FancyBox](http://fancyapps.com/fancybox/)*

Supported parameters are

- label: string
- tooltip: array *&lt;name,content&gt;*
- id: int
- type: string *default: text|radio|checkbox*
- class: string *default: form-control|form-control date-picker|form-control multiple-select*
- name: string
- value: string
- style: string *inline style default: width: 100%;|null*
- readonly: ?bool *default null*
- required: ?bool *default null - if true, an asterisk is placed next to the label*
- disabled: ?bool *default null*
- datas: array *&lt;\[key,value\]&gt; dynamically render data-attributes*

Specific parameters for the textarea component are

- ckeditor: ?bool *default null - if true, activate the ckeditor plugin*
- rows: int *default 3*

Specific parameters for the select component are

- disableText: string *default \_\_('Select an option')*

Specific parameters for the multiple component are

- multiple: ?bool *default mutiple="multiple"*
- dataPlaceholder: ?string *default \_\_('Select an option')*
- dataAllowClear: ?bool *default true*
- dataTags: ?bool

Specific parameters for the radio and checkbox component are

- styleText: string *default margin-left:5px*

*The select, multiple and the textarea components can use the slot to place the relative code between the opening and closing of the component itself*

Some examples
-------------

[](#some-examples)

```
@input([
    'label' => 'Label',
    'name' => 'name',
    'tooltip' => [
        'name' => 'name',
        'content' => 'Content text'
    ],
    'value' => 'value',
    'required' => true
])
@endinput
```

```
@select([
    'label' => 'Age',
    'name' => 'age',
    'tooltip' => [
        'name' => 'age',
        'content' => 'Lorem ipsum age.'
    ],
    'required' => true
])
    @foreach ( [30,31,32,33,34] as $age )

            {{ $age }}

    @endforeach
@endselect
```

```
@textarea([
    'label' => 'Description',
    'name' => 'description',
    'tooltip' => [
        'name' => 'description',
        'content' => 'Lorem ispum description'
    ],
    'rows' => 10,
    'required' => true,
    'readonly' => true
])
    Lorem ipsum dolor sit amet consectetur adipisicing elit. Explicabo sed necessitatibus dignissimos sint porro fugiat natus, eligendi obcaecati nulla itaque expedita commodi tenetur neque quos, sequi pariatur quidem provident reiciendis.
@endtextarea
```

```
@multiple([
    'label' => 'Roles',
    'name' => 'roles',
    'dataTags' => true,
    'required' => true
])
    @foreach ( ['Superadmin','Admin','User'] as $role )

            {{ $role }}

    @endforeach
@endmultiple
```

***The complete documentation with all the parameters, the functionalities and the will be published soon.***

Changelog
---------

[](#changelog)

Please see [CHANGELOG](CHANGELOG.md) for more information on what has changed recently.

Credits
-------

[](#credits)

- [Davide Maria Busi](https://github.com/davidemariabusi)

License
-------

[](#license)

The MIT License (MIT). Please see [License File](LICENSE.md) for more information.

###  Health Score

17

—

LowBetter than 6% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity4

Limited adoption so far

Community7

Small or concentrated contributor base

Maturity31

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

1257d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/49a3b093dfa95cd76a8b681f0aac2a7125d0c01403f8817de10ef56d209c3066?d=identicon)[davidemariabusi](/maintainers/davidemariabusi)

---

Top Contributors

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

---

Tags

dmbparticles

### Embed Badge

![Health badge](/badges/dmb-particles/health.svg)

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

###  Alternatives

[mustache/mustache

A Mustache implementation in PHP.

3.3k44.6M291](/packages/mustache-mustache)[roots/acorn

Framework for Roots WordPress projects built with Laravel components.

9682.1M97](/packages/roots-acorn)[whitecube/nova-flexible-content

Flexible Content &amp; Repeater Fields for Laravel Nova.

8053.0M25](/packages/whitecube-nova-flexible-content)[mopa/bootstrap-bundle

Easy integration of twitters bootstrap into symfony2

7042.9M33](/packages/mopa-bootstrap-bundle)[limenius/react-bundle

Client and Server-side react rendering in a Symfony Bundle

3871.2M](/packages/limenius-react-bundle)[nicmart/string-template

StringTemplate is a very simple string template engine for php. I've written it to have a thing like sprintf, but with named and nested substutions.

2101.7M30](/packages/nicmart-string-template)

PHPackages © 2026

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