Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Bump major changes of most of components #11

Merged
merged 44 commits into from
May 21, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
44 commits
Select commit Hold shift + click to select a range
4232c4a
Bump major changes of most of components
byjg Oct 16, 2022
a7ddf42
Github Actions and Update README.md
byjg Oct 16, 2022
441c358
force error_reporting
byjg Oct 16, 2022
5f6253d
force error_reporting
byjg Oct 16, 2022
7b925af
Upgrade actions/checkout
byjg Oct 16, 2022
26cfc9e
Fix error code class not found
byjg Oct 16, 2022
f973013
Method to return OpenApiSchema
byjg Oct 16, 2022
52e28ab
Changes the error handler to use less information by Default
byjg Oct 17, 2022
dd53538
Add support to OpenAPI formats YAML and JSON
byjg Oct 17, 2022
c9badb2
Add support to CORS
byjg Oct 18, 2022
eebb428
Block execution if Cors validation fail
byjg Oct 19, 2022
7e56b8e
Get better title for the error.
byjg Oct 19, 2022
2885ddd
Fix CORS request
byjg Oct 19, 2022
d980be9
Returns blocked CORS
byjg Oct 19, 2022
1f480a0
Renaming Route classes
byjg Oct 19, 2022
23ba97b
Passing Cors to all status
byjg Oct 19, 2022
85f9dc5
Fix some specific error conditions.
byjg Oct 20, 2022
ea55fa0
Fix missing code
byjg Oct 20, 2022
1ab274c
Adding Middleware
byjg Oct 22, 2022
9b3652b
Added WriterInterface
byjg Oct 22, 2022
71aaf2a
Change Route class constructor
byjg Oct 23, 2022
c06c98a
Fix MockRequestHandler
byjg Oct 23, 2022
303627d
Adjusts on ServerStaticMiddleware
byjg Oct 23, 2022
7b726bc
Fix file locate ServerStaticMiddleware
byjg Oct 23, 2022
fb2cb0f
Add JwtMiddleware
byjg Jan 26, 2023
3d91705
Update JwtMiddleware
byjg Jan 26, 2023
6dc89fb
Another Fix on JwtWrapper
byjg Jan 26, 2023
1f69710
Updade Composer
byjg Feb 14, 2023
e2d56b0
Fix method typo
byjg Feb 14, 2023
7c48bb0
Fixed MockRequestHandler
byjg Feb 14, 2023
1d87b90
Try fix mime-types
byjg Feb 14, 2023
8bb8ed7
Fix mime-types
byjg Feb 14, 2023
568d6d8
Optimizing Mime Type method
byjg Feb 14, 2023
daec4f3
Reverting.
byjg Feb 14, 2023
cd6c191
Update OperationID
byjg Feb 14, 2023
26e67d1
Add Error 422
byjg Feb 15, 2023
f861b84
Update Response Code CORS
byjg Feb 15, 2023
e43bea9
More changes in the CORS
byjg Feb 16, 2023
6cc2179
More CORS adjustments
byjg Feb 16, 2023
aa11c96
Update jwt-wrapper
byjg Feb 18, 2023
645e5f9
Fix Whoops new version
byjg Mar 5, 2023
b054351
Add default to methods get, post, server, ...
byjg Apr 10, 2023
b4cd23a
Update composer.json
byjg May 21, 2023
0418b2b
Remove schedule build.
byjg May 21, 2023
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
37 changes: 37 additions & 0 deletions .github/workflows/phpunit.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,37 @@
name: PHPUnit
on:
push:
branches:
- master
tags:
- "*.*.*"
pull_request:
branches:
- master

jobs:
Build:
runs-on: 'ubuntu-latest'
container: 'byjg/php:${{ matrix.php-version }}-cli'
strategy:
matrix:
php-version:
- "8.1"
- "8.0"
- "7.4"
- "7.3"

steps:
- uses: actions/checkout@v3
- run: composer install
- run: ./vendor/bin/phpunit

Documentation:
runs-on: 'ubuntu-latest'
needs: Build
if: github.ref == 'refs/heads/master'
env:
DOC_GITHUB_TOKEN: '${{ secrets.DOC_TOKEN }}'
steps:
- uses: actions/checkout@v3
- run: curl https://opensource.byjg.com/add-doc.sh | bash /dev/stdin php restserver
2 changes: 2 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -4,3 +4,5 @@ composer.lock
vendor

.idea
.phpunit.result.cache
.DS_Store
14 changes: 0 additions & 14 deletions .travis.yml

This file was deleted.

58 changes: 58 additions & 0 deletions .vscode/launch.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,58 @@
{
// Use IntelliSense to learn about possible attributes.
// Hover to view descriptions of existing attributes.
// For more information, visit: https://go.microsoft.com/fwlink/?linkid=830387
"version": "0.2.0",
"configurations": [
{
"name": "Launch Built-in web server",
"type": "php",
"request": "launch",
"runtimeArgs": [
"-dxdebug.mode=debug",
"-dxdebug.start_with_request=yes",
"-S",
"localhost:8281",
"app-dist.php"
],
"program": "",
"cwd": "${workspaceRoot}/public",
"port": 9003,
"serverReadyAction": {
"pattern": "Development Server \\(http://localhost:([0-9]+)\\) started",
"uriFormat": "http://localhost:%s/testjson",
"action": "openExternally"
}
},
{
"name": "Debug current Script in Console",
"type": "php",
"request": "launch",
"program": "${file}",
"cwd": "${fileDirname}",
"port": 0,
"runtimeArgs": [
"-dxdebug.start_with_request=yes"
],
"env": {
"XDEBUG_MODE": "debug,develop",
"XDEBUG_CONFIG": "client_port=${port}"
}
},
{
"name": "PHPUnit Debug",
"type": "php",
"request": "launch",
"program": "${workspaceFolder}/vendor/bin/phpunit",
"cwd": "${workspaceFolder}",
"port": 0,
"runtimeArgs": [
"-dxdebug.start_with_request=yes"
],
"env": {
"XDEBUG_MODE": "debug,develop",
"XDEBUG_CONFIG": "client_port=${port}"
}
}
]
}