PHPackages                             gradyskyi/smartline - 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. [Testing &amp; Quality](/categories/testing)
4. /
5. gradyskyi/smartline

ActiveLibrary[Testing &amp; Quality](/categories/testing)

gradyskyi/smartline
===================

smartline test

09PHP

Since Sep 19Pushed 7y ago1 watchersCompare

[ Source](https://github.com/gradyskyi/smartline)[ Packagist](https://packagist.org/packages/gradyskyi/smartline)[ RSS](/packages/gradyskyi-smartline/feed)WikiDiscussions master Synced 2w ago

READMEChangelogDependenciesVersions (1)Used By (0)

smartline
=========

[](#smartline)

smartline test

---

Installation:

```
composer require gradyskyi/smartline
```

Usage

```
use gradyskyi\smartline\SmartlineTest;

$test = new SmartlineTest();

var_dump($test->testOne([-1, 10, -9, 5, 6, -10]));

var_dump($test->testTwo([
    [1, 0, 1, 1],
    [1, 1, 1, 1],
    [1, 1, 0, 1],
    [1, 1, 1, 1]
]));

var_dump($test->testThree([3, 4, 5, -2, 10, 11, 12, -1, 0, 7, 8], 10));
```

---

Задача

```
Задача #1: Дан массив целых чисел. Вывести максимальную сумму элементов в
массиве. Суммировать элементы можно только последовательно.
Пример: [-1, 10, -9, 5, 6, -10]
Вывод: 11

Задача #2: Если элемент матрицы равен 0, то всю строку и весь столбец нужно
обнулить.

$matrix = [
    [1, 0, 1, 1],
    [1, 1, 1, 1],
    [1, 1, 1, 1],
    [1, 1, 1, 1]
];

Задача #3: найти и вывести все пары целых чисел в массиве, сумма которых
равна заданному значению X.
Например: $array = [ 3, 4, 5, -2, 10, 11, 12, -1, 0, 7, 8 ]; $X = 10;
```

###  Health Score

19

—

LowBetter than 9% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity4

Limited adoption so far

Community7

Small or concentrated contributor base

Maturity40

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.

### Community

Maintainers

![](https://avatars.githubusercontent.com/u/14127215?v=4)[Gradyskyi](/maintainers/Gradyskyi)[@gradyskyi](https://github.com/gradyskyi)

---

Top Contributors

[![gradyskyi](https://avatars.githubusercontent.com/u/14127215?v=4)](https://github.com/gradyskyi "gradyskyi (14 commits)")

### Embed Badge

![Health badge](/badges/gradyskyi-smartline/health.svg)

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

###  Alternatives

[dms/phpunit-arraysubset-asserts

This package provides ArraySubset and related asserts once deprecated in PHPUnit 8

14228.7M346](/packages/dms-phpunit-arraysubset-asserts)[phpbenchmark/phpbenchmark

Easy to use benchmark toolkit for your PHP-application. This library contains classes for comparing algorithms as well as benchmarking application responses

8011.5k2](/packages/phpbenchmark-phpbenchmark)

PHPackages © 2026

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