cebe/php-openapi
Read and write OpenAPI yaml/json files and make the content accessable in PHP objects.
1.8.0
17M downloads/mo
#1319 most downloaded on Packagist
cebe/php-openapi
What this package is like to depend on
Last release 1 years ago
07 May 2025
Ships unpredictably
gaps range from 2 weeks to 3.0 years
Some releases are documented
notes for 10 of 19 stable releases
Nothing withdrawn
no release was ever pulled
8 years old
23 releases · first in 2018
0 releases in the last 12 months
see the full history below
Release timeline
23 releases · Nov 2018 to May 2025Releases
latest 23-
1.8.007 May 2025Release notes
Open source →What's Changed
Compatibility:
- Added Support for Symfony 7 and PHP 8.2, 8.3 by @tacman (#212)
- Allow
jsonrainbow/json-schemaversion 5 and 6 by @tacman (#227) - PHPStan 1.x support by @rogervila (#180)
Features and Fixes:
- Hold raw spec data when reading specifications, added a getter
getRawSpecData()by @SOHELAHMED7 (#228) - Resolve: Unable to reference other local json file by @SOHELAHMED7 (#218)
- Improve usage of Security and SecurityRequirement by @SOHELAHMED7 (#225)
- Fix: Referenced Parameters compiling to Object instead of Array by @SOHELAHMED7 (#234)
- Added test to confirm referenced parameters are compiling to arrays by @Aribros (#195)
- Fix resolving of relative paths in references by @Aribros (#166, #164, #191)
Doucmentation:
- Resolve: Document how to read schema properties by @SOHELAHMED7 (#222)
New Contributors
- @Sarke made their first contribution in #196
- @googoogajoob made their first contribution in #188
- @SOHELAHMED7 made their first contribution in #222
- @rogervila made their first contribution in #180
- @tacman made their first contribution in #227
Full Changelog: 1.7.0...1.8.0
-
1.7.020 Apr 2022Release notes
Open source →Improvements:
- Support for PHP 8.1, thanks @om4csaba, @shadowhand, @simPod
- #160 Flags for
json_encode()inWriter::writeToJson(), thanks @ValikoDorodnov
-
1.6.010 Feb 2022Release notes
Open source →Bugfixes:
- #100 Fixed a bug with merging PathItems where extension properties (
x-*) were not present in the merge result (thanks @marcelthole) - #131 Adjust default value for
Schema::$nullablewhen no type is specified.nullablewill befalseby default when a type is specified butnullwhen no type is specified. - #77 Fixes default value for
exclusiveMinimumandexclusiveMaximumonly returnfalsewhenminimumormaximumis specified, defaults tonullotherwise. - #125 Fix OpenAPI v3.0 Schema Violation: Array value found, but an object is required (thanks @om4james)
- #119 Stricter type checking when resolving references, avoid trying to call methods on array
- #144 Catch recursion when resolving inside included file
Dependencies:
Other changes:
- Reworked CI (thanks @simPod)
- Added Docker environment for local development
- #100 Fixed a bug with merging PathItems where extension properties (
-
1.5.224 May 2021Release notes
Open source →Bugfixes:
- #87, #102 Fix PathItem::resolveReferences() for array fields, a PHP Notice had been thrown (thanks @izucken and @rv1971)
- #107 Inline references does not resolve relative references (thanks @marcelthole)
- #95 Adjust relative URLs for externalValue fields in Example Objects when inlining references.
Documentation:
- Fixed typos in README and CLI help (thanks @ssfinney)
-
1.5.116 Feb 2021Release notes
Open source →Bugs
- #94 Fixed resolving relative paths with multiple
../(thanks @il-m-yamagishi)
Documentation
- #98 Added PHPStan Template annotations (thanks @marcelthole)
- #96 Added missing exeption annotation to
readFromJsonFile()(thanks @yorickgirard)
- #94 Fixed resolving relative paths with multiple
-
1.5.031 Dec 2020Release notes
Open source →Improvements:
- Overall performance improvements and other optimization for loading references
- #63 Added option to only resolve external references (inlining)
Bugfixes:
- #74 Fix PHPDoc for
exclusiveMinimumandexclusiveMaximumto boolean (thanks @canvural) - #92 Resolving references to external files did not work correctly on windows (thanks @Insolita)
Other changes:
- #80 Changed minimum Symfony YAML version from
3.0to3.4(thanks @marcelthole) - #83 Tests are green on PHP 8 (thanks @canvural)
-
1.4.227 May 2020 -
1.4.107 Apr 2020Release notes
Open source →- #68 Fix: Crash with unresolved reference while instantiating Encoding (@karsa-mistmere)
-
1.4.006 Mar 2020Release notes
Open source →- #56 Added compatibility with
symfony/yaml:^5.0 - #49 Static Analysis using phpstan (@lookyman)
- #53 Added extra validation messages for parameters (@lezhnev74)
- #43 Improved command-line-tool output of
bin/php-openapi validate(@mfrischbutter) - #42 Added
--silentparameter to command-line-tool (@mfrischbutter) - #46, #52 Fix writing empty arrays to YAML file (@coatesap)
- #56 Added compatibility with
-
1.3.428 Feb 2020 -
1.3.316 Dec 2019Nothing published for this version
-
1.3.204 Dec 2019Nothing published for this version
-
1.3.129 Oct 2019Nothing published for this version
-
1.3.025 Oct 2019Nothing published for this version
-
1.2.124 Oct 2019Nothing published for this version
-
1.2.028 Jun 2019Nothing published for this version
-
1.1.021 Jun 2019Nothing published for this version
-
1.0.120 May 2019Nothing published for this version
-
1.0.019 Apr 2019Nothing published for this version
-
0.9.3-beta22 Mar 2019 pre-releaseNothing published for this version
-
0.9.2-beta03 Jan 2019 pre-releaseNothing published for this version
-
0.9.1-beta03 Dec 2018 pre-releaseNothing published for this version
-
0.9.0-beta22 Nov 2018 pre-releaseNothing published for this version