PHPackages                             mugasho/phpui - 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. [Framework](/categories/framework)
4. /
5. mugasho/phpui

ActiveLibrary[Framework](/categories/framework)

mugasho/phpui
=============

php ui framework

06PHP

Since Nov 20Pushed 8y ago1 watchersCompare

[ Source](https://github.com/Mugasho/Phpui)[ Packagist](https://packagist.org/packages/mugasho/phpui)[ RSS](/packages/mugasho-phpui/feed)WikiDiscussions master Synced 2d ago

READMEChangelogDependenciesVersions (1)Used By (0)

Phpui
=====

[](#phpui)

Phpui is a php only Ui framework.

What does it do
---------------

[](#what-does-it-do)

Write your code in pure php and DYnamically generate the Html,Javascript,Css etc

Installation
------------

[](#installation)

```
composer require mugasho/phpui
```

How it works
------------

[](#how-it-works)

Create a new html document object

```
$htmlDoc=new PhpUi\HtmlDocument('Hello',Lang::$english);
$htmlDoc->addClass(Classes::$content);
$htmlDoc->setMetaViewport('device-width',1.0,0,'minimal-ui');
$htmlDoc->setMetaDescription('PhpUi is a php only extensible web framework');
$htmlDoc->setMetaKeywords('php,ui,phpUI,web,framework');
$htmlDoc->setMetaAuthor('Script-floor');
//start printing element
$htmlDoc->start();
//create the body
$body=new PhpUi\UI(typeOf::$body);
//add classes to $body
$body->addClass(Classes::$containerFluid);
$body->start();
//close the element with end method
$body->end();
$htmlDoc->end();
```

Next steps
----------

[](#next-steps)

Add other elements like buttons, lists etc. For example adding a button

```
$button=new PhpUi\UI(typeOf::$button);
$button->setText('hello');
$button->setId('btn1');
$button->start();
$button->end();
//create a div
$div=new Php\UI(typeOf::$div);
$div->setId('div1');
$div->start();
$div->end();
```

happy Coding

###  Health Score

20

—

LowBetter than 13% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity4

Limited adoption so far

Community9

Small or concentrated contributor base

Maturity41

Maturing project, gaining track record

 Bus Factor1

Top contributor holds 51.5% 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/26634330?v=4)[Mugasho Lincoln](/maintainers/Mugasho)[@Mugasho](https://github.com/Mugasho)

---

Top Contributors

[![Mugasho](https://avatars.githubusercontent.com/u/26634330?v=4)](https://github.com/Mugasho "Mugasho (17 commits)")[![krmroland](https://avatars.githubusercontent.com/u/33207024?v=4)](https://github.com/krmroland "krmroland (16 commits)")

### Embed Badge

![Health badge](/badges/mugasho-phpui/health.svg)

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

###  Alternatives

[laravel/dusk

Laravel Dusk provides simple end-to-end testing and browser automation.

1.9k39.6M290](/packages/laravel-dusk)[nineinchnick/edatatables

Grid widget for the Yii Framework, wrapper for the DataTables jQuery plugin

173.2k](/packages/nineinchnick-edatatables)[link-cloud/fast-hyperf

LinkCloud Fast Hyperf

241.2k1](/packages/link-cloud-fast-hyperf)

PHPackages © 2026

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