qsoftvn / seo
用于 Laravel 的 Seo Angular
dev-master / 1.3.x-dev
2018-04-23 11:31 UTC
Requires
- php: ~5.5|~7.0
- illuminate/support: ~5.1
- jonnyw/php-phantomjs: 4.*
- soapbox/laravel-formatter: ^2.0
Requires (Dev)
- phpunit/phpunit: 4.*
- scrutinizer/ocular: ~1.1
- squizlabs/php_codesniffer: ~2.3
This package is not auto-updated.
Last update: 2024-09-14 19:31:18 UTC
README
如何安装
建议您使用 Composer 安装 PHP PhantomJS。首先,将以下内容添加到您的项目的 composer.json
文件中
"scripts": { "post-install-cmd": [ ... "PhantomInstaller\\Installer::installPhantomJS" ], "post-update-cmd": [ ... "PhantomInstaller\\Installer::installPhantomJS" ] }
这将确保您的系统 bin 文件夹中安装了 PhantomJS 的最新版本。如果您在 composer.json
中未定义 bin 文件夹,请添加路径
"config": { ... "bin-dir": "bin" }
安装 composer 包
composer require qsoftvn/seo:dev-master
供应商
Qsoftvn\Seo\SeoServiceProvider::class,
别名
'QsoftClawer' => Qsoftvn\Seo\Support\Facades\QsoftClawer::class, 'QsoftCache' => Qsoftvn\Seo\Support\Facades\QsoftCache::class,
发布配置
php artisan vendor:publish --provider="Qsoftvn\Seo\SeoServiceProvider"
从 qsoft_seo.php 更新 phantom_path
* base_path('bin/phantomjs.exe') | window * base_path('bin/phantomjs') | linux 'phantom_path' => env('PHANTOMJS_PATH', null),