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

ActiveMolajo-package

molajo/render
=============

Molajo Rendering for PHP Applications

0.1.0(12y ago)0431MITPHPPHP &gt;=5.3.10

Since Nov 24Pushed 10y ago4 watchersCompare

[ Source](https://github.com/Molajo/Render)[ Packagist](https://packagist.org/packages/molajo/render)[ Docs](http://github.com/Molajo/Render)[ RSS](/packages/molajo-render/feed)WikiDiscussions master Synced today

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

======= Render Package
======================

[](#render-package)

[![Build Status](https://camo.githubusercontent.com/0d7223bf4665c6ca791c95a7979945b76c567fbad9fe40cd9fe1ec56b1e46947/68747470733a2f2f7472617669732d63692e6f72672f4d6f6c616a6f2f52656e6465722e706e673f6272616e63683d6d6173746572)](https://travis-ci.org/Molajo/Render)

Render Services supporting translations for the User Interface for PHP applications using Adapters for different implementation types (ex., Database, \*.ini files, etc.).

System Requirements
-------------------

[](#system-requirements)

- PHP 5.3.3, or above
- [PSR-0 compliant Autoloader](https://github.com/php-fig/fig-standards/blob/master/accepted/PSR-0.md)
- PHP Framework independent
- \[optional\] PHPUnit 3.5+ to execute the test suite (phpunit --version)

### How to specify Render

[](#how-to-specify-render)

Render strings are loaded in startup for language determined in this order (and installed):

1. Injected value during class instantiation
2. Session
3. User Data
4. Client Render
5. Application Configuration
6. Defaults to en-GB

Instantiation
-------------

[](#instantiation)

To instantiate the Render Class:

```
   $language = new Render($language);
```

Once instantiated, all calls to the class can be made using the $language instance.

Render Properties
-----------------

[](#render-properties)

To retrieve the key value (ex. 'en-GB') for the language which is loaded:

```
   $language->get('language');
```

### Retrieve Render Strings

[](#retrieve-render-strings)

To retrieve all language strings and translations for the loaded language:

```
   $language->get('strings');
```

### Retrieve List of all installed Renders

[](#retrieve-list-of-all-installed-renders)

To retrieve a list of all languages installed in this application:

```
   $language->get('installed');
```

### Retrieve Render Attribute

[](#retrieve-render-attribute)

To retrieve a registry attribute value (id, name, rtl, local, first\_day) for the loaded language:

```
   $language->get('name-of-attribute');
```

### Retrieve all Render Attributes

[](#retrieve-all-render-attributes)

To retrieve all registry attribute values as an array for the loaded language:

```
   $language->get('registry');
```

Translate
---------

[](#translate)

To translate the string $xyz:

```
   $language->translate($xyz);
```

To retrieve a list of language strings and translations matching a wildcard value:

```
   $language->translate($xyz, 1);
```

Identify Untranslated Strings
-----------------------------

[](#identify-untranslated-strings)

To insert strings found in code but are not already in database:

- If an administrator is logged on, the primary language services automatically insert untranslated strings
- To avoid doing so, override the `RenderPlugin` and set `insert_missing_strings` to `0`
- For instances you define, set the `insert_missing_strings`, as needed.

To log strings found in code, but are not already in database:

- Set the Application configuration option `profile_missing_strings` to `1` and turn on `profiling`

###  Health Score

24

—

LowBetter than 32% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity12

Limited adoption so far

Community8

Small or concentrated contributor base

Maturity48

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

4549d ago

### Community

Maintainers

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

---

Top Contributors

[![AmyStephen](https://avatars.githubusercontent.com/u/95525?v=4)](https://github.com/AmyStephen "AmyStephen (38 commits)")

---

Tags

renderMolajoCommonApi

### Embed Badge

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

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

###  Alternatives

[jenssegers/blade

The standalone version of Laravel's Blade templating engine for use outside of Laravel.

8661.2M107](/packages/jenssegers-blade)[atk4/ui

Agile UI - Web Component Framework written in PHP

454540.1k32](/packages/atk4-ui)[phug/phug

Pug (ex-Jade) facade engine for PHP, HTML template engine structured by indentation

67292.2k12](/packages/phug-phug)[davidbadura/markdown-builder

Markdown Builder

22899.4k5](/packages/davidbadura-markdown-builder)[bnomei/kirby3-janitor

Kirby Plugin for running commands like cleaning the cache from within the Panel, PHP code or a cronjob

9339.9k2](/packages/bnomei-kirby3-janitor)[text/template

Simple and secure string-template-engine (Twig-like syntax) with nested if/elseif/else, loops, filters. Simple OOP api: Just one class doing the job (2-lines of code). Fast and secure: No code-generation, no eval'ed() code. Extensible by callbacks. Fully tested. Rich examples included.

38201.1k10](/packages/text-template)

PHPackages © 2026

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