Skip to content
CAI
Software that uses CAICheck a score

davists/Lumen-Doctrine-DDD-Example

52.5

Adequate · 9 November 2026

3.6k

lines of production code

PHP

primary language

10

measurements over time

CAI band scale
CAI trend line
CAI lens gauges

What this system is

This system is a PHP-based backend service built on the Lumen framework, designed to manage product and category data through a relational database. It provides a RESTful API secured with JWT authentication and CORS headers, while utilizing Doctrine ORM for data persistence. The architecture supports comprehensive testing across unit, functional, and acceptance levels to ensure business logic and endpoint reliability.

Features

Initial Lumen 5.3 application scaffolding and configuration

The Lumen 5.3 application structure has been established, including the entry point, bootstrap, and configuration files for database, Doctrine ORM, and filesystems. The update introduces a custom exception handler that formats error responses as JSON, implements CORS and JWT authentication middleware, and registers service providers for domain services and repositories. Additionally, environment variables for database, JWT, and S3 storage are configured.

(repo-wide) · high confidence

Initial database schema and seeding for product and category entities

The application now includes the initial database migrations to create the 'product', 'category', and 'product\_category' (many-to-many) tables, along with a 'cache' table for session/storage management. Additionally, database seeders have been added to populate the 'DataTestSeeder' and 'DatabaseSeeder', enabling the database to be initialized with test data.

database · high confidence

Test coverage

Added test directory structure and documentation

Added .gitkeep files to the Acceptance, Contract, Functional, and Unit test directories to preserve the directory structure in version control. Additionally, a wiki file was added to the tests directory, providing documentation on the purpose of each test type: Unit for small code units, Contract for endpoint activity, Functional for business rules, and Acceptance for end-to-end business flows.

tests · high confidence

Dependencies

Initial project setup with Lumen and Doctrine dependencies

The project is initialized with a composer.json file that defines the application's PHP and third-party dependencies. This includes the Lumen framework, Doctrine ORM, and various libraries for authentication, serialization, and file storage, establishing the technical foundation for the service.

(dependencies) · high confidence

Written by cca.canine.dev from the codebase's own history, inside the signed delivery this page is composed from.

How this codebase got here

Score

  • CAI 49 → 53 (+3.3)
  • Rubric changed (rubric-2026.10.5 → rubric-2026.11.2) — scores are not directly comparable.

Lenses

  • Code Health 69 → 69 (+0.0)
  • Architecture 79 → 78 (-1.1)
  • Maturity 85 → 88 (+3.7)
  • Readiness 16 → 23 (+6.9)
  • Security 100 → 100 (+0.0)
  • Domain Modelling 100 → 100 (+0.0)

Resolved (1)

  • No tests found

New (1)

  • Documentation: no build, run or usage example (README.md)

Written by cca.canine.dev from the codebase's own history, inside the signed delivery this page is composed from.

Survey your own repository

davists/Lumen-Doctrine-DDD-Example was measured the same way every project in this corpus was: the same rubric, at a pinned commit, with the result published in full. Point a surveyor at a repository you know and see whether you agree with it.

About this page

  • The score is its most recent published measurement, taken on 9 November 2026 at a pinned commit. It is not a live figure and does not change until the project is measured again.
  • Measured at commit a473217c45bd930611e49f9933c6bb5291b4bffd — the exact code this score is about.
  • Scored under rubric-2026.11.2 — the same rubric and the same method as every other entry in this index.
  • Measured by Canine Code Analyzer (cca.canine.dev) using cca measure-2026.11.4+preprod-464a0040a931.