{"id":23092645,"url":"https://github.com/kjdev/php-ext-override","last_synced_at":"2025-08-16T10:31:13.666Z","repository":{"id":4216093,"uuid":"5337319","full_name":"kjdev/php-ext-override","owner":"kjdev","description":"Override function Extension for PHP","archived":false,"fork":false,"pushed_at":"2012-10-18T00:52:43.000Z","size":100,"stargazers_count":5,"open_issues_count":0,"forks_count":1,"subscribers_count":3,"default_branch":"master","last_synced_at":"2024-11-18T00:52:35.816Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"C","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"other","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/kjdev.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":"2012-08-08T04:55:26.000Z","updated_at":"2022-09-10T03:41:41.000Z","dependencies_parsed_at":"2022-09-12T05:50:25.931Z","dependency_job_id":null,"html_url":"https://github.com/kjdev/php-ext-override","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/kjdev%2Fphp-ext-override","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/kjdev%2Fphp-ext-override/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/kjdev%2Fphp-ext-override/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/kjdev%2Fphp-ext-override/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/kjdev","download_url":"https://codeload.github.com/kjdev/php-ext-override/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":230029158,"owners_count":18161991,"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-12-16T21:35:33.722Z","updated_at":"2024-12-16T21:35:34.539Z","avatar_url":"https://github.com/kjdev.png","language":"C","readme":"# Override function Extension for PHP #\n\n[![Build Status](https://secure.travis-ci.org/kjdev/php-ext-override.png?branch=master)](http://travis-ci.org/kjdev/php-ext-override)\n\nThis extension allows overrides functions.\n\n## Function ##\n\n* override\\_function — Overrides functions\n\n### override\\_function — Overrides functions ###\n\n#### Description ####\n\nbool **override\\_function** ( string _$name_ , string _$args_ , string _$code_ [ , string _$origin_ ] )\n\nOverrides functions by replacing them in the symbol table.\n\n#### Pameters ####\n\n* _name_\n\n  The function to override.\n\n* _args_\n\n  The function arguments, as a comma separated string.\n\n* _code_\n\n  The new code for the function.\n\n* _origin_\n\n  Original function to rename.\n\n#### Return Values ####\n\nReturns TRUE on success or FALSE on failure.\n\n## Examples ##\n\n    override_function('test', '$a,$b', 'echo \"TEST\"; return $a * $b;');\n    override_function('test', '$a,$b', 'echo \"TEST\"; return $a * $b;', 'origin_test');\n","funding_links":[],"categories":[],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fkjdev%2Fphp-ext-override","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fkjdev%2Fphp-ext-override","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fkjdev%2Fphp-ext-override/lists"}