{"id":16877628,"url":"https://github.com/nikic/php-backporter","last_synced_at":"2025-10-18T09:41:31.941Z","repository":{"id":66033185,"uuid":"2160422","full_name":"nikic/PHP-Backporter","owner":"nikic","description":"Converts PHP 5.3 code to PHP 5.2 code","archived":false,"fork":false,"pushed_at":"2011-09-04T09:34:24.000Z","size":118,"stargazers_count":22,"open_issues_count":0,"forks_count":5,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-03-25T07:51:14.956Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":"","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/nikic.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}},"created_at":"2011-08-05T13:34:46.000Z","updated_at":"2021-10-22T03:20:44.000Z","dependencies_parsed_at":"2023-02-19T21:30:39.954Z","dependency_job_id":null,"html_url":"https://github.com/nikic/PHP-Backporter","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/nikic%2FPHP-Backporter","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/nikic%2FPHP-Backporter/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/nikic%2FPHP-Backporter/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/nikic%2FPHP-Backporter/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/nikic","download_url":"https://codeload.github.com/nikic/PHP-Backporter/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":248384307,"owners_count":21094699,"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-10-13T15:44:34.006Z","updated_at":"2025-10-18T09:41:31.831Z","avatar_url":"https://github.com/nikic.png","language":"PHP","funding_links":[],"categories":[],"sub_categories":[],"readme":"PHP Backporter\n==============\n\nCurrently supported\n-------------------\n\n* `const` statements (converted into `define` function calls)\n* `__DIR__` magic constant (converted into `dirname(__FILE__)`)\n* Lambda functions (converted into normal functions)\n* Closures (converted into classes)\n* Namespaces (converted into underscore-separated pseudo namespaces)\n\nLimitations\n-----------\n\n### Closures ###\n\nClosures are represented by a callable array, so calls of type $function() will be transformed\ninto call_user_func(_array) calls. This can be a problem is functions expect arguments by reference.\n\n### Namespaces ###\n\nThe current namespaces implementation is very limited. Most notably it assumes all unqualified uses\nof constants and functions are global if a global constant with such a name is defined and local if\nit is not. Additionally many dynamic constructs do not work yet.\n\nToDo\n----\n\n* Dynamic scope resolution (`$className::`)\n* Short ternary operator\n* Late static binding (?)\n* `__callStatic` magic (?)\n* `__invoke` magic (?)\n* `goto` (?)\n* ...","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fnikic%2Fphp-backporter","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fnikic%2Fphp-backporter","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fnikic%2Fphp-backporter/lists"}