PHP能调用第三方动态链接库吗? 20
展开全部
一般情况下是这样的,先在require里添加想要使用的第三方插件,然后composer update,之后在app/config/app.php中添加ServiceProvider和alias。
composer.json
`"autoload": {
"classmap": [
"app/commands",
"app/controllers",
"app/models",
"app/database/migrations",
"app/database/seeds",
"app/tests/TestCase.php"
"app/your_dir/test.php"
]
},`
composer.json
`"autoload": {
"classmap": [
"app/commands",
"app/controllers",
"app/models",
"app/database/migrations",
"app/database/seeds",
"app/tests/TestCase.php"
"app/your_dir/test.php"
]
},`
推荐律师服务:
若未解决您的问题,请您详细描述您的问题,通过百度律临进行免费专业咨询