PHP Package: packaged/thrift

PHP library for efficient data serialization and inter-process communication, offering scalable and cross-language support.

Current Version: 0.17.0
Last Updated: 2025-05-27
PHP Requirement: ^5.5 || ^7.0 || ^8.0
Dependencies:
facebook/fbthrift
php-fig/log
php-fig/container
⚠️ To ensure full functionality, the above dependencies might be required.

Package Description

Thrift PHP library provides robust tools for serializing and deserializing data structures across multiple languages, fostering seamless communication in distributed environments. It optimizes network traffic, enhances performance, and ensures compatibility, making it ideal for large-scale systems and microservices architectures.

📦 Show all available classes🔗 View on GitHub

Download Latest Version: 0.17.0

Download Download v0.17.0

Previous Versions

Code Integration Example

Make sure to include the correct namespace and class paths for proper usage.

<?php
// Example from PHPlibraries.com
require_once 'libs/packaged/thrift/0.17.0/loader.php';
require_once 'libs/facebook/fbthrift/{lib_version}/loader.php';
require_once 'libs/php-fig/log/3.0.2/loader.php';
require_once 'libs/php-fig/container/{lib_version}/loader.php';

use Thrift\TSerializer;
use Thrift\TDeserializer;
use Thrift\Transport\TFramedTransport;

$obj = new TSerializer();
echo '✅ Test OK: ' . get_class($obj);
?>

We aim to make using PHP packages easier without Composer. If something doesn't work, let us know — we'll fix it promptly.

Community Discussion

Ask questions, share tips, or report issues below.