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