Skip to content

naveenroy001/staticphpframework

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

4 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Static PHP Framework

Small Static PHP framework for your small needs

Installation

git clone https://github.com/naveenroy001/staticphpframework.git

Create Pages

Goto pages folder create your pages here

session and database is already connected just use here directly.

Create Routes

Goto system/route file write your routes here

$route['/'] = "home";  // here home is by default path for pages/home.php
$route['aboutus'] = "about"; // here about is by default path for `pages/about.php`

For use Post method

$route['someaction:POST'] = "actions/someaction";  
//here actions/someaction is by default path for pages/actions/someaction.php

Helpers

For use root url use <?= base_url; ?>

also you can edit or add globle variable by edit on system/core.php

define('base_url', $actual_link);				//url using
define('css_url', base_url . '/assets/css');
define('js_url', base_url . '/assets/js');
define('img_url', base_url . '/assets/img');

if you are using xampp under the folder htdocs/yourprojectfolder then edit system/core.php and uncomment the below line

//$actual_link = $actual_link . "/" . $req;

to

$actual_link = $actual_link . "/" . $req;

Contributing

Pull requests are welcome. For major changes, please open an issue first to discuss what you would like to change.

Please make sure to update tests as appropriate.

License

MIT

Author

Naveen Roy

About

Small Static PHP framework for all your small needs

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published