canaryphp/canaryphp

Rapid Development Framework for php

v1.0 2019-12-24 06:52 UTC

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

  1. 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 :
  1. Create secondpage.php in : ./example/webroot/secondpage.php
<?php
require dirname(__DIR__).DIRECTORY_SEPARATOR.'index.php';
CanaryPHP\Load::content();
  1. Create secondpageController.php in : ./example/controller/secondpageController.php
<?php
function sayhello(){
    return 'Hello World !';
}
pass('message',sayhello());
  1. Create view for secondpage.php in : ./example/template/default/view/secondpage.php
<h1>get('message')</h1>
  • Edit home page Content :
  1. Edit file in : ./example/controller/indexController.php
  2. Edit view file in : ./example/template/default/view/index.php
  3. show page content in : localhost/example/secondpage.php

NOTICE

  • vendor folder and the vendor/autoload.php script are generated by composer ,there are not part from CanaryPHP