{"repo":"omaralalwi/laravel-time-craft","free":true,"listed":false,"github":"https://github.com/omaralalwi/laravel-time-craft","clone":"git clone https://github.com/omaralalwi/laravel-time-craft.git","description":"simple trait and helper functions that allow you, Effortlessly manage date and time queries in Laravel apps, with pre-built scopes and helper functions with ease.","language":"PHP","stars":13,"topics":["carbon","casting","date","datetime","eloquent","filters","laravel","laravel-scopes","orm","queries"],"license":"MIT","category":"databases-storage","readme_excerpt":"Laravel Time Craft A simple trait and a set of helper functions that let you effortlessly manage date and time queries in Laravel apps — with pre-built Eloquent scopes and formatting helpers, ready to use out of the box. Table of Contents - Features - Requirements - Installation - Configuration - Usage - The HasDateTimeScopes Trait - Available Scopes - Customizing the Date Field - A Note on Timezones - The HasReadableDates Trait - Helper Functions - Testing - Changelog - Contributing - License - More Open Source Packages Features - Flexible date scopes — filter records by common time frames (today, yesterday, current week, last month, last N days, and more). - Readable date accessors — a drop-in trait that adds human-readable readable created at / readable updated at / readable deleted at accessors (and a generic readableDate() helper) to any model, without clobbering the real Carbon timestamps. - Helper functions — utilities for formatting dates, times, and human-readable \"time ago\" representations. - Dynamic field support — every scope can target any date/time column, configurable globally, per model, or per call. Requirements - PHP ^8.1 – ^8.4 - Laravel 10.x , 11.x , 12.x , or 13.x (Eloquent / Carbon) — the scopes rely on Laravel's query builder and the now() / today() helpers. Each Laravel version keeps its own PHP floor: Laravel 10 needs PHP ^8.1 , Laravel 11/12 need ^8.2 , and Laravel 13 needs ^8.3 . Composer automatically installs the highest Laravel your PHP version s","default_branch":null,"files":null,"tree":[],"storefront":"/r/omaralalwi","claimed":false,"request_supported":{"post":"https://gitbuyer.com/r/omaralalwi/laravel-time-craft/request-supported","requests":0},"note":"indexed from public GitHub; nothing is for sale on this page. Clone it from GitHub. Paid listings live at /search."}