Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
45 commits
Select commit Hold shift + click to select a range
71c4a93
init
astral-data May 8, 2025
70abf1e
Merge remote-tracking branch 'origin/master' into featrue/open-api
astral-data Jun 5, 2025
578e3be
ref v2
astral-data Jun 6, 2025
3e0d541
ref v2
astral-data Jun 6, 2025
ab7f5d1
RC1
astral-data Jun 12, 2025
5e1c858
fix phpstan RC2
astral-data Jun 12, 2025
71a0e29
fix phpstan RC2
astral-data Jun 12, 2025
baf4007
fix phpstan RC2
astral-data Jun 12, 2025
7f6e732
composer 固定8.1
astral-data Jun 12, 2025
7197714
change SerializeBench
astral-data Jun 12, 2025
0e63639
phpstan fix
astral-data Jun 12, 2025
8b5359c
add openapi test
astral-data Jun 13, 2025
49d5adf
add openapi test
astral-data Jun 13, 2025
8a8eb3e
add customerRoute
astral-data Jun 13, 2025
2797635
add config
astral-data Jun 13, 2025
b3bfaa4
add config
astral-data Jun 16, 2025
60ec382
add config
astral-data Jun 16, 2025
f84b001
add openapi Optional values by enums
astral-data Jun 18, 2025
613aa9d
fix tests
astral-data Jun 18, 2025
2e99b84
add openapiAnnotation
astral-data Jun 20, 2025
74d2d0d
add openapiAnnotation
astral-data Jun 20, 2025
6265c71
add openapiAnnotation
astral-data Jun 20, 2025
fbe8af0
test docs
astral-data Jun 20, 2025
c1b25b9
test docs
astral-data Jun 20, 2025
829ecb6
test docs
astral-data Jun 20, 2025
0d0d785
test docs
astral-data Jun 20, 2025
05aa13f
add config
astral-data Jun 20, 2025
dab4600
add config
astral-data Jun 20, 2025
d974fde
gitbook test
astral-data Jun 20, 2025
8ddc8bf
gitbook test
astral-data Jun 20, 2025
3c5fcea
gitbook test
astral-data Jun 20, 2025
e684ad1
gitbook test
astral-data Jun 20, 2025
9d9d261
gitbook test
astral-data Jun 20, 2025
86de98c
gitbook test
astral-data Jun 20, 2025
be44e20
gitbook test
astral-data Jun 20, 2025
ca7e79f
gitbook zh success
astral-data Jun 20, 2025
cab9685
gitbook zh success
astral-data Jun 20, 2025
3220fe4
gitbook zh success
astral-data Jun 20, 2025
171df3c
gitbook zh success
astral-data Jun 20, 2025
4c4d50b
gitbook zh success
astral-data Jun 20, 2025
7d74bbc
gitbook zh success
astral-data Jun 20, 2025
a3722bb
gitbook zh success
astral-data Jun 20, 2025
8fc8475
gitbook zh success
astral-data Jun 20, 2025
7719415
gitbook zh success
astral-data Jun 20, 2025
531211f
Merge branch 'master' into featrue/open-api
astral-data Jun 20, 2025
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
23 changes: 23 additions & 0 deletions .openapi.php
Original file line number Diff line number Diff line change
@@ -0,0 +1,23 @@
<?php

use Astral\Serialize\OpenApi\Storage\OpenAPI\ServersStorage;

return [
'title' => 'API Docs',

'description' => 'API Docs description.',

/**
* 向全局头部参数存储中添加一个的头部参数。
* @param string $name
* @param string $example
* @param string $description
*/
'headers' => [

],

'service' => [
new ServersStorage('http://127.0.0.1','默认环境'),
],
];
4 changes: 2 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,8 +4,8 @@

# Languages

- [Complete documen-English](./docs/en/README.md)
- [完整文档-中文](./docs/zh/README.md)
- [Complete documen-English](https://astrals-organization.gitbook.io/php-serialize/php-serialize-en)
- [完整文档-中文](https://astrals-organization.gitbook.io/php-serialize)

# php-serialize

Expand Down
8 changes: 4 additions & 4 deletions benchmarks/SerializeBench.php
Original file line number Diff line number Diff line change
Expand Up @@ -83,7 +83,7 @@ public function setupObject(): void
Revs(500),
Iterations(5),
BeforeMethods([ 'setupObjectCreation']),
Assert('mode(variant.time.avg) < 140 microseconds +/- 5%')
Assert('mode(variant.time.avg) < 120 microseconds +/- 5%')
]
public function benchObjectCreation(): void
{
Expand All @@ -94,7 +94,7 @@ public function benchObjectCreation(): void
Revs(5000),
Iterations(5),
BeforeMethods([ 'setupObjectCreation']),
Assert('mode(variant.time.avg) < 350 microseconds +/- 5%')
Assert('mode(variant.time.avg) < 300 microseconds +/- 5%')
]
public function benchObjectCreationWithoutCache(): void
{
Expand All @@ -106,7 +106,7 @@ public function benchObjectCreationWithoutCache(): void
Revs(500),
Iterations(5),
BeforeMethods(['setupObject']),
Assert('mode(variant.time.avg) < 80 microseconds +/- 5%')
Assert('mode(variant.time.avg) < 65 microseconds +/- 5%')
]
public function benchObjectToArray(): void
{
Expand All @@ -117,7 +117,7 @@ public function benchObjectToArray(): void
Revs(5000),
Iterations(5),
BeforeMethods(['setupObject']),
Assert('mode(variant.time.avg) < 270 microseconds +/- 5%')
Assert('mode(variant.time.avg) < 230 microseconds +/- 5%')
]
public function benchObjectToArrayWithoutCache(): void
{
Expand Down
6 changes: 5 additions & 1 deletion composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,8 @@
"phpdocumentor/reflection-docblock": "^5.5",
"phpdocumentor/reflection": "^6.0",
"fakerphp/faker": "^1.23",
"psr/simple-cache": "^3.0"
"psr/simple-cache": "^3.0",
"symfony/console": "^6.4"
},
"require-dev" : {
"phpstan/phpstan": "^2.0.2",
Expand All @@ -41,6 +42,9 @@
"config": {
"allow-plugins": {
"pestphp/pest-plugin": true
},
"platform": {
"php": "8.1.32"
}
}
}
Loading