kingga / workflow-timesheet
Xero workflow weekly CSV parser.
1.0.0
2019-07-26 06:37 UTC
Requires (Dev)
- brainmaestro/composer-git-hooks: ^2.7
- codeception/codeception: ^3.0
- phan/phan: ^2.2
- symfony/var-dumper: ^4.3
This package is auto-updated.
Last update: 2025-04-22 00:03:20 UTC
README
This small package parses the CSV export function from Xero's Workflow timesheet system into a set of container classes. The format will look something like this:
Week: [
getStart() => DateTime
getEnd() => DateTime
getTotalTime() => Float
getDays() => [
Day: [
getDate() => DateTime
getDayName() => String [Monday, Tuesday, Wednesday, Thursday, Friday, Saturday, Sunday]
getTotalTime() => Float
getEntries() => [
Entry: [
getClient() => String
getJobId() => String
getJob() => String
getTask() => String
getTime() => Float
]
]
]
]
]
Installation
Run the command composer require kingga/workflow-timesheet
.
Usage
$parser = new Kingga\WorkflowTimesheet\Parser; $timesheet = $parser->parse(__DIR__ . '/Time-Sheet.csv'); dd($timesheet);
Testing
Run the command composer test
.