reasonableframework/README.md

62 lines
2.2 KiB
Markdown
Raw Normal View History

2018-02-07 11:29:23 +00:00
# Reasonable PHP Framework
2018-03-15 05:07:42 +00:00
- Reasonable Framework is PHP framework for critical legacy web environments.
2018-02-07 11:30:57 +00:00
- Old version name: Very Simple PHP Framework (VSPF)
2017-12-17 20:36:55 +00:00
## Supported feature
2017-12-17 20:36:36 +00:00
- Database connection (via PDO)
- URL Route, Route Controller
- Sperated View
- Model, or somethings is your freedom!
2017-12-22 18:45:53 +00:00
## Compatible
2017-12-22 18:46:12 +00:00
- Tested in PHP 5.3.3
- Tested in PHP 7.x
2017-12-22 18:45:53 +00:00
2017-12-17 20:36:55 +00:00
## How to use
2017-12-17 20:36:36 +00:00
- Extract or clone this project to your shared web hosting.
2017-12-19 02:30:19 +00:00
- You can use and intergrate all of PHP packages without Composer and Additional PHP Extensions! (supported autoloader)
2017-12-17 20:37:38 +00:00
- You can use and rewrite by route feature! without heavy frameworks!
2017-12-17 20:41:51 +00:00
- 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.
2017-12-17 20:36:36 +00:00
- Enjoy it!
2018-03-21 01:20:37 +00:00
## Roadmap: Support legacy
2018-03-21 01:14:46 +00:00
- Support critical lagacy web server (old: PHP 4.x ~ modern: 7.x)
- Support critical old browser (old: IE 6 ~ modern: IE 11)
2018-02-26 05:24:18 +00:00
2018-04-14 16:48:55 +00:00
## Map of structure
![Map of ResaonableFramework structure](https://github.com/gnh1201/reasonableframework/raw/master/assets/img/reasonableframework.jpg)
2018-04-06 09:06:34 +00:00
2018-03-21 01:11:37 +00:00
2017-12-17 20:36:55 +00:00
## Contact me
2018-02-07 11:40:39 +00:00
- Go Namhyeon <gnh1201@gmail.com>
2018-03-09 02:56:46 +00:00
- Website: https://exts.kr/go/home
2018-02-09 09:09:19 +00:00
2018-03-18 19:10:34 +00:00
## Example
2018-03-10 17:15:27 +00:00
```
2018-03-10 17:15:08 +00:00
<?php
2018-03-18 18:21:07 +00:00
loadHelper("allreporting");
2018-03-10 17:15:08 +00:00
$copyright = "";
$lines = read_file_by_line("./storage/copyright.txt");
foreach($lines as $line) {
$copyright .= "<p>" . $line . "</p>";
}
$data = array(
"copyright" => $copyright
);
2018-03-10 17:15:54 +00:00
renderView('templates/default/header');
2018-03-10 17:15:08 +00:00
renderView('view_copyright', $data);
2018-03-10 17:15:54 +00:00
renderView('templates/default/footer');
?>
2018-03-10 17:15:27 +00:00
```
2018-03-10 17:15:08 +00:00
2018-02-09 09:09:19 +00:00
## Korean
2018-02-09 11:26:23 +00:00
- Resonable PHP Framework(이유있는 PHP 프레임워크)는 한국의 웹 개발 환경에 적합한 PHP 프레임워크입니다.
- Composer를 포함한 개발 보조 도구와, 별도의 플러그인 설치가 제한되어 주류 PHP 프레임워크가 사용 불가능한 환경에 적합합니다.
2018-03-18 19:21:52 +00:00
- Resonable PHP Framework는 CSRF, XSS, SQL Injection 보안 조치를 기본적으로 가지고 있습니다.
2018-02-09 11:26:23 +00:00
- 한국에서 사용되는 각종 CMS와 API와 연동되어 한국 환경에서 사용 빈도가 높은 구현 유형을 작성하는데 적합합니다.
2018-02-09 09:09:19 +00:00
- MVC 모델과 유사하지만 기존 개발 스킬로도 사용할 수 있도록 더 유연한 모델을 가지고 있습니다.