reasonableframework/README.md

66 lines
3.8 KiB
Markdown
Raw Normal View History

2019-02-16 06:34:35 +00:00
# ReasonableFramework
2019-03-12 01:42:40 +00:00
- ReasonableFramework is `RVHM` structured PHP Web Framework, Securely, Compatibility.
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-03-15 01:10:33 +00:00
- RVHM Structure: `R` is Route (like as `controller`), `V` is View, `H` is Helper (like as `import` on Python/Go/NodeJS), `M` is Model and implemented with `KV bind`(like as `Map` data structure), Modal is optional.
2019-03-12 01:34:14 +00:00
- WebApp Sandbox: You can use legacy apps without modifying the source code.
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:44:40 +00:00
- You can intergrate all of PHP projects (linear, modular (ex. `autoloader`), 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
2019-02-16 09:23:17 +00:00
2. set up database configuration: `/storage/config/database.ini.php`
2019-02-16 09:22:10 +00:00
3. touch(make new file): `/route/example.php`
2019-02-26 02:59:49 +00:00
4. go to `http://[base_url]/?route=example` or `http://[base_url]/example/`(if set `.htaccess`) in your web browser.
2018-06-11 05:02:46 +00:00
5. enjoy it.
2019-02-19 17:09:55 +00:00
## Examples
2019-02-19 17:12:13 +00:00
- [REST API Integration (Naver Papago Translation REST API)](https://gist.github.com/gnh1201/081484e6f5e10bd3be819093ba5f49c8)
2019-02-19 17:12:40 +00:00
- [Payment Gateway Integration (KCP)](https://github.com/gnh1201/reasonableframework/blob/master/route/orderpay.pgkcp.php)
2019-02-19 17:13:56 +00:00
- [Gnuboard CMS Integration (version 4, version 5)](https://github.com/gnh1201/reasonableframework/blob/master/route/api.gnuboard.php)
2018-03-10 17:15:08 +00:00
2019-02-19 17:16:18 +00:00
## How to use CLI
2018-07-23 05:01:54 +00:00
```
2018-07-23 05:03:43 +00:00
$ php cli.php --route [route name]
2018-07-23 05:01:54 +00:00
```
2019-03-15 01:03:33 +00:00
## 한국어(Korean)
2018-02-09 11:26:23 +00:00
- Resonable PHP Framework(이유있는 PHP 프레임워크)는 한국의 웹 개발 환경에 적합한 PHP 프레임워크입니다.
2019-03-15 01:04:30 +00:00
- 일부 북미, 유럽권 무료 웹 호스팅에서도 안정적인 운영이 가능합니다.
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와 연동되어 한국 환경에서 사용 빈도가 높은 구현 유형을 작성하는데 적합합니다.
2019-03-15 01:03:46 +00:00
- RVHM 구조는 MVC 구조와 함께 사용하실 수 있으며, 기존 개발 스킬로도 사용할 수 있도록 더 유연한 구조를 가지고 있습니다.
2019-03-15 01:06:32 +00:00
## English
- It is stable in some North America and Europe free web hosting.
- Ideal for environments where separate development aids, including Composer, PHP plug-ins, and the PHP framework are not available.
- Ensures a lifecycle similar to that of an object-oriented (OOP) training for development team members.
- The Resonable PHP Framework has CSRF, XSS, and SQL Injection security measures as defaults.
- Compatible with various CMS and API used with REST API, it is suitable to create implementation type that is frequently used in Korean environment.
- RVHM structure can be used with MVC structure, and has more flexible structure to use as existing development skill.