Skip to content
CAI
Software that uses CAICheck a score

techindeck/laravel-module-generator

46.5

Weak · 9 November 2026

2.5k

lines of production code

PHP

primary language

7

measurements over time

CAI band scale
CAI trend line
CAI lens gauges

What this system is

This system is a PHP-based application framework that provides a modular architecture for generating and managing API resources, requests, and controllers. It features a command-line interface for scaffolding modules and enforces a strict separation of concerns through controller and repository interfaces. The codebase utilizes modern PHP typing, UUID generation, and automated file path resolution to streamline development.

Features

New CLI commands for API resource registration and request generation

The module generator now includes two new console commands: \module:resource\ to register API resources in the routes, and \module:request\ to generate case requests. The existing \make:module\ command has been renamed from \make:module\ (previously \MakeCaseCommand\) and now supports an \--all\ flag to generate all components at once. Additionally, the \GatewayCommand\ has been updated to automatically invoke the new \module:request\ and \module:resource\ commands when creating a new module, and the file path generation for cases and controllers has been updated to use \app\_path()\ instead of \base\_path()\.

src/Console · high confidence

Behavioural changes

Refactor controller and repository interfaces to use mixed types and accessors

The codebase has been updated to use \mixed\ types for ID and data parameters across the \CaseController\ and \Repository\ contracts, replacing previous \int\ and specific type hints. The \CaseController\ now exposes \req\ and \id\ via getter/setter methods (\getReq\, \setId\, etc.) rather than direct property access, and the controller stubs have been updated to use these accessors. Additionally, the \ModelUUIDTrait\ was added to automatically generate UUIDs for models, and the \Model\ stub was updated to use this trait and define fillable/hidden attributes. The \Repository\ interface and its implementations now accept \mixed\ for IDs and data, and the \Gateway\ stubs have been updated to pass validated requests and IDs through the new accessor pattern.

src/resources · high confidence

Dependencies

Update composer.json metadata and formatting

The composer.json file has been reformatted with consistent indentation and key ordering. The author information was updated from a specific individual to the 'Techindeck' organization, and the 'prefer-stable' flag was added to the configuration.

(dependencies) · medium 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 45 → 47 (+1.1)
  • Rubric changed (rubric-2026.10.5 → rubric-2026.11.2) — scores are not directly comparable.

Lenses

  • Code Health 70 → 70 (+0.0)
  • Architecture 95 → 95 (+0.0)
  • Maturity 49 → 53 (+4.1)
  • Readiness 23 → 23 (+0.0)
  • Security 100 → 100 (+0.0)

Resolved (4)

  • Documentation: no architecture or design documentation (README.md)
  • Inconsistent method naming for retrieving stub content. Most classes use getStubContents (accepting stub and variables), while ResourceRegisterCommand uses getContents (accepting only stub). This breaks the uniform interface pattern established by the majority of the codebase.
  • Inconsistent naming for the 'read by ID' operation. The Repository interface uses find, while the ICaseMapper interface uses resolverFind. This suggests a lack of a unified contract for data access operations across different layers (Repository vs Mapper).
  • Semantic ambiguity between Find and Read operations. In many architectures, 'Find' implies searching by criteria or ID, while 'Read' implies fetching a resource. However, in this generator context, both likely generate similar boilerplate for retrieving a single resource. The distinction is unclear and potentially redundant, especially since CaseFind and CaseRead also exist with identical method signatures.

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

Survey your own repository

techindeck/laravel-module-generator 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 5097e66b19dbe5e9d29ebdc74fdb29866489331d — 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.3+preprod-bb0cb800cd0f.