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

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

processton-io/processton-interaction
====================================

This package will generate interaction

1.0.0(1y ago)01297MITPHPPHP ^8.0|^8.1

Since May 20Pushed 1y agoCompare

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

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

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

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

[![Latest Version on Packagist](https://camo.githubusercontent.com/6cc0637583f6059f91c19be21e5c92771ec608ef245db758eaef4dd03b2a38c0/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f762f70726f63657373746f6e2d696f2f70726f63657373746f6e2d696e746572616374696f6e2e7376673f7374796c653d666c61742d737175617265)](https://packagist.org/packages/processton-io/processton-interaction)[![Total Downloads](https://camo.githubusercontent.com/bcc145b93eec94a2fdf4cf592f5f39fbe17c7110c12291c6d5bca87ac6c00a30/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f64742f70726f63657373746f6e2d696f2f70726f63657373746f6e2d696e746572616374696f6e2e7376673f7374796c653d666c61742d737175617265)](https://packagist.org/packages/processton-io/processton-interaction)[![GitHub Actions](https://github.com/processton-io/processton-interaction/actions/workflows/main.yml/badge.svg)](https://github.com/processton-io/processton-interaction/actions/workflows/main.yml/badge.svg)

The Processton Interaction package is a tool for generating array structures used in the Processton client. It provides a convenient way to handle interactions between different components of the Processton system. With this package, you can easily create and manage complex data structures for seamless communication within your application.

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

[](#installation)

You can install the package via composer:

```
composer require processton-io/processton-interaction
```

Usage
-----

[](#usage)

### width

[](#width)

This method is used to set the width of an element.

#### Parameters:

[](#parameters)

- $sm, $lg, $md: Width for different screen sizes.
- $additional (optional): Additional parameters.

```
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
    ]
)
```

### generateBreadCrumbs

[](#generatebreadcrumbs)

This method is used to generate breadcrumbs.

#### Parameters:

[](#parameters-1)

- $breadcrumbs: An array of breadcrumb items.

```
ProcesstonElements::generateBreadCrumbs(...$breadcrumbs)
```

### generateBreadCrumbItem

[](#generatebreadcrumbitem)

This method is used to generate a breadcrumb item.

#### Parameters:

[](#parameters-2)

- $label: The label of the breadcrumb item.
- $slug: The slug of the breadcrumb item.
- $icon (optional): The icon of the breadcrumb item.

```
ProcesstonElements::generateBreadCrumbItem(
    $label,
    $slug,
    $icon = ''
)
```

### generateInteraction

[](#generateinteraction)

This method is used to generate an interaction.

#### Parameters:

[](#parameters-3)

- $title: The title of the interaction.
- $slug: The slug of the interaction.
- $subTitle (optional): The subtitle of the interaction.
- $icon (optional): The icon of the interaction.
- $breadcrumbs (optional): The breadcrumbs of the interaction.
- $filters (optional): The filters of the interaction.
- $elements (optional): The elements of the interaction.

```
ProcesstonElements::generateInteraction(
    $title,
    $slug,
    $subTitle,
    $icon,
    $breadcrumbs,
    $filters,
    $elements
)
```

### generateRow

[](#generaterow)

This method is used to generate a row.

#### Parameters:

[](#parameters-4)

- $elements: The elements of the row.
- $width (optional): The width of the row.

```
ProcesstonElements::generateRow(
    $elements,
    $width
)
```

### generateElement

[](#generateelement)

This method is used to generate an element with the provided parameters.

```
ProcesstonElements::generateElement(
    $type,
    $title,
    $data,
    $subTitle,
    $attachments,
    $elements,
    $widthe,
    $name,
)
```

#### Parameters:

[](#parameters-5)

- $type: The type of the element.
- $title: The title of the element.
- $data: The data of the element.
- $subTitle (optional): The subtitle of the element.
- $attachments (optional): The attachments of the element.
- $elements (optional): The elements of the element.
- $width (optional): The width of the element.
- $name (optional): The name of the element.

### generateElementByUrl

[](#generateelementbyurl)

This method is used to generate an element by URL with the provided parameters.

```
ProcesstonElements::generateElementByUrl(
    $dataSrc,
    $title,
    $subTitle,
    $type,
    $attachments,
    $elements,
)
```

#### Parameters:

[](#parameters-6)

- $dataSrc: The data source URL of the element.
- $title (optional): The title of the element.
- $subTitle (optional): The subtitle of the element.
- $type (optional): The type of the element.
- $attachments (optional): The attachments of the element.
- $elements (optional): The elements of the element.

### 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-io)
- [All Contributors](../../contributors)

License
-------

[](#license)

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

###  Health Score

28

—

LowBetter than 54% of packages

Maintenance32

Infrequent updates — may be unmaintained

Popularity11

Limited adoption so far

Community13

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

719d 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 (3 commits)")

---

Tags

processtonprocesston-ioprocesston-interaction

###  Code Quality

TestsPHPUnit

### Embed Badge

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

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

###  Alternatives

[pwm/datetime-period

An implementation of the datetime period type for working with temporal intervals

679.0k](/packages/pwm-datetime-period)

PHPackages © 2026

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