Skip to content

Commit 5f051dc

Browse files
committed
updated middleware
0 parents  commit 5f051dc

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

68 files changed

+4479
-0
lines changed

.editorconfig

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,12 @@
1+
# EditorConfig is awesome: https://EditorConfig.org
2+
3+
# top-most EditorConfig file
4+
root = true
5+
6+
[*]
7+
indent_style = tab
8+
indent_size = 3
9+
end_of_line = crlf
10+
charset = utf-8
11+
trim_trailing_whitespace = false
12+
insert_final_newline = false

.env

Lines changed: 19 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,19 @@
1+
APP_NAME=PhpSlides
2+
APP_VERSION=1.2.2
3+
APP_SERVER=localhost
4+
APP_URL=http://localhost
5+
APP_DEBUG=true
6+
7+
DB_CONN=mysql
8+
DB_PORT=3306
9+
DB_HOST=0.0.0
10+
DB_USER=root
11+
DB_PASS=root
12+
DB_BASE=php_slides
13+
14+
SMTP_HOST=smtp.example.com
15+
SMTP_PORT=587
16+
SMTP_USERNAME=your_email@example.com
17+
SMTP_PASSWORD=your_password
18+
SMTP_FROM=your_email@example.com
19+
SMTP_FROM_NAME='Your SMTP_FROM_NAME'

.env.example

Lines changed: 19 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,19 @@
1+
APP_NAME=PhpSlides
2+
APP_VERSION=1.2.2
3+
APP_SERVER=localhost
4+
APP_URL=http://localhost
5+
APP_DEBUG=true
6+
7+
DB_CONN=mysql
8+
DB_PORT=3306
9+
DB_HOST=0.0.0
10+
DB_USER=root
11+
DB_PASS=root
12+
DB_BASE=php_slides
13+
14+
SMTP_HOST=smtp.example.com
15+
SMTP_PORT=587
16+
SMTP_USERNAME=your_email@example.com
17+
SMTP_PASSWORD=your_password
18+
SMTP_FROM=your_email@example.com
19+
SMTP_FROM_NAME='Your SMTP_FROM_NAME'

.gitattributes

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
/.github export-ignore
2+
/ChangeLog.md export-ignore
3+
/.gitattributes export-ignore
4+
/.editorconfig export-ignore
5+
/php_slides.code-workspace export-ignore

.github/FUNDING.yml

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,13 @@
1+
# These are supported funding model platforms
2+
3+
github: # Replace with a GitHub sponsor username
4+
patreon: # Replace with a single Patreon username
5+
open_collective: # Replace with a single Open Collective username
6+
ko_fi: 'dconco'
7+
tidelift: # Replace with a single Tidelift platform-name/package-name e.g., npm/babel
8+
community_bridge: # Replace with a single Community Bridge project-name e.g., cloud-foundry
9+
liberapay: # Replace with a single Liberapay username
10+
issuehunt: # Replace with a single IssueHunt username
11+
otechie: # Replace with a single Otechie username
12+
lfx_crowdfunding: # Replace with a single LFX Crowdfunding project-name e.g., cloud-foundry
13+
custom: ['https://www.buymeacoffee.com/dconco']

.gitignore

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,12 @@
1+
/node_modules
2+
/public/build
3+
/public/storage
4+
/storage/*.key
5+
/vendor
6+
/.idea
7+
/.vscode
8+
.log
9+
access_log
10+
composer.lock
11+
composer.phar
12+
error.log

.htaccess

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
# Don't change this settings, instead edit the phpslides.config.json
2+
RewriteEngine On
3+
4+
# Accept Authorization Header
5+
RewriteCond %{HTTP:Authorization} ^(.+)$
6+
RewriteRule .* - [E=HTTP_AUTHORIZATION:%{HTTP:Authorization}]
7+
8+
# Redirect all folders and files in the root project to routes.php
9+
RewriteCond %{REQUEST_FILENAME} !-d|-d
10+
RewriteCond %{REQUEST_FILENAME} !-f|-f
11+
RewriteRule ^(.*) src/autoload.php?uri=$1 [QSA,L]

ChangeLog.md

Lines changed: 29 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,29 @@
1+
# Changes Logs v1.2.2
2+
3+
## Tue, July 02 2024
4+
5+
- Added `asset()` function in `Functions.php` file, and can distinguish to start path from relative path or root path
6+
- `RouteController.php` in `slides_include()` function.
7+
- Removed `::view` and `::root` string and it's functions.
8+
- Added `__ROOT__` constant
9+
- Updated slides_include file to auto clone a file to a generated file.
10+
- Can now use normal relative path in `slides_include()` function.
11+
- Improved in Route Map function, can now use `name()` method in any position.
12+
- Updated Request URL to match both uppercase and lowercase
13+
- Renamed `/routes/route.php` to `/routes/web.php`
14+
- Added named route function to normal route method `POST`, `GET`, `PATCH`, `PUT`, `DELETE`, `VIEW`.
15+
16+
## Tue, July 09 2024
17+
18+
- Change all file names to CamelCase
19+
- Added configuration for Console
20+
- Added Console template for Controller, ApiController, Middleware.
21+
22+
## Thursday, July 11 2024
23+
24+
- Added Authorization method for getting Basic and Bearer token.
25+
26+
## Saturday, July 13 2024
27+
28+
- Completed API Controller function.
29+
- Completed middleware function.

LICENSE

Lines changed: 21 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,21 @@
1+
MIT License
2+
3+
Copyright (c) 2023 Dave Conco - PhpSlides
4+
5+
Permission is hereby granted, free of charge, to any person obtaining a copy
6+
of this software and associated documentation files (the "Software"), to deal
7+
in the Software without restriction, including without limitation the rights
8+
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
9+
copies of the Software, and to permit persons to whom the Software is
10+
furnished to do so, subject to the following conditions:
11+
12+
The above copyright notice and this permission notice shall be included in all
13+
copies or substantial portions of the Software.
14+
15+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
16+
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
17+
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
18+
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
19+
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
20+
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
21+
SOFTWARE.

0 commit comments

Comments
 (0)