Skip to content

Developer Documentation

This section teaches you how to build custom business modules with Office App. You will learn to create models, define properties, configure workflows, generate PDFs, and connect models with relationships.

Prerequisites

Basic PHP knowledge (classes, arrays, methods). No frontend experience required — Office App generates all UI automatically.

How It Works

In Office App, a model is a single PHP class that describes a business entity. The framework reads your class and automatically creates:

  • A database table with the right columns
  • A list view with sorting, search, and pagination
  • A detail form with appropriate input fields
  • Navigation entries in the sidebar
  • CRUD actions (create, read, update, delete)
  • Audit trails, record locking, and soft delete

You never write HTML templates, SQL migrations, or JavaScript. You define what your data looks like, and the framework handles how it is displayed and stored.

Documentation Overview

Page What You'll Learn
Your First Model Create a minimal model and see it in the browser
Properties Reference All available field types and their options
Common Property Options Options shared by all property types
Relations Connect models with hasParent and hasMany
Workflow & State Machine Define states, transitions, and Kanban boards
Custom Layouts Control the detail form layout with columns, cards, and tabs
Actions & Hooks Add custom buttons and respond to lifecycle events
PDF Generation Generate downloadable/previewable PDF documents
Permissions Control who can view, edit, and delete records
Folders & Navigation Add custom sidebar folders with filtered record sets