Skip to content

Commit

Permalink
Merge pull request #233 from MarcinOrlowski/dev
Browse files Browse the repository at this point in the history
Release 9.4.0
  • Loading branch information
MarcinOrlowski committed Feb 18, 2023
2 parents 4964aa6 + 89994a8 commit fd13279
Show file tree
Hide file tree
Showing 107 changed files with 3,835 additions and 3,904 deletions.
2 changes: 1 addition & 1 deletion .codecov.yml
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
# @package MarcinOrlowski\ResponseBuilder
#
# @author Marcin Orlowski <mail (#) marcinOrlowski (.) com>
# @copyright 2016-2022 Marcin Orlowski
# @copyright 2016-2023 Marcin Orlowski
# @license http://www.opensource.org/licenses/mit-license.php MIT
# @link https://github.com/MarcinOrlowski/laravel-api-response-builder
#
Expand Down
19 changes: 0 additions & 19 deletions .config/README.md

This file was deleted.

20 changes: 0 additions & 20 deletions .config/composer-laravel-6.x.json

This file was deleted.

20 changes: 0 additions & 20 deletions .config/composer-laravel-7.x.json

This file was deleted.

22 changes: 0 additions & 22 deletions .config/composer-laravel-8.x.json

This file was deleted.

22 changes: 0 additions & 22 deletions .config/composer-laravel-9.x.json

This file was deleted.

10 changes: 3 additions & 7 deletions .github/workflows/coding-standards.yml
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
# @package MarcinOrlowski\ResponseBuilder
#
# @author Marcin Orlowski <mail (#) marcinOrlowski (.) com>
# @copyright 2016-2022 Marcin Orlowski
# @copyright 2016-2023 Marcin Orlowski
# @license http://www.opensource.org/licenses/mit-license.php MIT
# @link https://github.com/MarcinOrlowski/laravel-api-response-builder
#
Expand All @@ -26,18 +26,14 @@ jobs:
fail-fast: false
matrix:
# quotes are needed it is treated as a number and zero at decimal part is gone at runtime
laravel: ["8.x"]
laravel: ["9.x"]
php: ["8.0", "8.1"]

runs-on: ubuntu-latest

steps:
- name: "Checkout repository..."
uses: actions/checkout@v2

- name: "Setup proper composer.json"
shell: bash
run: cp -f ".config/composer-laravel-${{ matrix.laravel }}.json" composer.json
uses: actions/checkout@v3

# https://github.com/marketplace/actions/composer-php-actions
- name: "Installing dependencies..."
Expand Down
14 changes: 7 additions & 7 deletions .github/workflows/coverage.yml
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
# @package MarcinOrlowski\ResponseBuilder
#
# @author Marcin Orlowski <mail (#) marcinOrlowski (.) com>
# @copyright 2016-2022 Marcin Orlowski
# @copyright 2016-2023 Marcin Orlowski
# @license http://www.opensource.org/licenses/mit-license.php MIT
# @link https://github.com/MarcinOrlowski/laravel-api-response-builder
#
Expand All @@ -29,18 +29,14 @@ jobs:
fail-fast: false
matrix:
# quotes are needed it is treated as a number and zero at decimal part is gone at runtime
laravel: ["8.x"]
laravel: ["9.x"]
php: ["8.0", "8.1"]

runs-on: ubuntu-latest

steps:
- name: "Checkout repository..."
uses: actions/checkout@v2

- name: "Setup proper composer.json"
shell: bash
run: cp -f ".config/composer-laravel-${{ matrix.laravel }}.json" composer.json
uses: actions/checkout@v3

# https://github.com/marketplace/actions/composer-php-actions
- name: "Installing dependencies..."
Expand All @@ -50,6 +46,10 @@ jobs:
php_version: "${{ matrix.php }}"
dev: yes

- name: "Patching testbench's onNotSuccessfulTest() signature..."
shell: bash
run: "sed -i 's/^protected function onNotSuccessfulTest(Throwable \\$exception)\\: void/protected function onNotSuccessfulTest(Throwable \\$exception)\\: never/' vendor/orchestra/testbench-core/src/TestCase.php"

