PHP code example of jetty / client
1. Go to this page and download the library: Download jetty/client library. Choose the download type require. 2. Extract the ZIP file and open the index.php. 3. Add this code to the index.php.
<?php
require_once('vendor/autoload.php');
/* Start to develop here. Best regards https://php-download.com/ */
jetty / client example snippets
if ($request->headers->has('X-Forwarded-Host')) {
\Illuminate\Support\Facades\URL::forceRootUrl($request->getSchemeAndHttpHost());
}
bash
composer run jetty -- share 8000 --verbose
php bin/jetty share 8000 --no-js-rewrite
bash
git clone https://github.com/yourorg/jetty-client.git
cd jetty-client
composer install
composer run build-phar
php dist/jetty-php.phar version