Hi Sugar Devs,
At SugarCRM, we're constantly striving to make our platform more accessible and efficient for developers. We understand that one of the challenges developers face is ensuring that their Sugar code is compatible with supported Sugar releases that may use different versions of PHP.
For example, while Sugar 12.0 supports PHP 7.4, Sugar Enterprise 13.0 supports PHP 8.0 and 8.2. How can Sugar Add-Ons take advantage of PHP 8 features in Sugar 13.0 when you have customers using PHP 7.4 on Sugar 12.0? And how can I identify incompatible customizations and easily fix them prior to a Sugar 13.0 upgrade?
That's why we're excited to announce a new guide we created that shows you an automated solution that you can apply to your Sugar Add-Ons and other code customizations.
Rector: Automated PHP Compatibility Tool
The SugarCRM Product team has adopted a tool called Rector for the automated refactoring of PHP code. Rector is designed to help developers easily and quickly identify any compatibility issues their code might have with the latest versions of PHP. The tool works by "understanding" your codebase and providing a detailed report on any deprecated functions, syntax changes, and other compatibility issues that could potentially cause problems.
What makes Rector so special is that it's fully automated. This means that developers don't have to spend hours manually testing their code or figuring out which PHP version their code is compatible with. Instead, the tool does all the heavy lifting, allowing developers to focus on more important aspects of their work. In addition to being incredibly convenient, Rector is also incredibly accurate.
The Automated PHP Compatibility Guide
Our new Automated PHP Compatibility Tool guide is structured in a way that you can set up and use in different ways such as making your MLPs (Module Loadable Packages) compatible or your customizations not in MLPs.
You will learn how to make your PHP code compatible with the latest versions and how to code with the latest version of PHP and make it backward compatible as well.
We're excited to offer this tool to our developer community and believe it will be an invaluable resource for anyone working with PHP. We encourage all developers to give it a try and see for themselves how it can streamline their workflow and help them produce better code.
To get started with our guide, simply head over to our Dev Tutorials section, find the Automated PHP Compatibility tool guide, and follow the instructions provided.