PHP code example of gclove / thrift-laravel
1. Go to this page and download the library: Download gclove/thrift-laravel 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/ */
gclove / thrift-laravel example snippets
`
/** @var \Gclove\Thrift\Contracts\ThriftClient $thriftClient */
$thriftClient = app(\Gclove\Thrift\Contracts\ThriftClient::class);
/** @var \Gclove\ImageServiceIf $imageService */
$imageService = $thriftClient->with('Gclove.ImageService');
$result = $imageService->foo();