|
9 | 9 | [](https://shepherd.dev/github/spiral/json-schema-generator) |
10 | 10 | [](https://shepherd.dev/github/spiral/json-schema-generator) |
11 | 11 |
|
12 | | -The JSON Schema Generator is a powerful PHP package designed to simplify the process of generating JSON schemas |
13 | | -from Data Transfer Object (DTO) classes. It supports PHP enumerations, generic type annotations for arrays, |
14 | | -and provides an attribute for specifying title, description, and default value. |
| 12 | +The JSON Schema Generator is a PHP package that simplifies the generation of JSON schemas from Data Transfer Object (DTO) classes. |
| 13 | +It supports PHP enumerations and generic type annotations for arrays and provides an attribute for specifying title, description, and default value. |
15 | 14 |
|
16 | 15 | ## Requirements |
17 | 16 |
|
18 | | -Make sure that your server is configured with following PHP version and extensions: |
| 17 | +Make sure that your server is configured with the following PHP versions and extensions: |
19 | 18 |
|
20 | 19 | - PHP >=8.1 |
21 | 20 |
|
22 | 21 | ## Installation |
23 | 22 |
|
24 | | -You can install the package via composer: |
| 23 | +You can install the package via Composer: |
25 | 24 |
|
26 | 25 | ```bash |
27 | 26 | composer require spiral/json-schema-generator |
@@ -85,8 +84,7 @@ $schema = $generator->generate(Movie::class); |
85 | 84 | ``` |
86 | 85 |
|
87 | 86 | > **Note** |
88 | | -> Additionally, the package provides the `Spiral\JsonSchemaGenerator\GeneratorInterface`, which can be seamlessly |
89 | | -> integrated into your application's dependency container for further customization and flexibility. |
| 87 | +> Additionally, the package provides the `Spiral\JsonSchemaGenerator\GeneratorInterface,` which can be integrated into your application's dependency container for further customization and flexibility. |
90 | 88 |
|
91 | 89 | The `Spiral\JsonSchemaGenerator\Schema` object implements the **JsonSerializable** interface, allowing easy conversion |
92 | 90 | of the schema into either JSON or a PHP array. |
|
0 commit comments