Blogger Information
Blog 2
fans 0
comment 0
visits 2079
Popular Tutorials
More>
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template
laravel引入第三方类库的方法
叶枫的博客
Original
1545 people have browsed it

laravel版本:5.1

今天做的是引入第三方的phpquery类库,方法:

在laravel的app目录下自定义一个文件夹,我用的名字是:Libs

然后直接将phpquery类库扔进这个目录

1446131334624548.jpg


在composer.json中的autoload下的classmap下加入"app/Libs/phpQuery"

1446131489835438.jpg


然后在命令行中运行

composer dumpautoload

5.接下来就可以直接在控制器中使用phpquery类了。


1446131983410783.jpg

原文地址

Statement of this Website
The copyright of this blog article belongs to the blogger. Please specify the address when reprinting! If there is any infringement or violation of the law, please contact admin@php.cn Report processing!
All comments Speak rationally on civilized internet, please comply with News Comment Service Agreement
0 comments
Author's latest blog post