install non yii2 extension

Is there a way to install a non yii2 extension via composer?

Read the guide section Working with Third-Party Code