chore: audit and update composer.json #19

Open
opened 2026-02-20 03:17:43 +00:00 by Clotho · 0 comments
Member

Composer Configuration Review

File: composer.json

Current State

{
    "require": {
        "php": "^8.2",
        "host-uk/core": "@dev",
        "symfony/yaml": "^7.0"
    }
}

Missing Dev Dependencies

The package lacks dedicated dev dependencies for:

  1. Testing Tools

    • pestphp/pest - Currently inherited from parent
    • mockery/mockery - For test mocking
    • fakerphp/faker - For test data generation
  2. Code Quality Tools

    • laravel/pint - Code formatting (currently inherited)
    • phpstan/phpstan or psalm/psalm - Static analysis
    • nunomaduro/larastan - Laravel-specific PHPStan rules
  3. Development Utilities

    • symfony/var-dumper - Better debugging
    • barryvdh/laravel-ide-helper - IDE autocomplete

Questions to Resolve

  1. Should dev dependencies be explicit or inherit from parent host-uk/core?
  2. Is @dev stability for host-uk/core intentional?
  3. Should we add prefer-stable: true enforcement?
  4. Are there any runtime dependencies missing?

Recommendations

If this is a standalone package:

  • Add explicit dev dependencies
  • Document required tools in CLAUDE.md

If this is tightly coupled to monorepo:

  • Document that dev tools come from parent
  • Keep composer.json minimal

Priority

Low - Works fine, but clarity would help

## Composer Configuration Review **File**: `composer.json` ### Current State ```json { "require": { "php": "^8.2", "host-uk/core": "@dev", "symfony/yaml": "^7.0" } } ``` ### Missing Dev Dependencies The package lacks dedicated dev dependencies for: 1. **Testing Tools** - `pestphp/pest` - Currently inherited from parent - `mockery/mockery` - For test mocking - `fakerphp/faker` - For test data generation 2. **Code Quality Tools** - `laravel/pint` - Code formatting (currently inherited) - `phpstan/phpstan` or `psalm/psalm` - Static analysis - `nunomaduro/larastan` - Laravel-specific PHPStan rules 3. **Development Utilities** - `symfony/var-dumper` - Better debugging - `barryvdh/laravel-ide-helper` - IDE autocomplete ### Questions to Resolve 1. Should dev dependencies be explicit or inherit from parent `host-uk/core`? 2. Is `@dev` stability for `host-uk/core` intentional? 3. Should we add `prefer-stable: true` enforcement? 4. Are there any runtime dependencies missing? ### Recommendations **If this is a standalone package**: - Add explicit dev dependencies - Document required tools in CLAUDE.md **If this is tightly coupled to monorepo**: - Document that dev tools come from parent - Keep composer.json minimal ### Priority Low - Works fine, but clarity would help
Clotho added the
review
discovery
labels 2026-02-20 03:17:43 +00:00
Charon added
PHP
P3
and removed
review
discovery
labels 2026-02-20 12:17:06 +00:00
Clotho was assigned by Charon 2026-02-20 12:21:01 +00:00
Charon added the
agent-ready
label 2026-02-21 01:30:27 +00:00
Sign in to join this conversation.
No description provided.