Our great sponsors
-
InfluxDB
Power Real-Time Data Analytics at Scale. Get real-time insights from all types of time series data with InfluxDB. Ingest, query, and analyze billions of data points in real-time with unbounded cardinality.
It is possible that there is a library doing this already. I am not PHP coder so would like to avoid complex frameworks and stick with barebone solution doing only this Swagger/JSON stuff. For swagger, I decided to go with zircote/swagger-php. I would like my schema and model classes to have nice Swagger doc and at the same time I can use them to prepare objects to interact with the DB by loading/dumping from JSON.
Thanks to Pol Dellaiera who point me that there is this excellent library for inspecting and generating PHP code, I will try to use it and generate the schema-related classes programmatically based on passed model classes and required/optional fields.
Thanks to Pol Dellaiera who point me that there is this excellent library for inspecting and generating PHP code, I will try to use it and generate the schema-related classes programmatically based on passed model classes and required/optional fields.