Answer the question
In order to leave comments, you need to log in
Connecting a package without a namespace, how?
How to include a package in a project that doesn't have a namespace, more precisely how to make it usable for a laravel project.
serj1chen/way-for-pay-sdk-php - this package is interesting.
connected it via composer.json
"type": "package",
"package": {
"name": "serj1chen/way-for-pay-sdk-php",
"version": "dev-master",
"source": {
"url": "https://github.com/serj1chen/way-for-pay-sdk-php.git",
"type": "git",
"reference": "origin/master"
}
}
Answer the question
In order to leave comments, you need to log in
You need to set the path to the class
"autoload": {
"classmap": [
"vendor/serj1chen/way-for-pay-sdk-php/WayForPay.php"
]
},
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question