PHP code example of tomshaw / laravel-calendar-table

1. Go to this page and download the library: Download tomshaw/laravel-calendar-table library. Choose the download type require.

2. Extract the ZIP file and open the index.php.

3. Add this code to the index.php.
    
        
<?php
require_once('vendor/autoload.php');

/* Start to develop here. Best regards https://php-download.com/ */

    

tomshaw / laravel-calendar-table example snippets


'table_name' => 'date_dimension',

'seasons' => [
    'Spring' => 3,
    'Summer' => 6,
    'Autumn' => 9,
    'Winter' => 12,
],

'seasons' => [
    'Spring' => 9,
    'Summer' => 12,
    'Autumn' => 3,
    'Winter' => 6,
],

'fiscal_year_start_month' => 10,

'date_range' => [
    'start_year' => Carbon\Carbon::now()->subYears(20)->year,
    'end_year' => Carbon\Carbon::now()->addYears(20)->year,
],

php artisan vendor:publish --provider="TomShaw\CalendarTable\Providers\CalendarTableServiceProvider" --tag=config

php artisan migrate

php artisan calendar:table --start=2000 --end=2030