Download the PHP package zerexei/php-toolkit without Composer
On this page you can find all versions of the php package zerexei/php-toolkit. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Download zerexei/php-toolkit
More information about zerexei/php-toolkit
Files in zerexei/php-toolkit
Package php-toolkit
Short Description A collection of reusable Laravel & PHP traits, helpers, and extensions
License MIT
Informations about the package php-toolkit
Laravel & PHP Toolkit
A collection of lightweight, modern, and highly reusable PHP traits, Eloquent helpers, and utility extensions.
A minimal and efficient collection of PHP 8.2+ traits and utilities designed to enhance Eloquent models and PHP arrays/strings. Relies on specific, lightweight Illuminate components rather than the full Laravel framework.
Features
- ⚡ Cacheable — Intuitive Eloquent instance caching API with custom TTLs and auto-generated keys.
- 📋 HasActivityLogs — Boilerplate-free Spatie Activitylog integration configured with smart defaults.
- 🔍 Searchable — Query-builder scope for full-text term searches matching prefixes.
- 🆔 HasUuid — Automatically generates secure UUIDs (v4) upon model creation.
- 🔗 HasSlug — Automatic generation of unique, collision-resistant slugs from a source field.
- 🚦 HasStatus — Status state management, validation checks, and query scoping.
- ⚙️ HasFilters — Flexible pipeline helper to filter query builders via closures or dedicated classes.
- 🧰 StrHelper & ArrHelper — Context-rich utilities to manipulate strings and arrays cleanly.
Table of Contents
- Installation
- Cacheable
- HasActivityLogs
- Searchable
- HasUuid
- HasSlug
- HasStatus
- HasFilters
- StrHelper
- ArrHelper
- Requirements
- License
Installation
Require via Composer:
Cacheable
Add instance caching to any Eloquent model. It dynamically generates cache keys based on model type, primary key, and the updated_at timestamp.
HasActivityLogs
Integrate Spatie's Laravel Activitylog with smart out-of-the-box settings (auto-headline model names, excludes sensitive fields, and logs request IPs).
Searchable
Enable simple, multi-column search on your models using SQL LIKE conditions.
HasUuid
Instruct Eloquent to auto-generate and manage UUID keys (UUIDv4) on model creation.
HasSlug
Automatically generate slugs on model saving. Handles slug collisions automatically by appending increments (e.g. my-slug-1).
HasStatus
Validate, mutate, and scope models by their status.
HasFilters
Apply request-driven filters or query builder callbacks cleanly.
StrHelper
Common string manipulations.
ArrHelper
Manipulate PHP arrays effortlessly.
Requirements
- PHP:
8.2or higher - Laravel Components (
illuminate/database,illuminate/support):^12.0 - Composer
License
This project is open-source software licensed under the MIT License.
All versions of php-toolkit with dependencies
illuminate/support Version ^12.0
spatie/laravel-activitylog Version ^4.8 || ^5.0