{"id":17226859,"url":"https://github.com/dantleech/phpbench2","last_synced_at":"2025-07-29T09:39:23.580Z","repository":{"id":66290727,"uuid":"231931090","full_name":"dantleech/phpbench2","owner":"dantleech","description":"Playground for PHPBench 2 ideas","archived":false,"fork":false,"pushed_at":"2020-01-07T21:49:45.000Z","size":71,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-03-25T17:51:05.805Z","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":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/dantleech.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2020-01-05T14:40:34.000Z","updated_at":"2020-01-07T21:49:48.000Z","dependencies_parsed_at":"2023-05-30T17:45:23.607Z","dependency_job_id":null,"html_url":"https://github.com/dantleech/phpbench2","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/dantleech/phpbench2","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/dantleech%2Fphpbench2","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/dantleech%2Fphpbench2/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/dantleech%2Fphpbench2/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/dantleech%2Fphpbench2/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/dantleech","download_url":"https://codeload.github.com/dantleech/phpbench2/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/dantleech%2Fphpbench2/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":267665022,"owners_count":24124441,"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","status":"online","status_checked_at":"2025-07-29T02:00:12.549Z","response_time":2574,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"can_crawl_api":true,"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-10-15T04:17:25.118Z","updated_at":"2025-07-29T09:39:23.562Z","avatar_url":"https://github.com/dantleech.png","language":"PHP","funding_links":[],"categories":[],"sub_categories":[],"readme":"Invoke\n======\n\n[![Build Status](https://travis-ci.org/dantleech/invoke.svg?branch=master)](https://travis-ci.org/dantleech/invoke)\n\nUtility class to create new classes or invoke methods using named arguments.\n\nPHP does not currently support [named\nparameters](https://wiki.php.net/rfc/named_params), this utility provides a\nconvienient way to emulate them.\n\nInstallation\n------------\n\nRequire with composer:\n\n```bash\n$ composer require dantleech/invoke\n```\n\nUsage\n-----\n\nInstantiate a new class:\n\n```php\n\u003c?php\n\nuse DTL\\Invoke\\Invoke;\n\nclass Foobar\n{\n    public function __construct(string $arg1, string $arg2 = 'val1')\n    {\n    }\n}\n\n$foo = Invoke::new(Foobar::class, [\n    'arg1' =\u003e 'value1'\n]);\n```\n\nInvoke a method:\n\n```php\n\u003c?php\n\nuse DTL\\Invoke\\Invoke;\n\nclass Foobar\n{\n    // ...\n\n    public function one(string $two)\n    {\n    }\n}\n\n$foo = Invoke::new(Foobar::class, [\n    'arg1' =\u003e 'value1'\n]);\n\n$bar= Invoke::method($foo, 'one', [\n    'two' =\u003e 'bar'\n]);\n```\n\nContributing\n------------\n\nPull requests are welcome. For major changes, please open an issue first to\ndiscuss what you would like to change.\n\nPlease make sure to update tests as appropriate.\n\nLicense\n-------\n\n[MIT](https://choosealicense.com/licenses/mit/)\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdantleech%2Fphpbench2","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fdantleech%2Fphpbench2","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdantleech%2Fphpbench2/lists"}