ReasonableFramework is RVHM structured PHP framework. aka, RSF, VSPF, C-2020-018490
Go to file
2018-07-23 14:03:25 +09:00
assets Create style.css 2018-07-01 17:10:44 +09:00
helper Update webpagetool.php 2018-07-23 12:16:38 +09:00
route Create assetproxy.php 2018-06-22 11:14:03 +09:00
storage Rename storage/copyright.txt to storage/terms/copyright.txt 2018-05-31 01:08:50 +09:00
system Update database.php 2018-07-03 10:48:10 +09:00
vendor Create is_email.php 2018-03-21 11:11:53 +09:00
view Update welcome.php 2018-07-23 13:59:53 +09:00
cli.php Update and rename cil.php to cli.php 2018-07-23 14:03:03 +09:00
index.php Update index.php 2018-05-27 02:43:47 +09:00
KOREAN.MD Update KOREAN.MD 2018-07-22 23:41:22 +09:00
README.md Update README.md 2018-07-23 14:01:54 +09:00
VERSION.MD Update VERSION.MD 2018-03-09 22:00:19 +09:00
welcome.bat Update welcome.bat 2018-07-23 14:03:15 +09:00
welcome.sh Update welcome.sh 2018-07-23 14:03:25 +09:00

Reasonable PHP Framework

  • Reasonable Framework is PHP framework for critical legacy web environments.
  • Old version name: Very Simple PHP Framework (VSPF)

Supported feature

  • Database connection (via PDO)
  • URL Route, Route Controller
  • Sperated View
  • Model, or somethings is your freedom!

Compatible

  • Tested in PHP 5.3.3
  • Tested in PHP 7.x

How to use

  • Extract or clone this project to your shared web hosting.
  • You can use and intergrate all of PHP packages without Composer and Additional PHP Extensions! (supported autoloader)
  • You can use and rewrite by route feature! without heavy frameworks!
  • You can write your back-end code in route. (same as controller)
  • You can config database if you add your custom ini file in config directory.
  • Enjoy it!

Map of structure

Map of ResaonableFramework structure

Roadmap: Support legacy

  • Support critical legacy web server (old: PHP 4.x ~ modern: 7.x)
  • Support critical old browser (old: IE 6 ~ modern: IE 11)
  • Do Clean & Modern PHP without hard studies.

Contact me

Quick Start

  1. git clone https://github.com/gnh1201/reasonableframework.git
  2. set up database configuration: storage/config/database.ini
  3. make route/example.php
  4. go to [base_url]/?route=example
  5. enjoy it.

Website example

<?php
loadHelper("string.utl");

$copyright = read_storage_file("copyright.txt", array(
    "storage_type" => "terms"
));
$lines = explode_by_line($copyright);
foreach($lines as $line) {
    $copyright .= "<p>" . $line . "</p>";
}

$data = array(
    "copyright" => $copyright
);

renderView('templates/default/header');
renderView('view_copyright', $data);
renderView('templates/default/footer');
?>

CLI mode example

$ php cil.php --route [route name]

Korean

  • Resonable PHP Framework(이유있는 PHP 프레임워크)는 한국의 웹 개발 환경에 적합한 PHP 프레임워크입니다.
  • Composer를 포함한 개발 보조 도구와, 별도의 플러그인 설치가 제한되어 주류 PHP 프레임워크가 사용 불가능한 환경에 적합합니다.
  • Resonable PHP Framework는 CSRF, XSS, SQL Injection 보안 조치를 기본적으로 가지고 있습니다.
  • 한국에서 사용되는 각종 CMS와 API와 연동되어 한국 환경에서 사용 빈도가 높은 구현 유형을 작성하는데 적합합니다.
  • MVC 모델과 유사하지만 기존 개발 스킬로도 사용할 수 있도록 더 유연한 모델을 가지고 있습니다.