admin管理员组

文章数量:1122832

I am learning WordPress Plugin development. I am going to submit the plugin in wordpress.

In this regard how can I use Composer in my plugin ?

When should I run composer install ? Should I run command before submit ?

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 ?

Share Improve this question edited Aug 7, 2024 at 5:22 Foysal asked Aug 6, 2024 at 7:51 FoysalFoysal 4451 gold badge5 silver badges15 bronze badges 2
  • 4 you can use composer like in any php development. edit your question to give more details. – mmm Commented Aug 6, 2024 at 8:43
  • Thanks @mmm. When should I run composer install ? Should I run command before submit ? – Foysal Commented Aug 7, 2024 at 5:22
Add a comment  | 

1 Answer 1

Reset to default 2

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.

本文标签: Using Composer in Plugin