PHPackages                             pt/pt-framework - 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. pt/pt-framework

ActiveLibrary[Framework](/categories/framework)

pt/pt-framework
===============

An easy-to-use and portable PHP Framework

v1.0.2(6y ago)16153Artistic-2.0PHPPHP &gt;=5.3.0

Since Aug 27Pushed 2y ago5 watchersCompare

[ Source](https://github.com/page7/pt)[ Packagist](https://packagist.org/packages/pt/pt-framework)[ Docs](https://github.com/page7/pt)[ RSS](/packages/pt-pt-framework/feed)WikiDiscussions master Synced 4d ago

READMEChangelog (2)DependenciesVersions (4)Used By (0)

pt framework
============

[](#pt-framework)

*An easy-to-use and portable PHP Framework*

What is pt?
-----------

[](#what-is-pt)

Pt is an easy-to-use and portable PHP framework. It facilitates your development, making it easier and smoother.

Getting Started
---------------

[](#getting-started)

##### 1. Copy pt-framework in your project.

[](#1-copy-pt-framework-in-your-project)

Copy `class`,`common`,`conf`,`language` folders and `common.php` into your project's folder.

##### 2. Create folders.

[](#2-create-folders)

Create `log`, `template` folders in the project (folders' name can be changed in config).
And set `log` folder writeable.

##### 3. Create your first page

[](#3-create-your-first-page)

And coding this:

```
// session start
define("SESSION_ON", true);

// define project's config
define("CONFIG", '/conf/web.conf.php');

// debug switch
define("DEBUG", true);

// include framework entrance file
include('./common.php');
```

##### 4. If you want create a **single** entry project, to read [route](https://github.com/page7/pt/wiki/Route) page.

[](#4-if-you-want-create-a-single-entry-project-to-read-route-page)

##### Or not, keep reading [datebase](https://github.com/page7/pt/wiki/Datebase) or [template](https://github.com/page7/pt/wiki/Template) page.

[](#or-not-keep-reading-datebase-or-template-page)

User Guide
----------

[](#user-guide)

View project's [WIKI](https://github.com/page7/pt/wiki)

Change Log
----------

[](#change-log)

\######Alpha 0.1

```
	Date: 2014-10-06
	Contributor: nolan
	* This is the first version.

```

\######Alpha 0.2

```
	Date: 2015-04-13
	Contributor: nolan
	* Add namespace "pt\framework" and "pt\tool".
	* Add "pt\framework\debug" class.
	* Add "pt\framework\debug\console" class to print debug message into browser's console.
	* Move function "charset_convert" into class "pt\tool\string".
	* Move function "path_by_str" into class "pt\tool\string", rename "pad_split".
	* Move functions "_is_writable", "_mkdir", "mkdirs" into a new class "pt\tool\file".
	* Remove function "addslashes_deep", "trace".

```

\######Beta 1.0

```
	Date: 2015-05-26
	Contributor: nolan
	* Add "route".
	* Add Project's wiki.

```

\######Beta 1.1

```
	Date: 2015-10-15
	Contributor: nolan
	* Add "event", "filter" into framework.
	* Add event's trggiers. Search : "event::trigger" or "filter::apply"
	* UPdate template::$dir to template::$package, and change access for protected.
	* Update class "language" about Gettext not expanded.
	* Remove "template" class's "callback" option.
	* Optimize the filename.
		add path "common\pt", and move config.php and func.php into.
		rename all config file to *.conf.php
	Update Notice:
	* Replace All template::$dir=* to template::package(*).
	* Class "pt\tool\action" and "pt\tool\filter" will be remove for v2.0.
	* Some file path and name be changed, please check.

```

###  Health Score

29

—

LowBetter than 59% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity15

Limited adoption so far

Community11

Small or concentrated contributor base

Maturity59

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 ~302 days

Total

3

Last Release

2215d ago

### Community

Maintainers

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

---

Top Contributors

[![page7](https://avatars.githubusercontent.com/u/4102071?v=4)](https://github.com/page7 "page7 (62 commits)")

---

Tags

phpframework

### Embed Badge

![Health badge](/badges/pt-pt-framework/health.svg)

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

PHPackages © 2026

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