PHPackages                             processton-io/processton-elements - 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. processton-io/processton-elements

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

processton-io/processton-elements
=================================

This package will generate common elements

1.0.1(1y ago)0361MITPHPPHP ^8.1

Since May 17Pushed 1y agoCompare

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

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

Generate Array Structure for Processton Elements used in processton client
==========================================================================

[](#generate-array-structure-for-processton-elements-used-in-processton-client)

[![Latest Version on Packagist](https://camo.githubusercontent.com/05ae2c52104ff6f2a80bb75d360bafc4219ec54f3afabe8e75c0b1538fcb580a/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f762f70726f63657373746f6e2d696f2f70726f63657373746f6e2d656c656d656e74732e7376673f7374796c653d666c61742d737175617265)](https://packagist.org/packages/processton-io/processton-elements)[![Total Downloads](https://camo.githubusercontent.com/95e4e093c1bf1fe937d2f209cfde6e1bfe58e249366dc3398bb8ed000d59b3ee/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f64742f70726f63657373746f6e2d696f2f70726f63657373746f6e2d656c656d656e74732e7376673f7374796c653d666c61742d737175617265)](https://packagist.org/packages/processton-io/processton-elements)[![GitHub Actions](https://github.com/processton-io/processton-elements/actions/workflows/main.yml/badge.svg)](https://github.com/processton-io/processton-elements/actions/workflows/main.yml/badge.svg)

This is where your description should go. Try and limit it to a paragraph or two, and maybe throw in a mention of what PSRs you support to avoid any confusion with users and contributors.

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

[](#installation)

You can install the package via composer:

```
composer require processton-io/processton-elements
```

Usage
-----

[](#usage)

Generate Content Basic Example

```
ProcesstonElements::generateContent([
    ProcesstonElements::generateHeader('Your Title Here', 3),
    ProcesstonElements::generateText('your text here'),
    ProcesstonElements::generateList([
        "List Item 1",
        "List Item 2"
    ]),
    ProcesstonElements::generateImage('path_to_image', 'image_caption')
], ProcesstonElements::width(12, 12, 12))
```

Advance
-------

[](#advance)

Generate Content

```
ProcesstonElements::generateContent(
    $arrayOfContentItems,
    $objectOfProcesstonElementWidth
)
```

Generate Content Data (API)

```
ProcesstonElements::generateContentData([
    $arrayOfContentItems
])
```

Generate Width (ProcesstonElementWidth)

```
ProcesstonElements::width(
    $SM_Widh,
    $MD_Widh,
    $LG_Width,
    $AditioalSizes = [
        'xxxs' => $XXXS_Width,
        'xxs' => $XXS_Width,
        'xs' => $XS_Width,
        'xl' => $XL_Width,
        'xxl' => $XXL_Width,
        'xxxl' => $XXXL_Width
    ]
)
```

Generate Title Element (h1,h2,h3,h4,h5,h6)

```
ProcesstonElements::generateHeader($you_title, $level)
```

Generate Text Element (Paragraph)

```
ProcesstonElements::generateText($you_text)
```

Generate List

```
ProcesstonElements::generateList([
    "List Item 1",
    "List Item 2"
])
```

Generate Image

```
ProcesstonElements::generateImage($URL_ToImage, $ImageCaption)
```

### Testing

[](#testing)

```
composer test
```

### Changelog

[](#changelog)

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

Contributing
------------

[](#contributing)

Please see [CONTRIBUTING](CONTRIBUTING.md) for details.

### Security

[](#security)

If you discover any security related issues, please email  instead of using the issue tracker.

Credits
-------

[](#credits)

- [Ahmad Faryab Kokab](https://github.com/processton)
- [All Contributors](../../contributors)

License
-------

[](#license)

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

###  Health Score

26

—

LowBetter than 43% of packages

Maintenance31

Infrequent updates — may be unmaintained

Popularity7

Limited adoption so far

Community8

Small or concentrated contributor base

Maturity49

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

Unknown

Total

1

Last Release

722d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/83275f3144d4cc4092e54dd8d5acf6a048536f6d7e454d741ae82a61f904c737?d=identicon)[ahmadkokab](/maintainers/ahmadkokab)

---

Top Contributors

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

---

Tags

processtonprocesston-ioprocesston-elements

###  Code Quality

TestsPHPUnit

### Embed Badge

![Health badge](/badges/processton-io-processton-elements/health.svg)

```
[![Health](https://phpackages.com/badges/processton-io-processton-elements/health.svg)](https://phpackages.com/packages/processton-io-processton-elements)
```

PHPackages © 2026

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