reasonableframework/README.md

76 lines
2.8 KiB
Markdown
Raw Normal View History

2019-02-16 06:34:35 +00:00
# ReasonableFramework
- ReasonableFramework is PHP framework for make solid and secure web development.
2018-02-07 11:30:57 +00:00
- Old version name: Very Simple PHP Framework (VSPF)
2018-12-11 07:02:45 +00:00
## Specification
2018-12-19 05:40:32 +00:00
- Database connection (via PDO, MySQLi (MySQL Improved), MySQL Tranditional, Oracle(OCI))
2019-02-16 06:42:05 +00:00
- R-H-V Structure: `R` is Route (like as controller), `H` is Helper (like as `import` on Python or Go or NodeJS), `V` is View, Model is optional.
2017-12-17 20:36:36 +00:00
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
2018-12-11 07:02:45 +00:00
- Extract or clone this project to your (restrictive) shared web hosting.
2019-02-16 06:39:13 +00:00
- You can intergrate all of PHP projects (linear, modular, or others) without complicated extensions.
2019-02-16 06:39:31 +00:00
- You can write your code and rewrite by `route` parameter without heavy framework. (like as `controller`)
2019-02-16 06:39:13 +00:00
- You can add your custom `ini.php` configuration file in `config` directory.
2017-12-17 20:36:36 +00:00
- Enjoy it!
2018-04-14 16:48:55 +00:00
## Map of structure
2019-02-16 06:39:13 +00:00
![Map of structure](https://github.com/gnh1201/reasonableframework/raw/master/assets/img/reasonableframework.jpg)
2018-04-06 09:06:34 +00:00
2018-04-14 16:50:26 +00:00
## 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.
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-06-11 05:02:46 +00:00
## 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.
2018-07-23 05:01:54 +00:00
## Website example
2018-03-10 17:15:27 +00:00
```
2018-03-10 17:15:08 +00:00
<?php
2018-08-24 14:57:55 +00:00
if(!defined("_DEF_RSF_")) set_error_exit("do not allow access");
2018-05-30 16:37:46 +00:00
loadHelper("string.utl");
2018-03-18 18:21:07 +00:00
2018-05-30 16:37:46 +00:00
$copyright = read_storage_file("copyright.txt", array(
"storage_type" => "terms"
));
$lines = explode_by_line($copyright);
2018-03-10 17:15:08 +00:00
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-07-23 05:01:54 +00:00
## CLI mode example
```
2018-07-23 05:03:43 +00:00
$ php cli.php --route [route name]
2018-07-23 05:01:54 +00:00
```
2018-02-09 09:09:19 +00:00
## Korean
2018-02-09 11:26:23 +00:00
- Resonable PHP Framework(이유있는 PHP 프레임워크)는 한국의 웹 개발 환경에 적합한 PHP 프레임워크입니다.
2018-08-19 14:18:09 +00:00
- Composer를 포함한 별도의 개발 보조 도구, PHP 플러그인, PHP 프레임워크가 사용 불가능한 환경에 적합합니다.
2018-08-19 14:17:24 +00:00
- 개발 팀원을 대상으로 객체지향(OOP) 교육이 이루어지지 않아도, 그에 준하는 생존주기(Life cycle)를 보장합니다.
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 모델과 유사하지만 기존 개발 스킬로도 사용할 수 있도록 더 유연한 모델을 가지고 있습니다.