Skip to content

Commit e63f774

Browse files
Merge pull request #254 from MarcinOrlowski/dev
Release v12.0.0
2 parents df76c08 + 5dd800b commit e63f774

File tree

97 files changed

+580
-484
lines changed

Some content is hidden

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

97 files changed

+580
-484
lines changed

.codecov.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
# Laravel API Response Builder CodeCov.io config file
44
#
55
# @author Marcin Orlowski <mail (#) marcinOrlowski (.) com>
6-
# @copyright 2016-2024 Marcin Orlowski
6+
# @copyright 2016-2025 Marcin Orlowski
77
# @license http://www.opensource.org/licenses/mit-license.php MIT
88
# @link https://github.com/MarcinOrlowski/laravel-api-response-builder
99
#

.github/workflows/coding-standards.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
# Laravel API Response Builder Static code analysis Github Action config
44
#
55
# @author Marcin Orlowski <mail (#) marcinOrlowski (.) com>
6-
# @copyright 2016-2024 Marcin Orlowski
6+
# @copyright 2016-2025 Marcin Orlowski
77
# @license http://www.opensource.org/licenses/mit-license.php MIT
88
# @link https://github.com/MarcinOrlowski/laravel-api-response-builder
99
#

.github/workflows/coverage.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
# Laravel API Response Builder Unit tests Github Action config
44
#
55
# @author Marcin Orlowski <mail (#) marcinOrlowski (.) com>
6-
# @copyright 2016-2024 Marcin Orlowski
6+
# @copyright 2016-2025 Marcin Orlowski
77
# @license http://www.opensource.org/licenses/mit-license.php MIT
88
# @link https://github.com/MarcinOrlowski/laravel-api-response-builder
99
#

.github/workflows/phpstan.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
# Laravel API Response Builder Static code analysis Github Action config
44
#
55
# @author Marcin Orlowski <mail (#) marcinOrlowski (.) com>
6-
# @copyright 2016-2024 Marcin Orlowski
6+
# @copyright 2016-2025 Marcin Orlowski
77
# @license http://www.opensource.org/licenses/mit-license.php MIT
88
# @link https://github.com/MarcinOrlowski/laravel-api-response-builder
99
#

.github/workflows/phpunit.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
# Laravel API Response Builder Unit tests Github Action config
44
#
55
# @author Marcin Orlowski <mail (#) marcinOrlowski (.) com>
6-
# @copyright 2016-2024 Marcin Orlowski
6+
# @copyright 2016-2025 Marcin Orlowski
77
# @license http://www.opensource.org/licenses/mit-license.php MIT
88
# @link https://github.com/MarcinOrlowski/laravel-api-response-builder
99
#

.php-version

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
8.2

README.md

Lines changed: 13 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -38,20 +38,21 @@ Development branch:
3838

3939
## Benefits ##
4040

41-
`ResponseBuilder` is written for REST API developers by REST API developer and is based on long-lasting experience on both
42-
"sides" of API. It's lightweight, with **no** dependencies, extensively tested and simple to use yet flexible and powerful,
43-
with support for [on-the-fly data conversion](docs/conversion.md), [localization support](docs/docs.md#messages-and-localization),
44-
automatic message building, [chained APIs](docs/docs.md#code-ranges) and (hopefully) [exhaustive documentation](docs/README.md).
45-
But that's not all! The JSON structure produced by `ResponseBuilder` is designed with **users of your API** in mind, so its
46-
structure is predictible and [well-defined](docs/docs.md#response-structure) which makes dealing with your API using
47-
`ResponseBuilder` library a breeze. Simple JSON response, with well-defined and predictable structure, easy to consume
48-
without any hassle or trickery. **Your** clients will love it. And will love **you** too :)
49-
50-
You are also covered in a case of emergency, as provided [ExceptionHandlerhelper](docs/exceptions.md), ensures your API keeps
51-
talking JSON (and NOT lame HTML) to its clients even in case of unexpected.
41+
`ResponseBuilder` is written for REST API developers by REST API developers, drawing from extensive experience on both
42+
sides of API development. It's lightweight, with **no** dependencies, thoroughly tested, and simple to use while remaining
43+
flexible and powerful. It offers support for [on-the-fly data conversion](docs/conversion.md), [localization](docs/docs.md#messages-and-localization),
44+
automatic message building, [chained APIs](docs/docs.md#code-ranges), and [comprehensive documentation](docs/README.md).
45+
46+
Moreover, the JSON structure produced by `ResponseBuilder` is designed with **your API users** in mind. Its
47+
[well-defined and predictable structure](docs/docs.md#response-structure) makes interacting with your API using
48+
`ResponseBuilder` effortless. The simple, consistent JSON responses are easy to consume without any complications.
49+
**Your** clients will appreciate it, and by extension, appreciate **you** as well!
50+
51+
You're also covered in case of emergencies. The provided [ExceptionHandlerHelper](docs/exceptions.md) ensures your API
52+
continues to communicate in JSON (not HTML) with its clients, even in unexpected situations.
5253

5354
Did I mention, you would also get [testing traits](docs/testing.md) that automatically add PHPUnit based unit test to your
54-
whole `ResponseBuilder` related code and configuration with just a few lines of code **absolutely for free**?
55+
whole `ResponseBuilder` related code and configuration with just a few lines of code **absolutely free of charge**?
5556

5657
## Features ##
5758

composer.json

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
"name": "marcin-orlowski/laravel-api-response-builder",
33
"description": "Helps building nice, normalized and easy to consume Laravel REST API.",
44
"homepage": "https://github.com/MarcinOrlowski/laravel-api-response-builder",
5-
"version": "11.0.0",
5+
"version": "12.0.0",
66
"keywords": [
77
"laravel",
88
"laravel10",
@@ -45,15 +45,15 @@
4545
}
4646
},
4747
"require": {
48-
"php": "^8.2|^8.3",
49-
"laravel/framework": "^11.0"
48+
"php": "^8.2|^8.3|^8.4",
49+
"laravel/framework": "^12.0"
5050
},
5151
"require-dev": {
5252
"marcin-orlowski/phpunit-extra-asserts": "^5.1.0",
53-
"orchestra/testbench": "^9.0",
53+
"orchestra/testbench": "^10.0",
5454
"phpunit/phpunit": "^11.0",
5555
"phpunit/php-code-coverage": "^11.0",
56-
"larastan/larastan": "^2.0",
56+
"larastan/larastan": "^3.0",
5757
"marcin-orlowski/lockpick": "^1.0"
5858
},
5959
"scripts": {

config/response_builder.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@
77
* See docs/config.md for detailed documentation
88
*
99
* @author Marcin Orlowski <mail (#) marcinOrlowski (.) com>
10-
* @copyright 2016-2024 Marcin Orlowski
10+
* @copyright 2016-2025 Marcin Orlowski
1111
* @license http://www.opensource.org/licenses/mit-license.php MIT
1212
* @link https://github.com/MarcinOrlowski/laravel-api-response-builder
1313
*

docs/CHANGES.md

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -18,6 +18,9 @@ should be able to easily backport future new features to older versions rather e
1818

1919
## CHANGE LOG ##
2020

21+
* v12.0.0 (2025-04-16)
22+
* Added support for Laravel v12.
23+
2124
* v11.0.0 (2024-05-06)
2225
* **BACKWARD INCOMPATIBLE CHANGES** ([more info](compatibility.md)).
2326
* Added support for Laravel v11.

0 commit comments

Comments
 (0)