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

ActiveLibrary

pers1307/helpers
================

Helpers for Publisher 6.0

0921PHP

Since Sep 20Pushed 8y ago1 watchersCompare

[ Source](https://github.com/pers1307/helpers)[ Packagist](https://packagist.org/packages/pers1307/helpers)[ RSS](/packages/pers1307-helpers/feed)WikiDiscussions master Synced 2mo ago

READMEChangelogDependenciesVersions (1)Used By (0)

Publisher helpers
=================

[](#publisher-helpers)

[![Software License](https://camo.githubusercontent.com/55c0218c8f8009f06ad4ddae837ddd05301481fcf0dff8e0ed9dadda8780713e/68747470733a2f2f696d672e736869656c64732e696f2f62616467652f6c6963656e73652d4d49542d627269676874677265656e2e7376673f7374796c653d666c61742d737175617265)](LICENSE.md)

Кароч, это набор набор хэлперов для Publisher'а. Помогает упростить работу во view.

Install
-------

[](#install)

Используй composer и все.

```
$ php composer.phar require --prefer-dist pers1307/helpers "dev-master"
```

Капитан, что мне делать с этим?
-------------------------------

[](#капитан-что-мне-делать-с-этим)

StringCutHelper - класс режет строку до указанного размера. Причем, разрежет по целым словам. Без половинчатых слов.

```
use pers1307\helpers\StringCutHelper;

$title = 'Hello yellow';
$stringCutTitle = new StringCutHelper();
$stringCutTitle->setMaxLenght(100);
$stringCutTitle->setSeparator('');
$title = $stringCutTitle->cutString($title);
```

RowHelper - класс, который поможет тебе, вывести элементы построчно. И конечно, правильно вписать все это в верстку

```

    beforeCycle('', '', 3); ?>

        getArticleLink($item['id']);

        if (empty($imageUrl)) {
            $imageUrl = '/DESIGN/SITE/images/no-image/no-image_160_160.png';
        }
        $htmlItem = "

                $title

        ";

        if (empty($title)) {
            continue;
        }

        $return = $helper->inCycle($htmlItem);

        if ($return === 'continue') {
            continue;
        }
        ?>

    afterCycle(); ?>

```

ColumsHelper - класс, который разобъет передаваемы items на колонки, горизонтально или вертикально и вернет эти колонки как массивы, оч удобно, trust me.

```
use pers1307\helpers\ColumnsHelper;

$tools = $query->getItems();

$columnsHelper = new ColumnsHelper();
$columnsHelper->setColumns(4);
$tools = $columnsHelper->horizontal($tools);
```

Пример для таблицы

```
use pers1307\helpers\ColumnsHelper;

$tools = $query->getItems();

$columnsHelper = new ColumnsHelper();
$columnsHelper->setColumns(4);
$certificates = $columnsHelper->horizontalForTable($certificates);
```

Пример для разбиения по колонкам

```
use pers1307\helpers\ColumnsHelper;

$tools = $query->getItems();

$columnsHelper = new ColumnsHelper();
$columnsHelper->setColumns(4);
$certificates = $columnsHelper->upright($certificates);
```

Credits
-------

[](#credits)

- [Pereskokov Yurii (pers1307)](https://github.com/pers1307)

License
-------

[](#license)

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

###  Health Score

23

—

LowBetter than 27% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity10

Limited adoption so far

Community17

Small or concentrated contributor base

Maturity41

Maturing project, gaining track record

 Bus Factor3

3 contributors hold 50%+ of commits

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.

### Community

Maintainers

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

---

Top Contributors

[![philsturgeon](https://avatars.githubusercontent.com/u/67381?v=4)](https://github.com/philsturgeon "philsturgeon (5 commits)")[![RobLoach](https://avatars.githubusercontent.com/u/25086?v=4)](https://github.com/RobLoach "RobLoach (4 commits)")[![marcqualie](https://avatars.githubusercontent.com/u/101022?v=4)](https://github.com/marcqualie "marcqualie (4 commits)")[![bcrowe](https://avatars.githubusercontent.com/u/752603?v=4)](https://github.com/bcrowe "bcrowe (2 commits)")[![pborreli](https://avatars.githubusercontent.com/u/77759?v=4)](https://github.com/pborreli "pborreli (1 commits)")[![Swader](https://avatars.githubusercontent.com/u/1430603?v=4)](https://github.com/Swader "Swader (1 commits)")[![Anahkiasen](https://avatars.githubusercontent.com/u/1321596?v=4)](https://github.com/Anahkiasen "Anahkiasen (1 commits)")[![zackkitzmiller](https://avatars.githubusercontent.com/u/111536?v=4)](https://github.com/zackkitzmiller "zackkitzmiller (1 commits)")[![barryvdh](https://avatars.githubusercontent.com/u/973269?v=4)](https://github.com/barryvdh "barryvdh (1 commits)")[![bencorlett](https://avatars.githubusercontent.com/u/181919?v=4)](https://github.com/bencorlett "bencorlett (1 commits)")[![nyamsprod](https://avatars.githubusercontent.com/u/51073?v=4)](https://github.com/nyamsprod "nyamsprod (1 commits)")

### Embed Badge

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

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

PHPackages © 2026

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