Are there alternatives to sequence and class diagrams for non-object-oriented PHP projects?

In non-object-oriented PHP projects, alternatives to sequence and class diagrams can include flowcharts, data flow diagrams, and entity-relationship diagrams. These visual representations can help illustrate the flow of data and processes within the project without relying on object-oriented concepts.

// Example of a flowchart implementation in PHP
$start = true;

if ($start) {
    echo "Start of the process\n";
    $start = false;
}

// Process 1
$condition = true;
if ($condition) {
    echo "Process 1 completed\n";
}

// Process 2
$flag = false;
if (!$flag) {
    echo "Process 2 completed\n";
}

// End of the process
echo "End of the process\n";