PHP Code Design

White Papers and Research


This paper shows techniques used to organize and communicate the structure of existing PHP projects and design new enhancements. Software models provide the framework that enables a development team to work together productively and understand, evaluate, integrate or implement new source code for a PHP project.

  • PHP supports procedural programming where each root module calls functions that in turn call other functions creating a thread of execution that can be represented with a hierarchical Structure Chart diagram.
  • PHP supports object-oriented programming with classes, attributes and functions. The static structure of object-oriented programs can be represented with a Class diagram using the Unified Modeling Language (UML) notation.
  • The data structure of a relational database can be represented with a Data Model diagram, also called an Entity-Relation diagram.

This paper assumes a working knowledge of PHP. It illustrates object-oriented program design with UML class diagrams and procedural program design with structure charts.


For more information on related topics, visit the following channels:

Advertisement

Advertisement