PHPackages                             infifly/tt - 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. infifly/tt

ActiveLibrary

infifly/tt
==========

My first Simple Php Framework

v0.12(8y ago)018PHPPHP &gt;=5.4.0

Since Oct 19Pushed 8y agoCompare

[ Source](https://github.com/infifly/tt)[ Packagist](https://packagist.org/packages/infifly/tt)[ RSS](/packages/infifly-tt/feed)WikiDiscussions master Synced 3d ago

READMEChangelog (3)Dependencies (3)Versions (4)Used By (0)

简单php框架

简单，０学习成本．

composer.json 如下

{
 "name": "test",
 "minimum-stability": "stable",
 "require": {
 "php": "&gt;=5.4.0",
 "infifly/tt":"\*"
 },
 "autoload": {
 "psr-4": {"app\\\\":"tt"}
 },
 "config": {
 "secure-http": false
 },

 "repositories": \[
 {"type": "composer", "url": ""},
 {"packagist": false}
 \]
 }

 目录结构

/configs/
 /runtime/
 /tt/
 |---controllers
 |-- LayoutController.php
 /views/
 |--layout
 |--index.php
 /models/
 /web/
 |--assets
 |--images
 |--css
 .htaccess
 index.php
 /vendor/
 composer.json

配置文件
 /configs/pub.php
 &lt;?php
 return \[
 "appname"=&gt;"tt",
 "env"=&gt;"test" //prod, test,
 \];
 ?&gt;

/configs/web.php

&lt;?php
 $cfg=include("pub.php");
 $cfg\['defaultlayout'\]="app\\controllers\\Layout.index";
 $cfg\['404page'\]="app\\controllers\\Layout.show404";
 return $cfg;
 ?&gt;

输出调试信息到页面 : \\TT::setDebugMessage("xxxxx");

代码示例：
 控制器:
 &lt;?php
 namespace app\\controllers;
 use TT\\core\\Controller;
 class TestController extends Controller{

 public function \_\_construct()
 {
 parent::\_\_construct();
 }

 public function indexAction(){
 \\TT::setDebugMessage("test");
 return $this-&gt;render("index",\['name'=&gt;'infi'\]);
 }
 }
 ?&gt;
 模板：
 1:/views/layout/index.php:

&lt;html&gt;
 &lt;head&gt;
&lt;body&gt;
 &lt;?=$this-&gt;getContent()?&gt;
&lt;/body&gt;
 &lt;/html&gt; 2:/views/test/index.php
 &lt;?=$name?&gt;

###  Health Score

23

—

LowBetter than 27% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity6

Limited adoption so far

Community6

Small or concentrated contributor base

Maturity50

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

Every ~0 days

Total

3

Last Release

3130d ago

### Community

Maintainers

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

---

Top Contributors

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

### Embed Badge

![Health badge](/badges/infifly-tt/health.svg)

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

###  Alternatives

[shopware/platform

The Shopware e-commerce core

3.3k1.5M3](/packages/shopware-platform)[magento/community-edition

Magento 2 (Open Source)

12.1k52.1k10](/packages/magento-community-edition)[stevebauman/purify

An HTML Purifier / Sanitizer for Laravel

5325.6M19](/packages/stevebauman-purify)[prestashop/prestashop

PrestaShop is an Open Source e-commerce platform, committed to providing the best shopping cart experience for both merchants and customers.

9.0k15.4k](/packages/prestashop-prestashop)[jason-munro/cypht

Lightweight Open Source webmail written in PHP and JavaScript

1.5k146.0k](/packages/jason-munro-cypht)[civicrm/civicrm-core

Open source constituent relationship management for non-profits, NGOs and advocacy organizations.

728272.9k20](/packages/civicrm-civicrm-core)

PHPackages © 2026

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