descom/descommarket_common
A Laravel/PHP common package for Descom Market projects, offering shared utilities, reusable helpers, configuration defaults, and integration glue. It helps teams keep applications consistent, reduce duplicated code, simplify maintenance, and build on a common foundation across the Descom Market eco...
descommarket_common is typically the extraction layer for primitives every service in a marketplace needs — enums for order/listing states, money and currency value objects, address and geo helpers, base Eloquent models, traits for audit/timestamps, and service-provider wiring. The decision it informs is whether to keep duplicating that logic per repo or consolidate into a versioned dependency.brick/money + spatie/laravel-data and stop maintaining a bespoke common lib." This package is a prompt to make that call explicitly.Adopt it when all of the following hold:
Look elsewhere when:
brick/money, spatie/laravel-data, spatie/laravel-package-tools, or laravel/framework primitives directly instead.For executives (30 seconds): This is a small internal shared-code library for a marketplace application — the kind of package that holds the "one true definition" of things like order states and pricing rules so different teams don't implement them differently. It has no external users, no community, and no support, so it is not a strategic asset and not a risk we should take on speculatively. The recommendation is: do not adopt for new work unless we are already in that ecosystem. If we need shared marketplace primitives, we should fund a small, owned internal package with an explicit owner and a versioning policy — a two-to-three week platform investment, not a dependency decision.
For engineering: Treat this as reference material, not a dependency. Read it, mine it for domain conventions if we're aligning with descom, and fork only if we're prepared to own it. Before any adoption: inspect the source for framework-version constraints, check whether the release tags and changelog are real, confirm test coverage exists, and confirm a named owner on our side. If the answer to any of those is no, we vendor the ~200 useful lines and move on.
The decision we need: Either (a) approve a small, owned internal common package with a real maintainer and a deprecation policy, or (b) confirm we stay on general-purpose ecosystem packages and accept some duplication. Doing nothing is a choice for (b) by default — worth stating out loud.
How can I help you explore Laravel packages today?