Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/zonuexe/phrogramming
Programming interface for the template engine called PHP
https://github.com/zonuexe/phrogramming
Last synced: 18 days ago
JSON representation
Programming interface for the template engine called PHP
- Host: GitHub
- URL: https://github.com/zonuexe/phrogramming
- Owner: zonuexe
- License: gpl-3.0
- Created: 2014-05-24T07:36:33.000Z (over 10 years ago)
- Default Branch: master
- Last Pushed: 2014-11-02T13:17:24.000Z (about 10 years ago)
- Last Synced: 2024-11-06T02:49:16.406Z (2 months ago)
- Language: PHP
- Size: 250 KB
- Stars: 0
- Watchers: 3
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: COPYING
Awesome Lists containing this project
README
Phrogramming
============Programming interface for the template engine called PHP
*NOTICE*
--------This library taints [global scope](http://php.net/language.variables.scope).
Requires
--------* PHP 5.4+
Syntax
------### If-Then-Else
```php
boolean
'foo'
echo $if( $not($true), 'foo', 'bar' ) . PHP_EOL;
//=> 'bar'
echo $if( $and($true, $true), 'foo', 'bar' ) . PHP_EOL;
//=> 'foo'echo $if( $Equals(10, 20), 'foo', 'bar' ) . PHP_EOL;
//=> 'foo'
echo $if( $isGratorThan(10, 20), 'foo', 'bar' ) . PHP_EOL;
//=> 'bar'
```Demo
----$ cd ./examples
$ php -S localhost:5656And open http://localhost:5656 in your browser.
Copyright
---------> Phrogramming - Programming interface for the template engine called PHP
> Copyright (C) 2014 USAMI Kenta
>
> This program is free software: you can redistribute it and/or modify
> it under the terms of the GNU General Public License as published by
> the Free Software Foundation, either version 3 of the License, or
> (at your option) any later version.
>
> This program is distributed in the hope that it will be useful,
> but WITHOUT ANY WARRANTY; without even the implied warranty of
> MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
> GNU General Public License for more details.
>
> You should have received a copy of the GNU General Public License
> along with this program. If not, see .