giovani-plantae / birth-finder

Laravel project test to find upcoming birthdays within a range of n days.

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Birth Finder

This is a testing project aimed at finding upcoming birthdays within a specified range of n days while striving for cleanliness and readability.

Project Setup

The project is set up using a fresh installation of Laravel, with the only modification being the addition of the 'birth' field to the user table. Adjustments to user factory to include the generation of random birth dates, and the command birthdays:upcoming {duration} to help the execution.

Usage

Open Tinker:

php artisan tinker

Seed the Database:

User::factory()->count(5000)->create();

Run the following command to find upcoming birthdays within a specified duration:

php artisan birthdays:upcoming {duration}

Ensure that the duration parameter is provided in ISO format like P7D, P1M...

About

Laravel project test to find upcoming birthdays within a range of n days.


Languages

Language:PHP 72.7%Language:Blade 27.0%Language:JavaScript 0.3%