{"id":13805834,"url":"https://github.com/diplopito/Phalcon-Upgrade-Adviser","last_synced_at":"2025-05-13T21:31:36.805Z","repository":{"id":202430182,"uuid":"206015697","full_name":"diplopito/Phalcon-Upgrade-Adviser","owner":"diplopito","description":"Returns a log with changes to make in order to upgrade Phalcon from 3.x to 4.x, 3.x to 5.1.x or from 4.x to 5.1.x","archived":false,"fork":false,"pushed_at":"2022-12-27T09:14:31.000Z","size":67,"stargazers_count":11,"open_issues_count":0,"forks_count":2,"subscribers_count":1,"default_branch":"master","last_synced_at":"2024-08-04T01:05:31.369Z","etag":null,"topics":["phalcon","phalcon-framework","phalcon-php"],"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/diplopito.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,"governance":null}},"created_at":"2019-09-03T07:28:15.000Z","updated_at":"2024-06-25T17:05:26.000Z","dependencies_parsed_at":null,"dependency_job_id":"2ca59528-4fdd-48e6-874b-c04efad9fef5","html_url":"https://github.com/diplopito/Phalcon-Upgrade-Adviser","commit_stats":null,"previous_names":["diplopito/phalcon-upgrade-adviser"],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/diplopito%2FPhalcon-Upgrade-Adviser","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/diplopito%2FPhalcon-Upgrade-Adviser/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/diplopito%2FPhalcon-Upgrade-Adviser/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/diplopito%2FPhalcon-Upgrade-Adviser/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/diplopito","download_url":"https://codeload.github.com/diplopito/Phalcon-Upgrade-Adviser/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":225260363,"owners_count":17446085,"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":["phalcon","phalcon-framework","phalcon-php"],"created_at":"2024-08-04T01:01:05.403Z","updated_at":"2024-11-18T22:30:45.673Z","avatar_url":"https://github.com/diplopito.png","language":"PHP","funding_links":[],"categories":["Miscellaneous"],"sub_categories":[],"readme":"# Phalcon Upgrade Adviser (Unofficial)\nThis console application aims to smooth the upgrade process from Phalcon 3.4.x to 4.0.x, 3.4.x to 5.1.3 or 4.0.x up to 5.1.3 by indexing all the PHP files in a project and listing all the Phalcon classes that must be changed per file. \n\nThe Adviser is a companion to the [Official Phalcon upgrade guide to v4](https://github.com/phalcon/docs/blob/4.0/en/upgrade.md) and to the [Official Phalcon upgrade guide to v5](https://github.com/phalcon/docs/blob/5.0/en/upgrade.md): whenever the log points to a _renamed_ class, it is recommended to check the guide to know exactly what has to be changed. The Adviser is limited to new, renamed and removed classes. Other changes, like adding a handle to new applications, must be done following the guide.\n\n## Requirements\n- Php 7+ or 8+;\n\n## Usage\n- Open a terminal window;\n- Command line `php cli.php {upgradePath} {pathToObj} {logfile} ` where:\n1. `upgradePath` (Required): must be `v3to4`to upgrade from Phalcon 3 to 4, `v3to5` to upgrade from Phalvon 3 to 5 or `v4to5` to upgrade from Phalcon 4 to 5;\n2. `pathToObj` (Required): must be the path to the directory of the project that you want to upgrade or to a single file;\n3. `logfile` (optional): file to log the upgrading steps (if not provided, \"upgraderLog.txt\" will be used by default).\n\n### Example:\n```php\n//Migrating a project from Phalcon 3.4.5 to 4.1.2\n//For full app upgrade provide the path to the app:\nphp cli.php v3to4 /mnt/f/xampp/htdocs/xtest/vokuro vokuroLog.txt //stores result in log file `vokuroLog.txt`\n```\nView [Log file](https://github.com/diplopito/Phalcon-Upgrade-Adviser/blob/master/vokuroLog.txt)\n\n```php\n//Migrating a project from Phalcon 4.1.3 to 5.1.3\nphp cli.php v4to5 F:\\xampp\\htdocs\\xtest\\vokuro-4.1 vokuro4to5.txt\n```\nView [Log file](https://github.com/diplopito/Phalcon-Upgrade-Adviser/blob/master/vokuro4to5.txt)\n\n```php\n//To check just one file; result will be returned to terminal:\nphp cli.php v3to4 /mnt/f/xampp/htdocs/xtest/vokuro/app/library/Acl/Acl.php\n\n//Returns:\n/mnt/f/xampp/htdocs/xtest/vokuro/app/library/Acl/Acl.php:\nPhalcon\\Mvc\\User\\Component =\u003e  Renamed to Phalcon\\Di\\AbstractInjectionAware\nPhalcon\\Acl\\Adapter\\Memory =\u003e No changes (Might need to check types)\nPhalcon\\Acl\\Role =\u003e No changes (Might need to check types)\nPhalcon\\Acl\\Resource =\u003e  Renamed to Phalcon\\Acl\\Component\nPhalcon\\Acl\\Adapter\\Memory =\u003e No changes (Might need to check types)\nPhalcon\\Acl\\Adapter\\Memory =\u003e No changes (Might need to check types)\nPhalcon\\Acl\\Adapter\\Memory =\u003e No changes (Might need to check types)\nPhalcon\\Acl::DENY) =\u003e Check possible changes in constant\n```\n\n\n## Note\nThe Adviser will skip the _.volt_ files, _.git_ and _vendor_ directories.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdiplopito%2FPhalcon-Upgrade-Adviser","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fdiplopito%2FPhalcon-Upgrade-Adviser","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdiplopito%2FPhalcon-Upgrade-Adviser/lists"}