├── .editorconfig
├── .github
├── ISSUE_TEMPLATE
│ ├── bug_report.md
│ └── feature_request.md
└── workflows
│ ├── JS-Lint.yml
│ └── PHP-Lint.yml
├── .gitignore
├── .htaccess
├── LICENSE.md
├── README.md
├── composer.json
├── composer.lock
├── package-lock.json
├── package.json
├── post-install.php
├── public
├── .htaccess
├── index.php
└── www
│ ├── .eslintrc.js
│ ├── dist
│ ├── console.css
│ ├── console.js
│ ├── google_icons.css
│ ├── jquery.min.js
│ └── src.css
│ └── src
│ ├── console
│ ├── console.css
│ └── console.js
│ ├── images
│ ├── logo.png
│ └── welcome
│ │ ├── 1.PNG
│ │ ├── 2.PNG
│ │ ├── 3.PNG
│ │ └── 4.PNG
│ └── site
│ └── site.css
├── src
├── common
│ ├── controller
│ │ └── CommonController.php
│ └── view
│ │ ├── Console.php
│ │ ├── Footer.php
│ │ ├── Header.php
│ │ └── PageNotFoundView.php
├── product
│ ├── controller
│ │ └── ProductController.php
│ ├── model
│ │ └── ProductModel.php
│ └── view
│ │ └── ProductDescriptionView.php
└── welcome
│ ├── controller
│ └── WelcomeController.php
│ └── view
│ └── WelcomeView.php
└── system
├── bootstrap.php
├── config
├── config.php
├── environment.php
├── ini.php
└── routes.php
├── engine
├── AutoLoader.php
├── Base.php
├── Container.php
├── Router.php
└── SecureSession.php
├── logs
└── .gitkeep
└── services
├── Config.php
├── Console.php
├── Database.php
├── Logger.php
├── Output.php
├── Session.php
└── Util.php
/.editorconfig:
--------------------------------------------------------------------------------
1 | root = true
2 |
3 | [**.php]
4 | charset = utf-8
5 | end_of_line = lf
6 | indent_size = 4
7 | indent_style = space
8 | trim_trailing_whitespace = true
9 | insert_final_newline = true
10 |
11 | [*.{js,html,css}]
12 | charset = utf-8
13 | end_of_line = lf
14 | indent_size = 2
15 | indent_style = space
16 | trim_trailing_whitespace = true
17 | insert_final_newline = true
18 |
19 | [*]
20 | charset = utf-8
21 | end_of_line = lf
--------------------------------------------------------------------------------
/.github/ISSUE_TEMPLATE/bug_report.md:
--------------------------------------------------------------------------------
1 | ---
2 | name: Bug report
3 | about: Bug title
4 | title: ''
5 | labels: ''
6 | assignees: ''
7 |
8 | ---
9 |
10 | **Describe the bug**
11 | A clear and concise description of what the bug is.
12 |
13 | **To Reproduce**
14 | Steps to reproduce the behavior:
15 | 1. Go to '...'
16 | 2. Click on '....'
17 | 3. Scroll down to '....'
18 | 4. See error
19 |
20 | **Expected behavior**
21 | A clear and concise description of what you expected to happen.
22 |
23 | **Enviroment**
24 | - OS: [e.g. iOS]
25 | - Browser [e.g. chrome, safari]
26 | - PHP Version [e.g. 22]
27 | - Light-PHP Version:
28 |
29 | **Additional context**
30 | Add any other context about the problem here.
31 |
--------------------------------------------------------------------------------
/.github/ISSUE_TEMPLATE/feature_request.md:
--------------------------------------------------------------------------------
1 | ---
2 | name: Feature request
3 | about: Suggest an idea for this project
4 | title: ''
5 | labels: ''
6 | assignees: ''
7 |
8 | ---
9 |
10 | **Is your feature request related to a problem? Please describe.**
11 | A clear and concise description of what the problem is. Ex. I'm always frustrated when [...]
12 |
13 | **Describe the solution you'd like**
14 | A clear and concise description of what you want to happen.
15 |
16 | **Describe alternatives you've considered**
17 | A clear and concise description of any alternative solutions or features you've considered.
18 |
19 | **Additional context**
20 | Add any other context or screenshots about the feature request here.
21 |
--------------------------------------------------------------------------------
/.github/workflows/JS-Lint.yml:
--------------------------------------------------------------------------------
1 | name: JS CI
2 |
3 | on: [push]
4 |
5 | jobs:
6 | build:
7 |
8 | runs-on: ubuntu-latest
9 |
10 | strategy:
11 | matrix:
12 | node-version: [10.x]
13 |
14 | steps:
15 | - uses: actions/checkout@v1
16 | - name: Use Node.js ${{ matrix.node-version }}
17 | uses: actions/setup-node@v1
18 | with:
19 | node-version: ${{ matrix.node-version }}
20 | - name: npm install, lint
21 | run: |
22 | cd src/view/www
23 | npm install
24 | npm run lint
25 | env:
26 | CI: true
27 |
--------------------------------------------------------------------------------
/.github/workflows/PHP-Lint.yml:
--------------------------------------------------------------------------------
1 | name: PHP CI
2 |
3 | on: [push]
4 |
5 | jobs:
6 | build:
7 |
8 | runs-on: ubuntu-latest
9 |
10 | steps:
11 | - uses: actions/checkout@v1
12 |
13 | - name: Validate composer.json and composer.lock
14 | run: composer validate
15 |
16 | - name: Install Lint
17 | run: composer install --prefer-dist --no-progress --no-suggest
18 |
19 | - name: Lint code
20 | run: composer lint
21 |
--------------------------------------------------------------------------------
/.gitignore:
--------------------------------------------------------------------------------
1 | # Editors
2 | /.idea/*
3 | /.vscode/*
4 |
5 | # Libraries
6 | /system/composer/vendor/*
7 | /node_modules/*
8 |
9 | # logs
10 | /system/logs/*
--------------------------------------------------------------------------------
/.htaccess:
--------------------------------------------------------------------------------
1 | Options +FollowSymlinks
2 |
3 | # Block all files
4 |
2 |
3 |
4 |
5 |
6 |
7 | Micro PHP framework.
8 |
9 | - Explore the DOCS -
10 |
11 |
12 |
13 |
14 |
15 |
16 |
error" . $trace_message["message"] . "
"; 45 | } 46 | if ($trace_message["type"] === "warning") { 47 | echo "warning" . $trace_message["message"] . "
"; 48 | } 49 | if ($trace_message["type"] === "query") { 50 | echo "dns" . $trace_message["message"] . "
"; 51 | } 52 | if ($trace_message["type"] === "debug_info") { 53 | if (gettype($trace_message["message"]) === "array" || gettype($trace_message["message"]) === "object") { 54 | echo ""; 55 | print_r($trace_message["message"]); 56 | echo ""; 57 | } else { 58 | echo " "; 59 | } 60 | } 61 | } 62 | ?> 63 |