cptburke/application-primitives
Lightweight set of PHP/Laravel application primitives: small value objects, helpers, and foundational abstractions to standardize common patterns across a codebase. Intended to be reused across projects to keep core logic consistent and reduce boilerplate.
Psr\Container\ContainerInterface) or a custom container. Verify if the package can be seamlessly integrated without conflicts or manual binding overhead.config/app.php)..env, config/).Log, Cache, and Database services—conflicts may arise.spatie/laravel-activitylog, fruitcake/laravel-cors, or custom implementations.Psr\Container, it can integrate via Laravel’s container bindings ($app->bind()).composer.json for conflicting dependencies (e.g., symfony/http-client vs. Laravel’s guzzlehttp/guzzle).cptburke/application-primitives:dev-main) for easy rollback.$app->bind(
\CptBurke\Primitives\StateMachine::class,
fn($app) => new \CptBurke\Primitives\StateMachine(
$app->make(\CptBurke\Primitives\Repository::class)
)
);
config/app.php or a custom config file.telescope, laravel-debugbar).| Failure Scenario | Impact | Mitigation |
|---|---|---|
| Package introduces memory leaks | App crashes under load | Use memory_get_usage() in tests |
| State machine deadlocks | Workflow hangs indefinitely | Add timeouts, retry logic |
| DI container conflicts | Services fail to resolve | Manual binding with fallbacks |
| Laravel cache invalidation issues | Stale data in primitives | Sync cache keys with Laravel’s cache |
| Abandoned package | No security updates | Fork and maintain internally |
How can I help you explore Laravel packages today?