I have to include this extension borales/yii2-phone-input to my projects.
From the installation documentation, there are two ways to install
- run composer require
- add "borales/yii2-phone-input": "*" to composer.json
If using the command line everything works well, but due to some limitations I have to install the extension using the second method. But it prompts this error. Class 'borales\extensions\phoneInput\PhoneInputValidator' not found
My composer.json
"require" : {
"borales/yii2-phone-input": "*",
"giggsey/locale": "^1.7",
"symfony/polyfill-mbstring": "^1.17",
"bower-asset/intl-tel-input": "^16",
"giggsey/libphonenumber-for-php": "^8"
}
I have searched for few solutions, but unfortunately no luck to solve my problem.
- How do I install Composer PHP packages without Composer?
- Check all related dependencies on https://packagist.org/packages/borales/yii2-phone-input
My question is how to install the extension without this command
$ php composer.phar require "borales/yii2-phone-input" "*"