If you are a
than the default one. No more php coding inside of templates plus the readability and much more:
https://github.com/yiisoft/yii2-twig
Install it using
#php #composer #twig #yii2 #template #template_engine
PHP
programmer and are using Yii2
for your project, I would suggest using the Twig
template engine renderer ratherthan the default one. No more php coding inside of templates plus the readability and much more:
https://github.com/yiisoft/yii2-twig
Install it using
php composer
, first add "yiisoft/yii2-twig": "~2.0.0"
to composer.json
file:composer install
#php #composer #twig #yii2 #template #template_engine
GitHub
GitHub - yiisoft/yii2-twig: Yii 2 Twig extension.
Yii 2 Twig extension. Contribute to yiisoft/yii2-twig development by creating an account on GitHub.
OnePHP
a super simple and super lightweight PHP framework
that works in just a few lines:// index.php
require_once('src/OnePHP/one_framework.php');
$app = new \OnePHP\App();
$app->get('/:name',function( $name ) use ( $app ){//Action
echo "Hello $name";
});
$app->listen();
To install using composer:
composer create-project julces/oneframework
Why
OnePHP
:1- Restful Routes
2- Easy and clean (GET, POST, PUT, DELETE...) Requests management
3- Restful Response with HTTP Status Code and custom Headers
4- PHP native Views
5- No dependencies, add extra libraries only when you need it.
#php #framework #onePHP