PHPackages                             ngomafortuna/list-formatter - 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. ngomafortuna/list-formatter

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

ngomafortuna/list-formatter
===========================

Formatter from composite datas to string list. This library accepts lists in array or database format and converts them into strings where each item is separated by commas. This library also sorts a composite list (array/object) in ascending and descending order. (Formatador de dados compostos para string. Esta biblioteca recebe listas em formato de array ou base de dados e converte string em onde cada item é separado por vígulas. Esta biblioteca também ordena uma lista composta (array/object) de forma crescente e decrescente.)

v0.0.1(11mo ago)04BSD-3-ClausePHPPHP &gt;=8.0

Since Jun 8Pushed 6mo agoCompare

[ Source](https://github.com/ngomaf/list-formatter)[ Packagist](https://packagist.org/packages/ngomafortuna/list-formatter)[ RSS](/packages/ngomafortuna-list-formatter/feed)WikiDiscussions main Synced 1mo ago

READMEChangelogDependenciesVersions (2)Used By (0)

List formatter
==============

[](#list-formatter)

Formatter from composite datas to string list. This library accepts lists in array or database format and converts them into strings where each item is separated by commas. This library also sorts a composite list (array/object) in ascending and descending order. (Formatador de dados compostos para string. Esta biblioteca recebe listas em formato de array ou base de dados e converte string em onde cada item é separado por vígulas. Esta biblioteca também ordena uma lista composta (array/object) de forma crescente e decrescente.)

This component have two features:

- InLine: to formatter array or object list in string in line or list of hiperlink (para formatar lista de array or object em string en linha ou hiperlinks)
- Order: to order array or object list, for two options: (Para ordenar elementos de uma lista)
    - get: return list in asc order (retorna uma lista em ordem crescente)
    - rGet: return list in desc order (retorna uma lista em ordem decrescente)

Require
-------

[](#require)

Necessary PHP 8.0 or more (Necessário PHP 8.0 ou superior)

Install
-------

[](#install)

composer require ngomafortuna/list-formatter

Syntax and mode of use
----------------------

[](#syntax-and-mode-of-use)

```
$list = InLine::get($notices, ['title']);
$list1 = InLine::get($notices, ['title', 'slug'], 'https://www.minharosa.ao');

$order = Order::get($arrayLIst, 'title');
$order1 = Order::rGet($arrayLIst, 'title');
```

Example
-------

[](#example)

```
use Ngomafortuna\ListFormatter\InLine;
use Ngomafortuna\ListFormatter\Order;

$arrayLIst = [
    ['title' => 'Vestimentas', 'date' => '2024-06-06', 'image' => 'photo1.jpg'],
    ['title' => 'Cultura','date' => '2025-06-06','image' => 'photo3.jpg'],
    ['title' => 'Socieda','date' => '2024-76-06','image' => 'photo2.jpg']
];

// TRANSFORM ARRAY OR OBJECT LIST IN LINE (STRING)
$list = InLine::get($arrayLIst, ['title']);
$list1 = InLine::get($arrayLIst, ['title', 'slug'], 'https://www.minharosa.ao');

// ORDER ARRAY OR OBJECT
$order = Order::get($arrayLIst, 'title');
$order1 = Order::rGet($arrayLIst, 'title');

var_dump($list, $list1);

var_dump($order, $order1);
```

Results

```
string(102) "Caála, História, Economia Infraestrutura e Esportes, Divisão administrativa do Município da Caála"

string(340) "Caála, História, Economia Infraestrutura e Esportes, Divisão administrativa do Município da Caála"

object(stdClass)#7 (3) {
  ["0"]=>
  object(stdClass)#5 (3) {
    ["title"]=>
    string(7) "Cultura"
    ["date"]=>
    string(10) "2025-06-06"
    ["image"]=>
    string(10) "photo3.jpg"
  }
  ["1"]=>
  object(stdClass)#6 (3) {
    ["title"]=>
    string(7) "Socieda"
    ["date"]=>
    string(10) "2024-76-06"
    ["image"]=>
    string(10) "photo2.jpg"
  }
  ["2"]=>
  object(stdClass)#2 (3) {
    ["title"]=>
    string(11) "Vestimentas"
    ["date"]=>
    string(10) "2024-06-06"
    ["image"]=>
    string(10) "photo1.jpg"
  }
}

object(stdClass)#11 (3) {
  ["0"]=>
  object(stdClass)#8 (3) {
    ["title"]=>
    string(11) "Vestimentas"
    ["date"]=>
    string(10) "2024-06-06"
    ["image"]=>
    string(10) "photo1.jpg"
  }
  ["1"]=>
  object(stdClass)#10 (3) {
    ["title"]=>
    string(7) "Socieda"
    ["date"]=>
    string(10) "2024-76-06"
    ["image"]=>
    string(10) "photo2.jpg"
  }
  ["2"]=>
  object(stdClass)#9 (3) {
    ["title"]=>
    string(7) "Cultura"
    ["date"]=>
    string(10) "2025-06-06"
    ["image"]=>
    string(10) "photo3.jpg"
  }
}
```

###  Health Score

27

—

LowBetter than 49% of packages

Maintenance65

Regular maintenance activity

Popularity3

Limited adoption so far

Community6

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

335d ago

### Community

Maintainers

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

---

Top Contributors

[![ngomaf](https://avatars.githubusercontent.com/u/172862580?v=4)](https://github.com/ngomaf "ngomaf (6 commits)")

### Embed Badge

![Health badge](/badges/ngomafortuna-list-formatter/health.svg)

```
[![Health](https://phpackages.com/badges/ngomafortuna-list-formatter/health.svg)](https://phpackages.com/packages/ngomafortuna-list-formatter)
```

###  Alternatives

[michael-rubel/laravel-couponables

This package provides polymorphic coupon functionality for your Laravel application.

19590.7k1](/packages/michael-rubel-laravel-couponables)[loadsys/cakephp_sitemap

A CakePHP Plugin for adding automatic XML and HTML Sitemaps to an app

2819.6k](/packages/loadsys-cakephp-sitemap)[mauricerenck/komments

A comment and webmention plugin for Kirby 3

501.2k1](/packages/mauricerenck-komments)[myweb/show-out-of-stock-products

Show out-of-stock product configurations for configurable products on the front end.

131.7k](/packages/myweb-show-out-of-stock-products)

PHPackages © 2026

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