Skip to content

Latest commit

 

History

History
64 lines (45 loc) · 1.83 KB

File metadata and controls

64 lines (45 loc) · 1.83 KB

CommonPHP UI Documentation

CommonPHP UI is the standalone rendering and component package for CommonPHP applications. It defines view objects, template metadata, layouts, reusable components, renderer contracts, and a native PHP template renderer.

The package is intentionally renderer-neutral. Applications can use the built-in PHP renderer, or install a driver such as Twig that implements RendererInterface.

Start Here

UI Concepts

Examples

Development

Public API Map

Entry points:

  • CommonPHP\UI\ViewFactory
  • CommonPHP\UI\Drivers\NativePhpRenderer

View objects:

  • CommonPHP\UI\View
  • CommonPHP\UI\ViewData
  • CommonPHP\UI\Template
  • CommonPHP\UI\Layout
  • CommonPHP\UI\Component
  • CommonPHP\UI\ComponentRegistry

Contracts:

  • CommonPHP\UI\Contracts\RendererInterface
  • CommonPHP\UI\Contracts\AbstractRenderer
  • CommonPHP\UI\Contracts\TemplateInterface
  • CommonPHP\UI\Contracts\LayoutInterface
  • CommonPHP\UI\Contracts\ComponentInterface
  • CommonPHP\UI\Contracts\ComponentRegistryInterface

Exceptions:

  • CommonPHP\UI\Exceptions\UIException
  • CommonPHP\UI\Exceptions\RenderException
  • CommonPHP\UI\Exceptions\TemplateNotFoundException
  • CommonPHP\UI\Exceptions\InvalidComponentException
  • CommonPHP\UI\Exceptions\RendererDriverException