vmitchell85 / things
A Things 3 package for Laravel
Fund package maintenance!
vmitchell85
Requires
- php: ^8.0
- illuminate/contracts: ^8.0
- illuminate/database: ^8.35
- spatie/laravel-package-tools: ^1.4.3
Requires (Dev)
- brianium/paratest: ^6.2
- nunomaduro/collision: ^5.3
- orchestra/testbench: ^6.15
- phpunit/phpunit: ^9.3
- spatie/laravel-ray: ^1.9
- vimeo/psalm: ^4.4
This package is auto-updated.
Last update: 2024-11-05 09:17:04 UTC
README
This package provides several models for interacting with a Things 3 SQLite database.
Installation
You can install the package via composer:
composer require vmitchell85/things
Add a config settings with the path to your Things 3 SQLite database:
THINGS_PATH="/Users/{YOUR_USER_NAME_HERE}/Library/Group Containers/JLMPQHK86H.com.culturedcode.ThingsMac/Things Database.thingsdatabase/main.sqlite"
Note: The path listed above is the default as of this writing. Please replace
{YOUR_USER_NAME_HERE}
with the name of the User folder on your system
Usage
The following models are available with their available relationships:
Vmitchell85\Things\Task::class
rProjects()
-Vmitchell85\Things\Project::class
rArea()
-Vmitchell85\Things\Area::class
rChecklistItems()
-Vmitchell85\Things\ChecklistItem::class
rTags()
-Vmitchell85\Things\Tag::class
Vmitchell85\Things\Project::class
rTasks()
-Vmitchell85\Things\Task::class
rArea()
-Vmitchell85\Things\Area::class
Vmitchell85\Things\Area::class
rTasks()
-Vmitchell85\Things\Task::class
rProjects()
-Vmitchell85\Things\Project::class
rTags()
-Vmitchell85\Things\Tag::class
Vmitchell85\Things\Tag::class
rTasks()
-Vmitchell85\Things\Task::class
rAreas()
-Vmitchell85\Things\Area::class
Vmitchell85\Things\ChecklistItem::class
rTask()
-Vmitchell85\Things\Task::class
More details can be found in the Wiki (Work In Progress)
Note: Tables in the Things 3 database, in some instances, have column names that are the same as the desired relation name. To simplify and attempt to prevent confusion it was decided to prefix all relations with
r
. While this
Testing
composer test
Credits
License
The MIT License (MIT). Please see License File for more information.