geangeowle / chronos-php
Very Small Lite Framework for PHP
dev-master
2018-11-16 13:55 UTC
Requires
- php: >=5.6
Requires (Dev)
- friendsofphp/php-cs-fixer: ^2.5
- php-coveralls/php-coveralls: ^2.0
- phpunit/phpunit: ^5.7
This package is auto-updated.
Last update: 2023-09-17 08:00:11 UTC
README
Very Small Lite Framework for PHP
💥 Under development! 💥
Setup
To run the library, follow these steps:
- Run
composer install
- Run
npm install
Setup for testing
To test the library, follow these steps:
- Copy file
phpunit.xml.dist
tophpunit.xml
- Copy file
.php_cs.dist
to.php_cs
- Run
./vendor/bin/phpunit
from project directory
Setup Twig Template Engine
To enable and use twig template engine follow these steps:
- Access the file boot at
app/Config/boot
- Change
Configure::write('App.RenderEngine', 'Default');
toConfigure::write('App.RenderEngine', 'Twig');
- Run
composer require "twig/twig:^2.0"
to install the twig package - On
app/Views
change all file extensions from .php to .html and that's it. Now you can use twig as you would normally use