# Use Composer
WARNING
This feature requires Blessing Skin v3.5.0 or later
Sometimes your plugin may require some PHP libraries. The common practice is to use Composer to install these dependencies.
Composer will download and decompress the dependencies in the
vendor
directory of the project directory, and Blessing Skin will
automatically scan and load the vendor
directory, so you can easily
enjoy the convenience brought by package management without any
configuration.
# usage
In your plugin directory, execute composer
to install dependencies,
for example:
composer require vendor/package
Although Composer will generate composer.json
and
composer.lock
files, these files will not be used by Blessing Skin and
will not affect the work of Blessing Skin.
Then use the library you just installed as normal in your plugin code.
It should be noted that when you want to package your plugin for
publishing or sharing, you must package the vendor
directory,
otherwise your plugin will not work properly.