{"id":18320679,"url":"https://github.com/xtlsoft/cachedrecursion","last_synced_at":"2025-04-09T14:29:04.791Z","repository":{"id":57085103,"uuid":"104475378","full_name":"xtlsoft/CachedRecursion","owner":"xtlsoft","description":"Easily make cached calls especially in slowly recursions in PHP.","archived":false,"fork":false,"pushed_at":"2017-12-23T10:59:52.000Z","size":5,"stargazers_count":0,"open_issues_count":0,"forks_count":1,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-02-15T08:30:45.884Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"PHP","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/xtlsoft.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2017-09-22T13:06:18.000Z","updated_at":"2018-10-25T13:55:10.000Z","dependencies_parsed_at":"2022-08-25T00:50:10.862Z","dependency_job_id":null,"html_url":"https://github.com/xtlsoft/CachedRecursion","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/xtlsoft%2FCachedRecursion","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/xtlsoft%2FCachedRecursion/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/xtlsoft%2FCachedRecursion/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/xtlsoft%2FCachedRecursion/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/xtlsoft","download_url":"https://codeload.github.com/xtlsoft/CachedRecursion/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":248054826,"owners_count":21040072,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":[],"created_at":"2024-11-05T18:17:06.315Z","updated_at":"2025-04-09T14:29:04.765Z","avatar_url":"https://github.com/xtlsoft.png","language":"PHP","funding_links":[],"categories":[],"sub_categories":[],"readme":"# CachedRecursion\nEasily make cached calls especially in slowly recursions in PHP.\n\n## Install\n`composer require xtlsoft/cachedrecursion`\n\n## Usage\n```php\n\u003c?php\n\t\n\tuse \\CachedRecursion\\Factory;\n\t\n\t$func = Factory::cached(\n\t\t[\n\t\t\t\"n\" \n\t\t],\n\t\tfunction($param, $next, $solve){\n\t\t\t\n\t\t\tif($param['n'] == 1) return $solve(1);\n\t\t\telse return $solve($param['n'] * $next($param['n']-1));\n\t\t\t\n\t\t}\n\t);\n\t\n\techo $func(1);\n```\nIsn't it easy?\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fxtlsoft%2Fcachedrecursion","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fxtlsoft%2Fcachedrecursion","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fxtlsoft%2Fcachedrecursion/lists"}