Skip to content

Prelude

The core package is the framework-independent part of Small Swoole Entity Manager.

Core 3 provides:

  • pooled MySQL, PostgreSQL and Small Swoole DB connections;
  • an EntityManagerFactory that creates and caches managers per factory instance;
  • attribute-based entity and relation metadata;
  • entity, scalar, statistics, update and delete query builders;
  • synchronous entity persistence and batched persistence threads;
  • lifecycle callbacks;
  • database layers for ordered schema migrations;
  • entity backup and change detection.

Core 3.0 requires PHP 8.3 or newer and uses the current Small runtime generations:

  • small/collection 4.0.*;
  • small/swoole-db 2.0.*;
  • small/swoole-patterns 26.0.*.

The core no longer depends on small/forms. AbstractManager::getForm() was removed in 3.0; input validation and form handling now belong to the application or framework integration layer.

Next chapter: Get started