# https://github.com/marketplace/actions/phpunit-php-actions
- name: "Running PHPUnit with Coverage..."
uses: php-actions/phpunit@v3
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/markdown.yml
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ jobs:
runs-on: ubuntu-latest

steps:
- uses: actions/checkout@v2
- uses: actions/checkout@v3

# https://github.com/marketplace/actions/my-markdown-linter
- name: "Running markdown linter..."
Expand Down
32 changes: 18 additions & 14 deletions .github/workflows/phpstan.yml
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
# @package MarcinOrlowski\ResponseBuilder
#
# @author Marcin Orlowski <mail (#) marcinOrlowski (.) com>
# @copyright 2016-2022 Marcin Orlowski
# @copyright 2016-2023 Marcin Orlowski
# @license http://www.opensource.org/licenses/mit-license.php MIT
# @link https://github.com/MarcinOrlowski/laravel-api-response-builder
#
Expand All @@ -29,18 +29,14 @@ jobs:
fail-fast: false
matrix:
# quotes are needed it is treated as a number and zero at decimal part is gone at runtime
laravel: ["8.x"]
php: ["7.4", "8.0", "8.1"]
laravel: ["9.x"]
php: ["8.0", "8.1"]

runs-on: ubuntu-latest

steps:
- name: "Checkout repository..."
uses: actions/checkout@v2

- name: "Setup proper composer.json"
shell: bash
run: cp -f ".config/composer-laravel-${{ matrix.laravel }}.json" composer.json
uses: actions/checkout@v3

# https://github.com/marketplace/actions/composer-php-actions
- name: "Installing dependencies..."
Expand All @@ -50,10 +46,18 @@ jobs:
php_version: "${{ matrix.php }}"
dev: yes

# https://github.com/marketplace/actions/phpstan-php-actions
# # https://github.com/marketplace/actions/phpstan-php-actions
# - name: "Running PHPStan..."
# uses: php-actions/phpstan@v3
# with:
# configuration: "phpstan.neon"
# php_version: "${{ matrix.php }}"
# # memory_limit: "16M"

# - name: "Making cache folder writable"
# shell: bash
# run: chmod 777 vendor/orchestra/testbench-core/laravel/bootstrap/cache

- name: "Running PHPStan..."
uses: php-actions/phpstan@v3
with:
configuration: "phpstan.neon"
php_version: "${{ matrix.php }}"
memory_limit: 16M
shell: bash
run: vendor/bin/phpstan
22 changes: 7 additions & 15 deletions .github/workflows/phpunit.yml
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
# @package MarcinOrlowski\ResponseBuilder
#
# @author Marcin Orlowski <mail (#) marcinOrlowski (.) com>
# @copyright 2016-2022 Marcin Orlowski
# @copyright 2016-2023 Marcin Orlowski
# @license http://www.opensource.org/licenses/mit-license.php MIT
# @link https://github.com/MarcinOrlowski/laravel-api-response-builder
#
Expand All @@ -29,24 +29,14 @@ jobs:
fail-fast: false
matrix:
# quotes are needed it is treated as a number and zero at decimal part is gone at runtime
laravel: ["6.x", "7.x", "8.x"]
php: ["7.2", "7.3", "7.4", "8.0", "8.1"]
exclude:
# Laravel 8.x requires PHP 7.3+
- laravel: "8.x"
php: "7.2"
- laravel: "9.x"
php: ["7.2", "7.3", "7.4"]
laravel: ["9.x"]
php: ["8.0", "8.1"]

runs-on: ubuntu-latest

steps:
- name: "Checkout repository..."
uses: actions/checkout@v2

- name: "Setup proper composer.json"
shell: bash
run: cp -f ".config/composer-laravel-${{ matrix.laravel }}.json" composer.json
uses: actions/checkout@v3

