I am learning WordPress Plugin development. I am going to submit the plugin in wordpress.org.
In this regard how can I use Composer in my plugin ?
When should I run composer install
? Should I run command before submit ?
You are using composer to install libraries for your project, that you later use in your code, so yes, you should run and use composer during development, finish your whole code, and then you can submit your plugin with final code.
When you first submit your plugin, WordPress team is evaluating your code in terms of security, good practices etc. so the code you are submitting should be your final, working and tested code.
composer install
at the time of plugin development. After that I'll package up the result and submit to wordpress.org. Right ? I read this post wordpress.stackexchange.com/questions/352863/….
composer install
? Should I run command before submit ?