Skip to content
Merged

V4 #496

Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
83 commits
Select commit Hold shift + click to select a range
c77d887
core: Update CI scripts
Apr 9, 2021
73c9ab0
core: Update CI scripts
Apr 9, 2021
1e81da2
refactor: simplify entry point
Apr 9, 2021
fcb6dff
refactor: simplify start function - moving responsibility to RequestH…
Jun 15, 2021
242b554
refactor: simplify lifecycle class with better documentation
Jun 17, 2021
fbd2e15
refactor: all lifecycle responsibility taken away from Request - clos…
Jun 17, 2021
896a41f
add todos
Jun 17, 2021
806f709
refactor: remove all redundant code
Jun 27, 2021
77153d1
build: update dependencies
Jun 27, 2021
3508ea3
feature: default router
Jun 27, 2021
73a1eb2
feature: default config
Jun 27, 2021
aaf8f46
refactor: simplify lifecycle
Jun 27, 2021
6bb0997
refactor: split view into HTML/Null
Jun 27, 2021
6333666
refactor: remove old lifecycle functions
Jun 27, 2021
bd19dbc
refactor: tidy up stan feedback
Jun 27, 2021
daa54c2
wip: improving v4 routing
Jul 16, 2021
03a3e4a
build: upgrade to DOM v3 RC 1
Aug 31, 2021
07ad5b4
feature: expand DOM components
Aug 31, 2021
9e77b28
tweak: remove commented code
Aug 31, 2021
90de080
build: upgrade to stable versions
Sep 15, 2021
b8f8ff2
build: upgrade to stable version of logger
Sep 21, 2021
3bd23be
build: raise minimum stability
Sep 21, 2021
fb40c6a
feature: handle modular content
Sep 21, 2021
940f83f
build: require database
Sep 23, 2021
8782f79
feature: database in the service container
Sep 24, 2021
8f9bbd9
config: add default binaries for webpack/sass
Sep 28, 2021
323645e
config: remove build binaries
Sep 28, 2021
cdd6223
build: require phpgt/sync
Sep 28, 2021
f42bc1a
build: update default filename for es6 module packing
Sep 28, 2021
dd06666
wip: remove uri filter
Oct 1, 2021
0a48d18
wip: add dynamic path to service container
Oct 1, 2021
be97913
wip: lazy load database
Oct 1, 2021
72f16c6
wip: refactor service container
Oct 2, 2021
c35d93e
wip: autoload project classes
Oct 2, 2021
c600511
wip: call project service loader
Oct 2, 2021
100d501
Revert "wip: remove uri filter"
Oct 2, 2021
99cd7ea
wip: do not filter out dynamic files
Oct 2, 2021
3da05f5
build: stable release of routing
Oct 2, 2021
a519ba5
build: new release of domtemplate
Oct 2, 2021
4575510
wip: remove debugging
Oct 2, 2021
c4cb695
tidy: remove unused imports
Oct 12, 2021
76b83d9
wip: clean bind attributes
Oct 12, 2021
42a1b1b
wip: pass default database collation/charset
Oct 12, 2021
153674a
wip: improve nested dynamic routing
Oct 13, 2021
675a77b
wip: replace hyphens in do actions
Oct 13, 2021
b0ab9fc
wip: output path to body class
Oct 14, 2021
274b2b8
wip: expose request uri as service
Oct 15, 2021
9140d41
wip: differentiate between uri/dir in body class
Oct 15, 2021
aa60c18
wip: set request uri in service container
Oct 24, 2021
b9e4f78
wip: working on csrf
Oct 24, 2021
a4e9278
wip: call go_after
Nov 5, 2021
45a4c30
wip: expose server as service
Nov 5, 2021
6fb26ca
wip: expose config as service
Nov 5, 2021
0c03c1a
wip: update session
Nov 5, 2021
6857d8d
wip: update routing dependency
Nov 5, 2021
44bd904
build: upgrade dependencies
Nov 9, 2021
ef26dc7
wip: if there is no session yet, pass null to suppress warning
Nov 9, 2021
9d00fd3
wip: improve routing
Nov 9, 2021
1877f71
build: update dependencies
Nov 9, 2021
e4d9026
router: sort headers and footers to allow nesting
Nov 12, 2021
34abd3d
wip: force all URLs to end with a slash
Nov 12, 2021
73860b2
wip: commend redirection
Nov 12, 2021
97363cd
build: update deps
Nov 12, 2021
cfad978
tweak: rename modular->partial
Nov 15, 2021
d229f2e
tweak: rename bindAttributes->datasets
Nov 15, 2021
d940d8c
tweak: remove autoloader debug
Nov 23, 2021
ff2e0b7
tweak: pass dependencies to table binder
Nov 24, 2021
6379335
simplify: routing header/footer ordering
Nov 26, 2021
0566755
feature: output dynamic URLs to the body tag
Nov 28, 2021
e7fb453
tweak: enforce current working dir
Dec 1, 2021
3a637f4
tweak: suppress comparison warning (for introducing custom error hand…
Jan 26, 2022
4ae7bf5
tweak: pass exceptions to custom error handler
Jan 26, 2022
7d1dc6c
check if init.php exists before including
Jan 27, 2022
46f5b53
build: upgrade dependencies
Jan 30, 2022
053df4a
Merge remote-tracking branch 'origin/v4' into v4
Jan 30, 2022
985fd9f
build: remove behat dependencies
Jan 31, 2022
1b855b7
routing: default router matches page-route by default
Feb 2, 2022
dc55ec2
build: bump dependencies
Feb 2, 2022
0316a04
hotfix: fix typo in routing header matcher
Feb 2, 2022
76b57a7
Retain query string on redirect
Feb 16, 2022
99cc2f5
Merge branch 'master' of github.com:/PhpGt/WebEngine into v4
Feb 21, 2022
f87ab23
build: upgrade ci
Feb 21, 2022
ab90376
build: upgrade deps
Feb 21, 2022
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 2 additions & 0 deletions .github/FUNDING.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
# These are supported funding model platforms
github: [phpgt]
42 changes: 31 additions & 11 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,44 +3,64 @@ name: CI
on: [push]

jobs:
build:
composer:
runs-on: ubuntu-latest

steps:
- uses: actions/checkout@v2
- uses: php-actions/composer@v2
- name: Upload build for test runner

- name: Cache Composer dependencies
uses: actions/cache@v2
with:
path: /tmp/composer-cache
key: ${{ runner.os }}-${{ hashFiles('**/composer.lock') }}

- uses: php-actions/composer@v6

- name: Archive build
run: mkdir /tmp/github-actions/ && tar -cvf /tmp/github-actions/build.tar ./

- name: Upload build archive for test runners
uses: actions/upload-artifact@v2
with:
name: build-artifact
path: ./
path: /tmp/github-actions

phpunit:
runs-on: ubuntu-latest
needs: [build]
needs: [composer]

steps:
- uses: actions/download-artifact@v2
with:
name: build-artifact
path: ./
path: /tmp/github-actions

- name: Extract build archive
run: tar -xvf /tmp/github-actions/build.tar ./

- name: PHP Unit tests
uses: php-actions/phpunit@v9
uses: php-actions/phpunit@v3
with:
php_version: 8.0
php_extensions: xdebug
configuration: test/phpunit/phpunit.xml
bootstrap: vendor/autoload.php

phpstan:
runs-on: ubuntu-latest
needs: [build]
needs: [composer]

steps:
- uses: actions/download-artifact@v2
with:
name: build-artifact
path: ./
path: /tmp/github-actions

- name: Extract build archive
run: tar -xvf /tmp/github-actions/build.tar ./

- name: PHP Static Analysis
uses: php-actions/phpstan@master
uses: php-actions/phpstan@v3
with:
path: src/
path: src/
31 changes: 21 additions & 10 deletions .scrutinizer.yml
Original file line number Diff line number Diff line change
@@ -1,14 +1,25 @@
build:
environment:
php:
version: 7.4.0
tests:
override:
-
command: 'vendor/bin/phpunit test/unit --coverage-clover coverage --whitelist src'
coverage:
file: 'coverage'
format: 'php-clover'
php: 8.0.0

nodes:
analysis:
tests:
override:
- php-scrutinizer-run

tests-and-coverage:
environment:
php:
ini:
"xdebug.mode": coverage
tests:
override:
- phpcs-run ./src
- command: "vendor/bin/phpunit test/phpunit --coverage-clover test/phpunit/_coverage --whitelist src"
coverage:
file: "test/phpunit/_coverage"
format: "php-clover"

checks:
php:
Expand All @@ -18,4 +29,4 @@ checks:
filter:
excluded_paths:
- test/*
- vendor/*
- vendor/*
7 changes: 3 additions & 4 deletions build.default.json
Original file line number Diff line number Diff line change
Expand Up @@ -3,12 +3,11 @@
"require": {
"node": "*",
"babel": "*",
"webpack": "*",
"webpack-cli": "*"
"webpack": "*"
},
"execute": {
"command": "webpack-cli",
"arguments": ["build", "--mode=development", "--devtool=source-map", "--entry=./script/main.es6", "--output-filename=script.js", "--output-path=./www"]
"command": "webpack",
"arguments": ["--entry","./script/main.es6", "--output-path", "./www", "--output-filename", "script.js", "--devtool", "source-map", "--mode", "production"]
}
},

Expand Down
35 changes: 18 additions & 17 deletions composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -13,32 +13,26 @@
"ext-dom": "*",
"ext-json": "*",
"php": ">=8.0",
"phpgt/build": "^1.0",
"phpgt/cli": "^1.3",

"phpgt/config": "^1.0",
"phpgt/cookie": "^1.0",
"phpgt/cron": "^1.0",
"phpgt/csrf": "^1.6",
"phpgt/database": "^1.1",
"phpgt/dom": "v3.0.0",
"phpgt/domtemplate": "^1.3 || ^2.0",
"phpgt/fetch": "^1.0",
"phpgt/csrf": "^1.7.2",
"phpgt/dom": "^3.0.0",
"phpgt/domtemplate": "^2.0",
"phpgt/database": "^1.4",
"phpgt/http": "^1.0",
"phpgt/input": "^1.1",
"phpgt/protectedglobal": "^1.0",
"phpgt/server": "^1.1",
"phpgt/session": "^1.1",
"phpgt/logger": "^1.0",
"phpgt/routing": "^1.0",
"phpgt/servicecontainer": "^1.1.1",
"phpgt/session": "^1.1.2",
"phpgt/sync": "^1.2",

"psr/http-server-middleware": "^1.0",
"willdurand/negotiation": "^3.0"
},

"require-dev": {
"phpunit/phpunit": "8.* || 9.*",
"behat/behat": "^3.0.5",
"behat/mink-extension": "^2.3",
"behat/mink-goutte-driver": "^1.2"
"phpstan/phpstan": "^1.4",
"phpunit/phpunit": "^9.5"
},

"autoload": {
Expand All @@ -63,5 +57,12 @@
"router",
"toolbox",
"prototype"
],

"funding": [
{
"type": "github",
"url": "https://github.com/sponsors/PhpGt"
}
]
}
Loading