Download the PHP package uuf6429/phpdoc-to-jsonschema without Composer
On this page you can find all versions of the php package uuf6429/phpdoc-to-jsonschema. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Table of contents
Download uuf6429/phpdoc-to-jsonschema
More information about uuf6429/phpdoc-to-jsonschema
Files in uuf6429/phpdoc-to-jsonschema
Download uuf6429/phpdoc-to-jsonschema
More information about uuf6429/phpdoc-to-jsonschema
Files in uuf6429/phpdoc-to-jsonschema
Vendor uuf6429
Package phpdoc-to-jsonschema
Short Description A PHPDoc to JsonSchema converter.
License MIT
Package phpdoc-to-jsonschema
Short Description A PHPDoc to JsonSchema converter.
License MIT
Please rate this library. Is it a good library?
Informations about the package phpdoc-to-jsonschema
📩 PHPDoc to JSON Schema
Convert PHPStan-style PHPDoc to JSON Schema.
💾 Installation
This package can be installed with Composer, simply run the following:
Consider using --dev
if you intend to use this library during development only.
🚀 Usage
The following code:
...results in something like:
See also ExampleTest
for a more complex example.
📖 Documentation
The \uuf6429\PHPDocToJSONSchema\Converter
class exposes the following:
-
Converts the provided PHPDoc type and returns its schema.
$type
The PHPDoc type to be converted.$currentClass
The fully-qualified class name of the class where that type appeared, or null if wasn't a class (e.g. for functions).
All versions of phpdoc-to-jsonschema with dependencies
PHP Build Version
Package Version
Requires
php Version
^8.1
swaggest/json-schema Version ^0.12.42
uuf6429/phpstan-phpdoc-type-resolver Version dev-main
swaggest/json-schema Version ^0.12.42
uuf6429/phpstan-phpdoc-type-resolver Version dev-main
The package uuf6429/phpdoc-to-jsonschema contains the following files
Loading the files please wait ....