Weave Code
Code Weaver
Helps Laravel developers discover, compare, and choose open-source packages. See popularity, security, maintainers, and scores at a glance to make better decisions.
Feedback
Share your thoughts, report bugs, or suggest improvements.
Subject
Message

Common Laravel Package

dontdrinkandroot/common

A small utility library with commonly used PHP helpers and extensions, including a PHPStan extension. Intended to provide shared building blocks for projects, with CI and code quality tooling support via SonarCloud badges.

View on GitHub
Deep Wiki
Context7

Product Decisions This Supports

  • Codebase Consolidation: Reduces technical debt by centralizing reusable PHP/Laravel utilities (e.g., string manipulation, array helpers, validation logic) into a single, maintainable package. Enables team-wide consistency and reduces duplication across microservices or monolithic apps.
  • Developer Velocity: Accelerates feature development by providing pre-built, tested helpers (e.g., Str::slugify(), Arr::dot(), Collection utilities). Lowers onboarding time for new engineers by standardizing common patterns.
  • Laravel Ecosystem Alignment: Bridges gaps in Laravel’s built-in tools (e.g., enhanced Arr:: or Str:: methods) without reinventing the wheel. Ideal for projects already using Laravel’s conventions.
  • Roadmap Efficiency: Justifies "build vs. buy" by avoiding custom utility libraries. Prioritizes maintenance of this package over scattered, project-specific helpers.
  • Security/Compliance: Apache-2.0 license aligns with enterprise needs; centralized helpers simplify audits (e.g., input sanitization, logging formats).
  • Performance Optimization: Lightweight package (minimal dependencies) reduces bundle size in large applications compared to bloated custom solutions.

When to Consider This Package

  • Avoid If:

    • Your team lacks PHP/Laravel expertise—prefer Laravel’s built-in helpers or Laravel Mix for simplicity.
    • You need highly specialized utilities (e.g., machine learning, blockchain). Use niche packages (e.g., spatie/array-to-xml) instead.
    • The package is unmaintained (last release <1 year ago and no community activity). Mitigate by forking or writing custom alternatives.
    • Your stack is non-PHP (e.g., Node.js, Python). Evaluate equivalent tools (e.g., Lodash for JS).
    • You require enterprise-grade support—opt for commercial packages (e.g., Laravel Forge, BeyondCode) with SLAs.
  • Consider If:

    • You’re building a Laravel-based SaaS, CMS, or internal tool with repetitive utility logic.
    • Your team uses TDD/BDD—the package’s modular structure lends itself to testable, isolated helpers.
    • You need cross-project reuse (e.g., shared auth helpers, API response formats) across microservices.
    • You’re migrating from legacy PHP to Laravel and need a bridge for common patterns.

How to Pitch It (Stakeholders)

For Executives/Business Leaders:

*"This package lets us build faster and more reliably by standardizing common PHP/Laravel tasks—like formatting data, validating inputs, or generating slugs—into reusable components. Think of it as ‘Laravel’s Swiss Army knife’ for developers. By adopting this, we:

  • Cut development time by 15–25% on repetitive tasks (benchmarked against custom helper libraries).
  • Reduce bugs from inconsistent implementations across teams.
  • Lower maintenance costs by centralizing updates instead of patching scattered code.
  • Future-proof our stack with a lightweight, community-aligned tool.

It’s a low-risk, high-reward investment: minimal upfront cost, immediate productivity gains. We’ll pilot it in [Project X] to validate ROI before scaling."*


For Engineering Teams:

*"This is a batteries-included utility belt for Laravel/PHP that solves:

  • ‘Not Invented Here’ syndrome: No more reinventing Arr::dot() or Str::camel_case().
  • Boilerplate bloat: Replace 50-line helper functions with 1-liners (e.g., Arr::pluckRecursive()).
  • Consistency: Enforce team-wide patterns (e.g., logging, API responses) via shared methods.
  • Extensibility: Easy to add custom helpers or override defaults.

Proposal:

  1. Audit current codebase for duplicate utilities (e.g., sanitizeInput(), flattenArray()).
  2. Replace 3–5 high-impact helpers with package equivalents in a feature branch.
  3. Measure dev time saved in PR reviews and new feature velocity.
  4. Document migration path for legacy code.

Risk Mitigation:

  • Fork the repo to add missing features (e.g., Arr::groupByRecursive()).
  • Use composer scripts to auto-update the package with CI checks.

Alternatives considered:

  • Laravel’s built-ins (too limited for complex use cases).
  • Custom libraries (higher maintenance).
  • No action (technical debt accumulates).

Next Steps: Let’s scope a 2-week spike to validate performance and adoption barriers."*

Weaver

How can I help you explore Laravel packages today?

Conversation history is not saved when not logged in.
Prompt
Add packages to context
No packages found.
emuniq/filament-browser-notifications
syriable/filament-translator
hungnm28/livewire-form
wenprise/eloquent
crudly/encrypted
fadion/bouncy
cuci/prototurk-sdk
gos/pubsub-router-bundle
cuci/prototurk-sdk-symfony
clementtalleu/easyadmin-markdown-bundle
codeflextech/permission-manager
karnoweb/livewire-datepicker
sayedenam/sayed-dashboard
milito/query-filter
apiboxsym/user-bundle
apiboxsym/health-check-bundle
jayeshmepani/jpl-moshier-ephemeris-php
elnasnato/laraliveui
labrodev/rest-sdk
sampaui/sampaui