Use php libarary in wordpress plugins

You can always use the Composer when making a plugin and require all its dependencies. But as MikenGarrett said, finally you have to bundle all the required vendors into the plugin as a whole package.

There are WordPress repository, containing /vendor/ directory1 and their development environment containing composer.json file declaring production-dependencies ('require')2.

But using Composer you will get a /vendor/ directory and vendor directory is excluded while scraping strings for translation in WordPress plugin repository. Some people suggest changing the name of the /vendor/ directory into something else like /packages/ to scrape their strings too.

Thanks to Pascal Birchler, Tor-Björn Fjellner, Aristeides Stathopoulos for assisting in this matter.

error code: 523