PHP code example of kingga / laravel-workflow-timesheet

1. Go to this page and download the library: Download kingga/laravel-workflow-timesheet 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/ */

    

kingga / laravel-workflow-timesheet example snippets


use Kingga\WorkflowTimesheet\Parser;
use Kingga\LaravelWorkflowTimesheet\WorkflowWeek;

$parser = new Parser;
$week = $parser->parse(storage_path('timesheets/Time-Sheet.csv'));

// NOTE: The user must be logged in as this is assigned per user.
WorkflowWeek::create($week);

use Kingga\LaravelWorkflowTimesheet\WorkflowWeek;

dd(WorkflowWeek::first()->toObject());