npm.io
1.0.1 • Published 8 years ago

pphp

Licence
GPL-3.0
Version
1.0.1
Deps
0
Size
42 kB
Vulns
0
Weekly
0
Stars
1

pphp

This package is for those who like beautiful, orderly and easily program code!

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;

		}

	}

}

Keywords