# https://github.com/marketplace/actions/composer-php-actions
- name: "Installing dependencies..."
Expand All @@ -62,4 +52,6 @@ jobs:
with:
bootstrap: "vendor/autoload.php"
configuration: "tests/phpunit.xml"

version: "9.6.3"
# memory_limit: "16M"
php_version: "${{ matrix.php }}"
4 changes: 2 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
![REST API Response Builder for Laravel](artwork/laravel-api-response-builder-logo.svg)
![REST API Response Builder for Laravel](artwork/laravel-api-response-builder-logo.png)

# REST API Response Builder for Laravel #

Expand Down Expand Up @@ -66,5 +66,5 @@ Development branch:

## License ##

* Written and copyrighted &copy;2016-2022 by Marcin Orlowski <mail (#) marcinorlowski (.) com>
* Written and copyrighted &copy;2016-2023 by Marcin Orlowski <mail (#) marcinorlowski (.) com>
* ResponseBuilder is open-sourced software licensed under the [MIT license](http://opensource.org/licenses/MIT)
13 changes: 13 additions & 0 deletions artwork/README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
![REST API Response Builder for Laravel](../artwork/laravel-api-response-builder-logo.png)

# Project artwork #

Designed by Marcin Orlowski <http://MarcinOrlowski.com>

The `ResponseBuilder` logo and icon use [Ubuntu Condensed](https://design.ubuntu.com/font/) font.

## SVG files ##

* `laravel-api-response-builder-logo.svg` - main logo project file (with texts as editable strings),
* `laravel-api-response-builder-logo.png` - bitmap rendition of the logo,
* `laravel-api-response-builder-icon.svg` - project icon.
Binary file added artwork/laravel-api-response-builder-logo.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
25 changes: 16 additions & 9 deletions composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,16 +2,18 @@
"name": "marcin-orlowski/laravel-api-response-builder",
"description": "Helps building nice, normalized and easy to consume Laravel REST API.",
"homepage": "https://github.com/MarcinOrlowski/laravel-api-response-builder",
"version": "9.3.2",
"version": "9.4.0",
"keywords": [
"laravel",
"laravel9",
"json",
"api",
"builder",
"rest",
"helper",
"php7",
"php",
"php8",
"php81",
"mobile",
"android",
"ios"
Expand All @@ -20,7 +22,7 @@
"authors": [
{
"name": "Marcin Orlowski",
"homepage": "http://MarcinOrlowski.com/"
"homepage": "https://MarcinOrlowski.com/"
}
],
"support": {
Expand All @@ -42,13 +44,18 @@
}
},
"require": {
"php": "^7.2 | ^7.3 | ^8.0",
"laravel/framework": ">= 6.0"
"php": "^8.0|^8.1",
"laravel/framework": "^9.0"
},
"require-dev": {
"marcin-orlowski/phpunit-extra-asserts": "^1.2",
"orchestra/testbench": "^4.0",
"phpunit/phpunit": "^8.0",
"phpunit/php-code-coverage": "^7.0"
"marcin-orlowski/phpunit-extra-asserts": "^5.1.0",
"orchestra/testbench": "^7.0",
"phpunit/phpunit": "^9.6.3",
"phpunit/php-code-coverage": "^9.2",
"nunomaduro/larastan": "^2.0",
"marcin-orlowski/php-lockpick": "^1.0"
},
"scripts": {
"test": "vendor/bin/phpunit -c tests/phpunit.xml"
}
}
2 changes: 1 addition & 1 deletion config/response_builder.php
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
* See docs/config.md for detailed documentation
*
* @author Marcin Orlowski <mail (#) marcinOrlowski (.) com>
* @copyright 2016-2022 Marcin Orlowski
* @copyright 2016-2023 Marcin Orlowski
* @license http://www.opensource.org/licenses/mit-license.php MIT
* @link https://github.com/MarcinOrlowski/laravel-api-response-builder
*
Expand Down
Loading

0 comments on commit fd13279

Please sign in to comment.