canaryphp / canaryphp
Rapid Development Framework for php
v1.0
2019-12-24 06:52 UTC
Requires
- php: >=5.6.0
- canaryphp/canaryphptools: ^1.0
Requires (Dev)
- phpunit/phpunit: ^4.8
Suggests
- canaryphp/canaryphptools: Use some necessary properties
This package is auto-updated.
Last update: 2024-04-24 17:00:45 UTC
README
Build Fast your project
Classes Feuture
- Classes for stability
How to Install
- Availlable only with Composer : Command :
composer require canaryphp/canaryphp
composer.json
{ "require":{ "canaryphp/canaryphp" } }
- After install read :
CanaryPHP START.md
: START.md
Examples
- Create Your first page :
- Create secondpage.php in :
./example/webroot/secondpage.php
<?php require dirname(__DIR__).DIRECTORY_SEPARATOR.'index.php'; CanaryPHP\Load::content();
- Create secondpageController.php in :
./example/controller/secondpageController.php
<?php function sayhello(){ return 'Hello World !'; } pass('message',sayhello());
- Create view for secondpage.php in :
./example/template/default/view/secondpage.php
<h1>get('message')</h1>
- Edit home page Content :
- Edit file in :
./example/controller/indexController.php
- Edit view file in :
./example/template/default/view/index.php
- show page content in :
localhost/example/secondpage.php
NOTICE
vendor
folder and thevendor/autoload.php
script are generated by composer ,there are not part from CanaryPHP