This post refers to DotKernel 1, based on Zend Framework 1.
If you are looking for DotKernel 3 related posts, go here.

DotKernel will be a “skeleton”of Zend Framework.
DotKernel borrowed the coding standard from Zend Framework: ZF Coding Standard with some exceptions.

In what follows, we will make remarks only on those features that are slightly different in the coding standards of DotKernel.

B.2. PHP File Formatting

B.3. Naming Conventions

Camel naming convention

B.4.6. Control Statements
every starting curly brace } after a statement starts on a new line, end it’s closing curly brace } will be on a new line too. The start and end braces must be on the same column (for better indentation of the code)
e.g:

if ($a != 2)
{
   $a = 2;
}
if ($a != 2)
{
    $a = 2;
    if($a == 2)
    {
       $c = 3;
    }
}

Looking for PHP, Laminas or Mezzio Support?

As part of the Laminas Commercial Vendor Program, Apidemia offers expert technical support and services for:

  • Modernising Legacy Applications
  • Migration from any version of Zend Framework to Laminas
  • Migration from legacy Laminas API Tools (formerly Apigility) to Dotkernel API
  • Mezzio and Laminas Consulting and Technical Audit
  • Leave a Reply

    Your email address will not be published. Required fields are marked *

    You may use these HTML tags and attributes: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <s> <strike> <strong>