kyledoesdev/essentials

Essentials for my Laravel applications.

Maintainers

Package info

github.com/kyledoesdev/essentials

pkg:composer/kyledoesdev/essentials

Transparency log

Statistics

Installs: 562

Dependents: 0

Suggesters: 0

Stars: 0

Open Issues: 0

v0.0.9 2026-08-01 22:14 UTC

README

Essential utilities for my Laravel applications — the helpers, macros and generators I'd otherwise copy between projects.

Installation

composer require kyledoesdev/essentials

Features

Timezone detectiontimezone() resolves the timezone for the current request from the authenticated user, an IP geo lookup, then config('app.timezone'). Results are cached per IP address.

Carbon macroCarbon::parse($date)->inUserTimezone() shifts an instance into that timezone.

Action generatorphp artisan make:action CreateUserAction scaffolds action classes into app/Actions.

Developer middlewareIsDeveloper aborts with a 403 unless the authenticated user has is_dev.

Model statsHasStatsAfterEvents records created and deleted counts through spatie/laravel-stats.

String helperstoSafeFileName() strips characters that break downloads.

Configuration

php artisan vendor:publish --tag=essentials-config

Requirements

  • Laravel 12+
  • PHP 8.4 / 8.5

License

essentials is open-sourced software licensed under the MIT license.

Credits

Created by kyledoesdev