k-kaufmann / chefkoch-api
Basic client to read data from chefkoch.de
Installs: 16
Dependents: 0
Suggesters: 0
Security: 0
Stars: 7
Watchers: 4
Forks: 1
Open Issues: 0
pkg:composer/k-kaufmann/chefkoch-api
Requires
- ext-json: *
- guzzlehttp/guzzle: ^7.2
Requires (Dev)
- phpunit/phpunit: ^9.5
- squizlabs/php_codesniffer: ^3.5
This package is auto-updated.
Last update: 2025-12-27 10:45:47 UTC
README
PHP library to access API data from chefkoch.de
Get started
<?php use chefkoch\ChefkochFactory; $chefkochFactory = new ChefkochFactory(); $apiClient = $chefkochFactory->createApiClient(); $user = $apiClient->getUserById("INPUT_USER_ID"); $simpleRecipes = $apiClient->getRecipes("OFFSET"); $categories = $apiClient->getCateogries(); $recipe = $apiClient->getRecipeById("RECIPE_ID");
Data
Accessible data from the API
User
idtype:stringusernametype:stringranktype:integerhasAvatartype:booleanhasPaidtype:booleandeletedtype:boolean
SimpleRecipe (for requests to get a list of recipes)
idtype:stringtypetype:inttitletype:stringsubtitletype:stringownertype:arrayratingtype:arraydifficultytype:inthasImagetype:boolhasVideotype:boolpreviewImageIdtype:?stringpreparationTimetype:intisSubmittedtype:boolisRejectedtype:boolimageCounttype:intcreatedAttype:DateTimeeditortype?stringsubmissionDatetype:?DateTimeisPremiumtype:boolstatustype:intsiteUrltype:string
Recipe
idtype:stringtypetype:inttitletype:stringsubtitletype:stringownertype:arrayratingtype:arraydifficultytype:inthasImagetype:boolhasVideotype:boolpreviewImageIdtype:stringpreparationTimetype:intisSubmittedtype:boolisRejectedtype:boolcreatedAttype:DateTimeimageCounttype:inteditortype:?arraysubmissionDatetype:?DateTimeisPremiumtype:boolstatustype:intservingstype:intkCaloriestype:intinstructiontype:stringmiscellaneousTexttype:stringingredientsTexttype:stringtagstype:arrayfullTagstype:arrayviewCounttype:intcookingTimetype:intrestingTimetype:inttotalTimetype:intingredientsGroupstype:arraycategoryIdstype:arrayrecipeVideoIdtype:stringisIndexabletype:boolsiteUrltype:string
Category
idtype:string,titletype:string,parentIdtype:?string,leveltype:int,descriptionText, type:string,linkName, type:string