mirror of
https://github.com/grocy/grocy.git
synced 2026-04-05 20:36:15 +02:00
Kroger grocery stores allow manual access to past purchases in json form through a browser's developer tools. This class converts the Kroger json data into something Grocy can understand while doing minor error checking. Also added appropriate unit tests. In order to get this json, open developer tools and navigate to https://www.qfc.com/mypurchases (or another Kroger grocer, aka https://www.fredmeyer.com/mypurchases) and look for a call to /mypurchases/api/v1/receipt/details. The entire response will contain all recent purchases.
31 lines
648 B
JSON
31 lines
648 B
JSON
{
|
|
"require": {
|
|
"php": ">=7.2",
|
|
"slim/slim": "^4.0",
|
|
"slim/psr7": "^1.0",
|
|
"slim/http": "^1.0",
|
|
"php-di/php-di": "^6.0",
|
|
"rubellum/slim-blade-view": "^0.1.1",
|
|
"tuupola/cors-middleware": "^1.1",
|
|
"morris/lessql": "^0.4.1",
|
|
"gettext/gettext": "^4.8",
|
|
"eluceo/ical": "^0.16.0",
|
|
"erusev/parsedown": "^1.7",
|
|
"gumlet/php-image-resize": "^1.9"
|
|
},
|
|
"autoload": {
|
|
"psr-4": {
|
|
"Grocy\\Services\\": "services/",
|
|
"Grocy\\Controllers\\": "controllers/",
|
|
"Grocy\\Middleware\\": "middleware/",
|
|
"Grocy\\Helpers\\": "helpers/"
|
|
},
|
|
"files": [
|
|
"helpers/extensions.php"
|
|
]
|
|
},
|
|
"require-dev": {
|
|
"phpunit/phpunit": "9"
|
|
}
|
|
}
|