PHPasap doesn't require composer to install any of it's core features. But it supports composer just in case you want to add any third party library using composer.


So say you want to add the popular SwiftMailer library to your application. You would install it as usual using composer. Below is the command for same taken from their official docs

composer require swiftmailer/swiftmailer

That's it.

One thing to note is that when you would be using any of the SwiftMailer classes in your Controller make sure you reference them by thier full name. So instead of Swift_Message you would be using \Swift_Message. The \ at the beginning means this class is in global namespace.