Weave 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

Camel Laravel Package

mattketmo/camel

Laravel-friendly utilities for converting strings, keys, and arrays between camelCase, snake_case, StudlyCase and more. Handy for normalizing request/response payloads, config keys, and API data with simple helpers and minimal setup.

View on GitHub
Deep Wiki
Context7

Product Decisions This Supports

  • Consistency in UI/UX: Standardize text formatting (e.g., camelCase, PascalCase, snake_case) across frontend and backend to improve developer experience and reduce bugs.
  • API/Backend Efficiency: Automate case transformations for database fields, API responses, or internal services (e.g., converting user_name to userName for frontend consumption).
  • Internationalization (i18n): Simplify handling of locale-specific text formatting (e.g., converting translated phrases to consistent casing).
  • Legacy System Integration: Quickly normalize case-sensitive data from older systems (e.g., converting old_SNAKE_CASE to camelCase for modern APIs).
  • Build vs. Buy: Avoid reinventing case-transformation logic; leverage a lightweight, maintained library instead of custom solutions.
  • Developer Productivity: Reduce boilerplate code in PHP projects (e.g., for Laravel Eloquent models, API payloads, or form handling).

When to Consider This Package

  • Look Elsewhere If:
    • You need complex locale-aware transformations (e.g., handling non-Latin scripts or context-specific rules like "Title Case").
    • Your use case requires performance-critical bulk operations (this is a tiny library, not optimized for large-scale batch processing).
    • You’re working in a non-PHP environment (e.g., JavaScript/TypeScript, where native methods or other libraries like lodash suffice).
    • You need two-way synchronization (e.g., bidirectional snake_case ↔ camelCase mapping) without additional logic.
    • Your team prefers built-in PHP solutions (e.g., Str::camel() in Laravel) and rejects third-party dependencies for simplicity.

How to Pitch It (Stakeholders)

For Executives: "This tiny, MIT-licensed PHP library solves a common but tedious problem: ensuring consistent text casing across our systems. By adopting mattketmo/camel, we can standardize how data flows between our backend (e.g., snake_case databases) and frontend (e.g., camelCase APIs), reducing bugs and developer friction. It’s a lightweight, zero-maintenance solution that pays for itself in productivity—no new hires or infrastructure needed."

For Engineers: *"This package is a drop-in tool for handling case transformations in PHP/Laravel. Key benefits:

  • Zero dependencies: Just 1 tiny file (~50 lines).
  • Laravel-friendly: Works alongside Str:: helpers or standalone.
  • Use cases:
    • Convert user_first_name → userFirstName for API responses.
    • Normalize input data (e.g., UserFirstName → user_first_name for DB storage).
    • Quickly prototype or refactor legacy systems.
  • Tradeoff: Not for heavy lifting, but perfect for ad-hoc or consistent transformations. Let’s add it to our composer.json and document its use in the style guide."*
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.
oxygen/data
oxygen/core
jengo/base
xiloryx/log-collector
a21ns1g4ts/filament-stripe
la-php/laravel-admin
artisan-build/community-prompts
vleroy/smart
ayles-software/laravel-australian-public-holidays
cboxdk/laravel-id-spatie
cboxdk/laravel-id-billing
cboxdk/laravel-id-billing-bridge
simple-as-fuck/php-performance-log
hsluv/hsluv
seampact/codegen
seampact/hooks
seampact/ir
mehedimi/laravel-amp-mail
happones/laravel-vue-i18n-generator
jwerd/inertia-table