PHPackages                             anishmm/render - 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. anishmm/render

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

anishmm/render
==============

Renderers for links, tables, pages

08PHP

Since Jun 2Pushed 9y agoCompare

[ Source](https://github.com/anish-mm/Render)[ Packagist](https://packagist.org/packages/anishmm/render)[ RSS](/packages/anishmm-render/feed)WikiDiscussions master Synced 2w ago

READMEChangelogDependenciesVersions (1)Used By (0)

Render
======

[](#render)

Creating renderers for render arrays of type link, table, basic page with title, body and tags, etc.

RENDER ARRAY EXAMPLES
---------------------

[](#render-array-examples)

EXAMPLE RENDER ARRAY FOR A TABLE
--------------------------------

[](#example-render-array-for-a-table)

```
$table = array(
    'type' => 'table',

    // list of table headers
    // an array of strings
    'headers' => array(
        'col_name_1',
        'col_name_2',
        'col_name_3',
        ...
    ),

    // an array of arrays representing rows
    // render arrays for tables or links
    'rows' => array(

        // a row may be array of strings
        array(
            'row_1_cell_1',
            'row_1_cell_2',
            ...
        ),

        // a row may be array of render arrays for links and tables
        array(
            $render_array_for_link,
            $render_array_for_table,
            ...
        ),

        // a row may be an array of both render arrays and strings
        array(
            $render_array_for_link,
            'row_2_cell_2',
            $render_array_for_table,
            ...
        ),
        ...
    ),
);

```

Notes
-----

[](#notes)

For a table, number of headers in taken as number of columns, and if a row contains more cell values, the excess ones at the end are discarded.

---

EXAMPLE RENDER ARRAY FOR A LINK
-------------------------------

[](#example-render-array-for-a-link)

```
$link = array(
    'type' => 'link',

    //string containing the url to be linked
    'url' => $url_to_my_page,

    //string containing the link text
    'text' => $link_text,
);

```

Notes
-----

[](#notes-1)

Link text by default is 'Click Here'.

---

EXAMPLE RENDER ARRAY FOR A PAGE
-------------------------------

[](#example-render-array-for-a-page)

```
$page = array(
    'type' => 'page',

    //string containing title of page
    'title' => $title_for_my_page,

    //string OR render array for link or table OR
    // array of strings and render arrays for links and tables
    'body' => array(
        $render_array_for_table,
        $render_array_for_link,
        "this is an example",
        ...
    ),

    //array of link render arrays
    'tags' => array(
        $tag_1_link,
        $tag_2_link,
        $tag_3_link,
        ...
    ),
);

```

Notes
-----

[](#notes-2)

Tags are optional for a page.

---

###  Health Score

19

—

LowBetter than 9% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity4

Limited adoption so far

Community6

Small or concentrated contributor base

Maturity41

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/483648?v=4)[anishmathew](/maintainers/anishmathew)[@anishmathew](https://github.com/anishmathew)

---

Top Contributors

[![anish-mm](https://avatars.githubusercontent.com/u/25240203?v=4)](https://github.com/anish-mm "anish-mm (20 commits)")

---

Tags

render

### Embed Badge

![Health badge](/badges/anishmm-render/health.svg)

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

###  Alternatives

[glhd/gretel

270349.6k6](/packages/glhd-gretel)[ideea/language-detector

Detect languages by text

334.4k](/packages/ideea-language-detector)

PHPackages © 2026

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