{"id":13669274,"url":"https://github.com/endel/php-code-downgrade","last_synced_at":"2025-04-09T19:52:35.052Z","repository":{"id":25081335,"uuid":"28501858","full_name":"endel/php-code-downgrade","owner":"endel","description":"Make your PHP 5.4+ codebase compatible with PHP 5.3.","archived":false,"fork":false,"pushed_at":"2016-01-20T21:18:55.000Z","size":7,"stargazers_count":46,"open_issues_count":3,"forks_count":7,"subscribers_count":6,"default_branch":"master","last_synced_at":"2025-03-23T21:51:51.541Z","etag":null,"topics":["downgrade","php","php-5"],"latest_commit_sha":null,"homepage":"","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/endel.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":"2014-12-26T06:19:02.000Z","updated_at":"2023-11-30T10:29:04.000Z","dependencies_parsed_at":"2022-07-10T11:46:12.109Z","dependency_job_id":null,"html_url":"https://github.com/endel/php-code-downgrade","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/endel%2Fphp-code-downgrade","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/endel%2Fphp-code-downgrade/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/endel%2Fphp-code-downgrade/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/endel%2Fphp-code-downgrade/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/endel","download_url":"https://codeload.github.com/endel/php-code-downgrade/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":248103910,"owners_count":21048244,"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":["downgrade","php","php-5"],"created_at":"2024-08-02T08:01:08.272Z","updated_at":"2025-04-09T19:52:35.033Z","avatar_url":"https://github.com/endel.png","language":"PHP","readme":"php-code-downgrade\n===\n\nTool to downgrade your PHP codebase from PHP 5.4+ to PHP 5.3. Built on top of\n[galapagos](https://github.com/endel/galapagos).\n\nConsider including\n[php5.3-compatibility](https://github.com/packfire/php5.3-compatibility) package\nin your project, which includes `JsonSerializable` and\n`SessionHandlerInterface`.\n\nYou may have to manually fix some remaining problems, usually they're quite simple.\n\nWhy?\n---\n\nUse it when you have a PHP 5.4+ codebase and just can't upgrade your client's\ninfrastructure.\n\nFeatures\n---\n\n- Convert new array syntax to old one. (`[1,2,3]` to `array(1,2,3)`)\n- Inject traits code into classes that use them.\n- Analyze every vendor's `composer.json` and convert them if it's needed\n- Downgrade function calls with different signature.\n  * `stream_context_create`\n  * `session_set_save_handler`\n- Custom node transformations\n\nUsage\n---\n\n```\n./php-code-downgrade [path-to-downgrade]\n```\n\nUsing custom node transformations:\n\n```\n./php-code-downgrade [path-to-downgrade] -t transformations/phalanger\n```\n\nLicense\n---\n\nMIT\n","funding_links":[],"categories":["PHP"],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fendel%2Fphp-code-downgrade","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fendel%2Fphp-code-downgrade","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fendel%2Fphp-code-downgrade/lists"}