PHPackages                             samsonos/php\_html - 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. samsonos/php\_html

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

samsonos/php\_html
==================

SamsonPHP html markup generator module

22322[1 issues](https://github.com/samsonos/php_html/issues)PHP

Since Nov 11Pushed 10y ago2 watchersCompare

[ Source](https://github.com/samsonos/php_html)[ Packagist](https://packagist.org/packages/samsonos/php_html)[ RSS](/packages/samsonos-php-html/feed)WikiDiscussions master Synced 4d ago

READMEChangelogDependenciesVersions (1)Used By (0)

\#HTML markup generator for SamsonPHP

This module is commonly used and designed for front-end developers who want to use all power of MVC approach and all features of SamsonPHP framework but must get as output simple combined static html markup(.htm, .html) files without any PHP server code. This task also called as creating HTML markup.

> Module also automatically gathers all generated localized static HTML markup web-application versions to a ZIP archive that you can immediately send to your client.

[![Latest Stable Version](https://camo.githubusercontent.com/89c2de37fc61435d02db39825bcbb04b2410a38b978cb8865170a6a43ae0ae92/68747470733a2f2f706f7365722e707567782e6f72672f73616d736f6e6f732f7068705f68746d6c2f762f737461626c652e737667)](https://packagist.org/packages/samsonos/php_html)[![Build Status](https://camo.githubusercontent.com/14e68ade752a4a97abd16db7c4beccb8df193244603ea82bcf217c305a1d7cd8/68747470733a2f2f7472617669732d63692e6f72672f73616d736f6e6f732f7068705f68746d6c2e706e67)](https://travis-ci.org/samsonos/php_html)[![Coverage Status](https://camo.githubusercontent.com/69956d66656c6319610e6f9a2a64eed40f5d872324698c6772dd63bf964cba72/68747470733a2f2f696d672e736869656c64732e696f2f636f766572616c6c732f73616d736f6e6f732f7068705f68746d6c2e737667)](https://coveralls.io/r/samsonos/php_html?branch=master)[![Code Climate](https://camo.githubusercontent.com/aa7f95a006a2014c19ba3190725a3f62b3cadb513d66682819b4fa4fc6363ce6/68747470733a2f2f636f6465636c696d6174652e636f6d2f6769746875622f73616d736f6e6f732f7068705f68746d6c2f6261646765732f6770612e737667)](https://codeclimate.com/github/samsonos/php_html)[![Total Downloads](https://camo.githubusercontent.com/e1dab63728bd4ef21b7fc6d39af03a8f8d5785695c878673544c0ef9615bc058/68747470733a2f2f706f7365722e707567782e6f72672f73616d736f6e6f732f7068705f68746d6c2f646f776e6c6f6164732e737667)](https://packagist.org/packages/samsonos/php_html)[![Scrutinizer Code Quality](https://camo.githubusercontent.com/e7f55bd9e61d9ec62bd0418021a735ecd19f72c58386de45a4c2f69f78a54163/68747470733a2f2f7363727574696e697a65722d63692e636f6d2f672f73616d736f6e6f732f7068705f68746d6c2f6261646765732f7175616c6974792d73636f72652e706e673f623d6d6173746572)](https://scrutinizer-ci.com/g/samsonos/php_html/?branch=master)

\##Generating HTML markup from your project To generate all your projects HTML markup pages you should visit `http://domain.com/html` page. By default module is configured to put all HTML markup files into `__SAMSON_PUBLIC_PATH.'out/`(by default `www/out/`) folder.

Module automatically scans all your module controllers and their actions and call all them to get their actual output as pure generated HTML output and stores them as `.html` files in default module cache folder(by default `www/cache/html/`).

Internalization support(i18n)
-----------------------------

[](#internalization-supporti18n)

If you web-application uses [SamsonPHP i18n module](http://github.com/samsonos/php_i18n) all controller actions output would be automatically generated for all supported locales.

For example if have set two locales `en-English` and `ru-Russian`, and have set that default locale is `Russian-ru`then module will generate `www/out/def` folder and build all html files for default Russian locale, and also create `www/out/en`folder and put English html files there.

Resources
---------

[](#resources)

Module automatically finds your combined `javascript` and `css` resource files and puts them to your html version root folder as:

- `index.js` for javascript file
- `style.css` for css file

> All external javascript and css links are left as they are

Module will rewrite all CSS `url(...)` to meet new structure,

What about images and other static resources?
---------------------------------------------

[](#what-about-images-and-other-static-resources)

If you were using `` directive in your images in view files, than all pathes would be rewritten automatically for you to meet new structure. All other resources would be copied to `[module]/[path]`.

How to use?
-----------

[](#how-to-use)

We perefer Composer, how to use it via composer.json:

```
"require-dev": {
    "samsonos/php_html": "*",
```

\##Summary

This module is an automatic converter from SamsonPHP web-application project to a combined finalize static HTML web-application.

Developed by [SamsonOS](http://samsonos.com/)

###  Health Score

21

—

LowBetter than 19% of packages

Maintenance10

Infrequent updates — may be unmaintained

Popularity15

Limited adoption so far

Community13

Small or concentrated contributor base

Maturity41

Maturing project, gaining track record

 Bus Factor1

Top contributor holds 90.3% 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://www.gravatar.com/avatar/0be8756efdc8f599b8fe9261bed31570d0f140a3b921f0f891877a9133ad654c?d=identicon)[samsonos](/maintainers/samsonos)

---

Top Contributors

[![vitalyiegorov](https://avatars.githubusercontent.com/u/586558?v=4)](https://github.com/vitalyiegorov "vitalyiegorov (28 commits)")[![onysko](https://avatars.githubusercontent.com/u/7703953?v=4)](https://github.com/onysko "onysko (2 commits)")[![rmolodyko](https://avatars.githubusercontent.com/u/4399482?v=4)](https://github.com/rmolodyko "rmolodyko (1 commits)")

### Embed Badge

![Health badge](/badges/samsonos-php-html/health.svg)

```
[![Health](https://phpackages.com/badges/samsonos-php-html/health.svg)](https://phpackages.com/packages/samsonos-php-html)
```

###  Alternatives

[magenerds/richsnippet

This module provides rich snippet functionality

1025.3k](/packages/magenerds-richsnippet)

PHPackages © 2026

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