《使开发人员能够使用 ibexa rector 轻松升级.pdf》由会员分享,可在线阅读,更多相关《使开发人员能够使用 ibexa rector 轻松升级.pdf(18页珍藏版)》请在三个皮匠报告上搜索。
1、Empowering developers to easily upgrade projects with Ibexa RectorANDREW LONGOSZAbout mehttps:/ LongoszFrom Katowice,PolandSenior Software Engineer at Ibexas core development PHP TeamWith the Company since 2016Areas of interest:databases,public APIs,product maintenance&releasesAfter work:addicted to
2、 teamwork cooperation video gamesWhat is Ibexa Rector?Automated refactoring toolBuilt on top of RectorPHP:https:/ Nikita Popovs PHP Parser:https:/ for easier upgrade of projects codebase at scaleInstalling Ibexa RectorConfiguringConfiguration available as a flex reciperector.php file in a project di
3、rectoryRequires PHP 8.3Adding Symfony set listsrector/rector-symfony packageAssuming you have rector.php file in your project directory,run there:Running RectorUsing RectorLive demo timeCreating custom rulesUse Rectors built-in,interactive,command for any project-specific use caseGenerate directory
4、structure:Projectspecific rulesImplement rules Rector inside generated classAdd test coverage using generated structure&test classRepresented in Nikics PHP Parser as an array of nested objects corresponding to all the nodesAbstract Syntax TreeCreated by ChatGPTCreating custom Rector rulesLive demo t
5、imeContributing to Ibexa RectorIbexa-specific rulesClone ibexa/rector packageGenerate file&directory structureContributing to Ibexa RectorDirectory structureWrite rule,write testsCreate a Pull Request to ibexa/rectorContributing to Ibexa RectorLive demo timeIbexa Rector is an Open Source package,supported for versions 4.6 LTS,5.0 LTS,and beyondIt speeds up project refactoring by automating itIt requires PHP 8.3Its capabilities will grow given real use cases discoveredClosing wordsQ&AThank you!Get Ibexa Rector:Slide deck&examples:https:/