Download the PHP package sulimanbenhalim/laravel-prose without Composer
On this page you can find all versions of the php package sulimanbenhalim/laravel-prose. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Table of contents
Download sulimanbenhalim/laravel-prose
More information about sulimanbenhalim/laravel-prose
Files in sulimanbenhalim/laravel-prose
Download sulimanbenhalim/laravel-prose
More information about sulimanbenhalim/laravel-prose
Files in sulimanbenhalim/laravel-prose
Vendor sulimanbenhalim
Package laravel-prose
Short Description Transform Laravel Eloquent queries into natural language prose
License MIT
Package laravel-prose
Short Description Transform Laravel Eloquent queries into natural language prose
License MIT
Please rate this library. Is it a good library?
Informations about the package laravel-prose
Laravel Prose
Laravel Eloquent queries → natural language descriptions
Install
Usage
Basic Query Translation
Advanced Operations
Action Descriptions
All query operations get natural descriptions:
Relationship Intelligence
Time Intelligence
| Input | Natural Output |
|---|---|
now()->subMinutes(30) |
"within the last 30 minutes" |
now()->subDays(7) |
"within the last 7 days" |
now()->subWeeks(2) |
"within the last 14 days" |
now()->addDays(14) |
"in the next 14 days" |
today() |
"today" |
'2024-01-01' |
"January 1, 2024" |
Field Intelligence
Boolean Detection
Laravel Timestamps
Currency & Units
Configuration
All Settings
| Setting | Default | Description | |---------|---------|-------------| | `enabled` | `true` | Enable/disable prose generation | | `humanize_dates` | `true` | Convert dates to natural language | | `max_conditions` | `12` | Limit conditions to prevent overflow | | `include_raw_fallback` | `true` | Show fallback for complex queries | | `raw_fallback_text` | `"with custom database operations"` | Text for unsupported operations | | `sentence_template` | `"{action} {model} {conditions}..."` | Output structure | | `actions.select` | `"Find"` | Action word for select queries | | `actions.count` | `"Count"` | Action word for count queries | | `connectors.and` | `"and"` | Connector for AND conditions | | `connectors.relationships` | `"including their"` | Relationship connector |Methods
Query Description
Facade Access
Real-World Scenarios
E-commerce Analytics
User Behavior Analysis
Laravel Integration
The package seamlessly integrates with Laravel's query builder through macros, automatically detecting:
- Model casts for boolean/date field detection
- Database schema via Doctrine DBAL for precise field types
- Laravel conventions for timestamp and relationship naming
- Carbon operations for intelligent time phrase generation
- Doctrine Inflector for proper pluralization and word transformations
Performance
- Zero query execution - descriptions are generated from builder state
- Configurable limits prevent description overflow
- Lazy evaluation - only processes when
describe()is called
Laravel Version Compatibility
| Laravel Version | Package Version |
|---|---|
| 12.x | 1.x |
Security
If you discover any security issues, please email [email protected] instead of using the issue tracker.
License
The MIT License (MIT). Please see License File for more information.
All versions of laravel-prose with dependencies
PHP Build Version
Package Version
Requires
php Version
^8.2
doctrine/inflector Version ^2.0
illuminate/database Version ^12.0
illuminate/support Version ^12.0
nesbot/carbon Version ^2.0|^3.0
doctrine/inflector Version ^2.0
illuminate/database Version ^12.0
illuminate/support Version ^12.0
nesbot/carbon Version ^2.0|^3.0
The package sulimanbenhalim/laravel-prose contains the following files
Loading the files please wait ...