An easy-to-use and portable PHP Framework
Pt is an easy-to-use and portable PHP framework. It facilitates your development, making it easier and smoother.
Copy class
,common
,conf
,language
folders and common.php
into your project's folder.
Create log
, template
folders in the project (folders' name can be changed in config).
And set log
folder writeable.
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 page.
View project's WIKI
######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.