laramate/support
Composer 安装命令:
composer require laramate/support
包简介
Support Package for Laravel
README 文档
README
Laramate Support
A collection of helpers, traits, and extensions for Laravel that we use across our agency projects. It bundles common building blocks, from queueable actions to model versioning, into a single, lightweight package.
Supports Laravel 12 and Laravel 13.
Warning: This package is under constant development. Use at your own risk.
Installation
Install the package via Composer:
composer require laramate/support
Features
| Feature | Description |
|---|---|
| Actions | Queueable, self-dispatching action classes for encapsulating business logic. Extend the base Action, implement handle(), and dispatch it synchronously or via the queue. |
| Translatable Enums | An Enum trait with a TranslatableEnum interface that resolves enum values through Laravel's translation files and converts cases into select arrays for forms. |
| Makeable Trait | Adds a static make() factory method to any class, allowing fluent instantiation without the new keyword. |
| Auto Create UUID Trait | Automatically generates a UUID for Eloquent models on creation. The column name is configurable and invalid or missing UUIDs are renewed transparently. |
| CSV Importer | Reads CSV files into arrays with configurable separator, enclosure, and escape characters. Optionally uses the first line as array keys and normalizes NULL values. |
| Simple Versioning | A Versioning trait for Eloquent models that creates immutable model versions with version IDs, labels, and author tracking. |
| Data Mapper | An abstract mapper for converting raw input arrays into a defined attribute structure using mapping rules and default values. |
| Numbering Formatter | Formatters for converting positions into numbering schemes, e.g. natural numbers with optional zero-padding. |
| ForceJsonResponse Middleware | Forces the Accept: application/json header on incoming requests so APIs consistently return JSON instead of HTML redirects or views. |
About Laramate
We build high-performance custom software and CRM systems that adapt to you. Leveraging the power of Laravel, React, and Statamic, we create digital experiences tailored specifically to your operational needs.
© 2026 Laramate • MIT License • www.laramate.de • github.com/Laramate
laramate/support 适用场景与选型建议
laramate/support 是一款 基于 PHP 开发的 Composer 扩展包,目前已累计 8.11k 次下载、GitHub Stars 达 1, 最近一次更新时间为 2025 年 02 月 03 日, 在 PHP 生态内属于活跃度较高的组件。
我们在过去多个企业项目中使用过 laramate/support 或与其功能相近的方案,如果你在选型或落地过程中遇到问题,例如 版本兼容、二次改造、私有化封装、与内部系统对接、生产 BUG 排查,欢迎联系我们协助评估。
基于 laramate/support 在你已有业务上做功能扩展、字段裁剪、UI 适配、与内部账号 / 权限 / 日志系统的深度对接。
线上偶发问题、内存泄漏、慢查询、并发异常等排查修复;针对高流量场景做缓存、队列、索引层面的调优。
承接完整的项目从需求 → 设计 → 开发 → 上线 → 长期运维;也可按月提供技术保姆服务。
统计信息
- 总下载量: 8.11k
- 月度下载量: 0
- 日度下载量: 0
- 收藏数: 1
- 点击次数: 0
- 依赖项目数: 0
- 推荐数: 0
其他信息
- 授权协议: MIT
- 更新时间: 2025-02-03