Dynamic class property with phpdoc included

This page summarizes the projects mentioned and recommended in the original post on /r/PHPhelp

Our great sponsors
  • InfluxDB - Power Real-Time Data Analytics at Scale
  • WorkOS - The modern identity platform for B2B SaaS
  • SaaSHub - Software Alternatives and Reviews
  • swagger-php

    A php swagger annotation and parsing library

  • 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.

  • dynamicobjects

    Discontinued Create PHP objects having dynamic classes and/or properties.

  • 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.

  • 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.

    InfluxDB logo
  • laminas-code

    Extensions to the PHP Reflection API, static code scanning, and code generation

  • 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.

NOTE: The number of mentions on this list indicates mentions on common posts plus user suggested alternatives. Hence, a higher number means a more popular project.

Suggest a related project

Related posts