2019-02-16 06:34:35 +00:00
# ReasonableFramework
2019-06-11 00:14:36 +00:00
![Discord ](https://img.shields.io/discord/359930650330923008.svg )
2019-06-11 00:17:11 +00:00
![View Licence ](https://img.shields.io/github/license/gnh1201/reasonableframework.svg )
2019-06-11 02:49:14 +00:00
![Librapay ](http://img.shields.io/liberapay/receives/catswords.svg?logo=liberapay )
2019-06-11 00:14:36 +00:00
2020-01-21 11:57:57 +00:00
- ReasonableFramework is `RVHM` structured PHP web framework, securely and compatibility
2019-05-09 00:09:38 +00:00
- Prefix code: `RSF` (ReasonableFramework)
2020-01-21 11:58:17 +00:00
- Old prefix code: `VSPF` (Very Simple PHP Framework)
2019-03-15 01:49:27 +00:00
2020-01-28 12:47:01 +00:00
## Donate us (technical support)
2019-03-15 01:49:27 +00:00
- https://www.patreon.com/posts/25380536
2018-02-07 11:30:57 +00:00
2018-12-11 07:02:45 +00:00
## Specification
2019-04-06 12:13:38 +00:00
- Database connection (via PDO, MySQLi (MySQL Improved), MySQL Tranditional, MySQL CLI, Oracle(OCI))
2020-02-05 02:43:12 +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), Model is not required.
2020-02-05 06:21:24 +00:00
- Controllable shared variables: Minimize abuse of global variables (Inspired by the `scope` of AngularJS, and `SharedPreferences` of Android Framework)
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)
2020-01-28 12:47:01 +00:00
- Support critical old browser (old: IE 6 ~ modern: IEs 11)
- Support experience clean & modern PHP environments without hard study.
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 )
2018-03-10 17:15:08 +00:00
2019-06-04 09:46:04 +00:00
## [NEW] Advanced security (only for sponsors)
2019-06-05 03:45:42 +00:00
- CORS, CSRF, XSS, SQL-injection protection is common security, it is free and open-source for everyone.
2019-06-04 12:18:17 +00:00
- Firewall, DDoS protection, and more tools are available only for sponsors. [see details ](https://github.com/gnh1201/reasonableframework/blob/master/SECURITY.md )
2019-06-04 07:12:51 +00:00
2020-02-07 01:29:34 +00:00
## [NEW] Remote Debugging (free for all)
- Remote debugging feature based on RFC3164(The BSD Syslog Protocol), with [Papertrail ](https://www.papertrail.com/ )
## How to use CLI (Command line interface)
2018-07-23 05:01:54 +00:00
```
2020-02-07 01:29:34 +00:00
$ php cli.php --route [route name] --session-id [session ID]
2018-07-23 05:01:54 +00:00
```
2019-03-15 01:03:33 +00:00
## 한국어(Korean)
2020-02-07 01:21:18 +00:00
- **리즈너블(이유있는) 프레임워크**는 거친 웹 개발 환경을 위해 설계된 PHP 프레임워크입니다.
- **레거시 개발**이나 **과학기술연구** 등 특수 목적을 가진 개발에 특화된 설계로 높은 안정성과 보안을 제공합니다.
2020-01-28 12:39:48 +00:00
- PHP를 기반으로 하는 무료 웹 호스팅에서도 원활하게 돌아가도록 지원합니다.
2020-02-07 01:21:18 +00:00
- 객체지향, 모듈러(MVC), 시큐어 코딩 등 현대적인 웹 기술을 모르더라도 **더 견고한** 기준을 제공합니다.
2020-01-28 15:44:49 +00:00
- 리즈너블 프레임워크는 CSRF, XSS, SQL 인젝션 등 기초적인 **보안 위협에 사전 대응**하도록 설계되어 있습니다.
2020-02-07 01:21:18 +00:00
- PHP 버전 4 부터 버전 7까지 다양한 개인 및 기업 **적용 사례**를 보유하고 있습니다.
2020-02-07 01:29:34 +00:00
- [카카오톡 채팅방 ](https://catswords.re.kr/go/kakaotalk )을 통해 실시간 버그 및 보안 이슈 해결이 가능합니다.
2019-03-15 01:06:32 +00:00
## English
2020-02-07 01:21:18 +00:00
- **Reasonable Framework** is a PHP framework designed for rugged web development environments.
2020-02-07 01:23:32 +00:00
- Designed for special purpose development such as **legacy development** or **science and technology research** , it provides high stability and security.
2020-01-28 12:39:48 +00:00
- It also works smoothly on free web hosting based on PHP.
2020-02-07 01:23:58 +00:00
- It provides a **stronger standard** even if you don't know modern web technologies, such as object-oriented, modular (MVC), and secure coding.
2020-02-07 01:24:39 +00:00
- Resonable Framework is designed to **proactively respond to fundamental security threats** such as CSRF, XSS, and SQL injection.
- We have **various enterprise cases** from PHP version 4(legacy) to 7(modern).
2020-02-07 01:29:34 +00:00
- You can quickly resolve bugs and security issues in [our chatting room ](https://catswords.re.kr/go/kakaotalk ).
2020-01-28 12:19:23 +00:00
## Contact us
- support@exts.kr