{"id":18864325,"url":"https://github.com/devtronic/call-user-func-assoc","last_synced_at":"2026-02-11T07:30:20.269Z","repository":{"id":56967101,"uuid":"91265192","full_name":"devtronic/call-user-func-assoc","owner":"devtronic","description":"call_user_func_assoc PHP Function","archived":false,"fork":false,"pushed_at":"2018-06-27T21:37:09.000Z","size":11,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":2,"default_branch":"master","last_synced_at":"2024-12-30T21:29:12.661Z","etag":null,"topics":["composer-package","php","php7","reflection"],"latest_commit_sha":null,"homepage":null,"language":"PHP","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"lgpl-3.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/devtronic.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-05-14T19:05:38.000Z","updated_at":"2018-06-27T21:37:10.000Z","dependencies_parsed_at":"2022-08-21T06:10:21.858Z","dependency_job_id":null,"html_url":"https://github.com/devtronic/call-user-func-assoc","commit_stats":null,"previous_names":[],"tags_count":3,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/devtronic%2Fcall-user-func-assoc","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/devtronic%2Fcall-user-func-assoc/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/devtronic%2Fcall-user-func-assoc/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/devtronic%2Fcall-user-func-assoc/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/devtronic","download_url":"https://codeload.github.com/devtronic/call-user-func-assoc/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":239808525,"owners_count":19700451,"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":["composer-package","php","php7","reflection"],"created_at":"2024-11-08T04:40:53.350Z","updated_at":"2026-02-11T07:30:20.206Z","avatar_url":"https://github.com/devtronic.png","language":"PHP","funding_links":[],"categories":[],"sub_categories":[],"readme":"[![Travis](https://img.shields.io/travis/Devtronic/call-user-func-assoc.svg)](https://travis-ci.org/Devtronic/call-user-func-assoc)\n[![Packagist](https://img.shields.io/packagist/v/devtronic/call-user-func-assoc.svg)](https://packagist.org/packages/devtronic/call-user-func-assoc)\n[![GitHub license](https://img.shields.io/badge/license-LGPL3.0-blue.svg)](https://raw.githubusercontent.com/devtronic/call-user-func-assoc/master/LICENSE)\n[![Packagist](https://img.shields.io/packagist/dt/devtronic/call-user-func-assoc.svg)](https://packagist.org/packages/devtronic/call-user-func-assoc)\n\n# Call User Func Assoc\n\nCalls a function with an associative array.\n\n## Installation\nInstall it via composer\n```sh\n$ composer require devtronic/call-user-func-assoc\n```\n\n## Usage\n```php\n\u003c?php\n\nrequire_once __DIR__ . '/vendor/autoload.php';\n\nfunction sayHello($name, $age = '*not set*')\n{\n    echo sprintf(\"Hello, my name is %s and I'm %s years old\", $name, $age);\n}\n\ncall_user_func_assoc('sayHello', ['Julian', 23]);\n// Hello, my name is Julian and I'm 23 years old\n\ncall_user_func_assoc('sayHello', [23, 'Julian']);\n// Hello, my name is 23 and I'm Julian years old\n\ncall_user_func_assoc('sayHello', ['age' =\u003e 23, 'name' =\u003e 'Julian']);\n// Hello, my name is Julian and I'm 23 years old\n\ncall_user_func_assoc('sayHello', ['name' =\u003e 'Julian']);\n// Hello, my name is Julian and I'm *not set* years old\n\n```\n\n## Testing\n`$ phpunit`","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdevtronic%2Fcall-user-func-assoc","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fdevtronic%2Fcall-user-func-assoc","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdevtronic%2Fcall-user-func-assoc/lists"}