pphp
v1.0.1
Published
PHP Preprocossor
Downloads
6
Readme
pphp
Example:
Source In
This package in developer mode!!
@php
@class Test
@var+ $testPublic = array();
@var- $testPrivate = 20;
@var. $testProtected = 'test';
@var(static). $testStatic = 'static';
@function+ test()
@foreach(@this.test as $key => $val)
echo $key.$val;
@end
@end
@function(static)- staticTest($test)
@if($test)
return true;
@end
@end
@end
Source Out
<?php
class Test{
public $testPublic = array();
private $testPrivate = 20;
protected $testProtected = 'test';
protected static $testStatic = 'static';
public function test(){
foreach($this->test as $key => $val){
echo $key.$val;
}
}
private static function staticTest($test){
if($test){
return true;
}
}
}