PHP-phantomJSをインストールしようとしています。
環境はhomesteadです。
設定は以下の通りにしました。
composer.json
composer.json
1 2{ 3 "scripts": { 4 "post-install-cmd": [ 5 "PhantomInstaller\Installer::installPhantomJS" 6 ], 7 "post-update-cmd": [ 8 "PhantomInstaller\Installer::installPhantomJS" 9 ] 10 }, 11 "config": { 12 "bin-dir": "bin" 13 } 14}
composer require "jonnyw/php-phantomjs:4.*"
コマンド実行
コマンド実行時
./composer.json has been updated Loading composer repositories with package information Updating dependencies (including require-dev) Package operations: 9 installs, 0 updates, 0 removals - Installing symfony/polyfill-ctype (v1.10.0): Loading from cache - Installing twig/twig (v1.37.1): Loading from cache - Installing symfony/yaml (v3.4.21): Loading from cache - Installing symfony/filesystem (v3.4.21): Loading from cache - Installing psr/container (1.0.0): Loading from cache - Installing symfony/dependency-injection (v3.4.21): Loading from cache - Installing symfony/config (v3.4.21): Loading from cache - Installing jakoch/phantomjs-installer (2.1.1): Loading from cache - Installing jonnyw/php-phantomjs (v4.5.1): Loading from cache symfony/yaml suggests installing symfony/console (For validating YAML files using the lint command) symfony/dependency-injection suggests installing symfony/expression-language (For using expressions in service container configuration) symfony/dependency-injection suggests installing symfony/finder (For using double-star glob patterns or when GLOB_BRACE portability is required) symfony/dependency-injection suggests installing symfony/proxy-manager-bridge (Generate service proxies to lazy load them) Writing lock file Generating autoload files > PhantomInstaller\Installer::installPhantomJS - Installing phantomjs (2.1.1): Downloading (100%) - Installing phantomjs (2.1.1): Downloading (100%) - Installing phantomjs (2.1.1): Downloading (100%) - Installing phantomjs (2.1.1): Downloading (100%)
これでbinディレクトリが作成されることを想定していたのですが、vendorディレクトリしか作成されませんでした。
正しいインストール方法を教えていただきたいです。
回答2件
あなたの回答
tips
プレビュー