首页 > 代码库 > htmlbuilder php phantomjs

htmlbuilder php phantomjs

*

参考文章:php-phantomjs

composer.json

{
        "scripts": {
			"post-install-cmd": [
				"PhantomInstaller\\Installer::installPhantomJS"
			],
			"post-update-cmd": [
				"PhantomInstaller\\Installer::installPhantomJS"
			]
		},
		"config": {
			"bin-dir": "bin"
		},
        "require": {
                "jonnyw/php-phantomjs": "4.*"
        }
}

*

cmd

D:\software\WebServer\apache\Apache24\htdocs\builder_front>composer require "jonnyw/php-phantomjs:4.*"
./composer.json has been updated
Loading composer repositories with package information
Updating dependencies (including require-dev)

*

结果

技术分享

*

 产生的文件目录

技术分享

*

技术分享

 

*

htmlbuilder php phantomjs