PHPackages                             byte16/thrift - PHPackages - PHPackages  [Skip to content](#main-content)[PHPackages](/)[Directory](/)[Categories](/categories)[Trending](/trending)[Leaderboard](/leaderboard)[Changelog](/changelog)[Analyze](/analyze)[Collections](/collections)[Log in](/login)[Sign up](/register)

1. [Directory](/)
2. /
3. [Utility &amp; Helpers](/categories/utility)
4. /
5. byte16/thrift

ActiveLibrary[Utility &amp; Helpers](/categories/utility)

byte16/thrift
=============

Mirror of apache thrift client lib of php

0.11.0(8y ago)120Apache-2.0PHPPHP &gt;=5.0.0

Since May 6Pushed 8y ago1 watchersCompare

[ Source](https://github.com/byte16/thrift)[ Packagist](https://packagist.org/packages/byte16/thrift)[ Docs](https://thrift.apache.org/)[ RSS](/packages/byte16-thrift/feed)WikiDiscussions master Synced yesterday

READMEChangelogDependenciesVersions (2)Used By (0)

Thrift PHP Software Library

License
=======

[](#license)

Licensed to the Apache Software Foundation (ASF) under one or more contributor license agreements. See the NOTICE file distributed with this work for additional information regarding copyright ownership. The ASF licenses this file to you under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at

Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License.

Using Thrift with PHP
=====================

[](#using-thrift-with-php)

Thrift requires PHP 5. Thrift makes as few assumptions about your PHP environment as possible while trying to make some more advanced PHP features (i.e. APC cacheing using asbolute path URLs) as simple as possible.

To use Thrift in your PHP codebase, take the following steps:

\#1) Copy all of thrift/lib/php/lib into your PHP codebase #2) Configure Symfony Autoloader (or whatever you usually use)

After that, you have to manually include the Thrift package created by the compiler:

require\_once 'packages/Service/Service.php'; require\_once 'packages/Service/Types.php';

Dependencies
============

[](#dependencies)

PHP\_INT\_SIZE

This built-in signals whether your architecture is 32 or 64 bit and is used by the TBinaryProtocol to properly use pack() and unpack() to serialize data.

apc\_fetch(), apc\_store()

APC cache is used by the TSocketPool class. If you do not have APC installed, Thrift will fill in null stub function definitions.

###  Health Score

23

—

LowBetter than 26% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity8

Limited adoption so far

Community7

Small or concentrated contributor base

Maturity48

Maturing project, gaining track record

 Bus Factor1

Top contributor holds 100% of commits — single point of failure

How is this calculated?**Maintenance (25%)** — Last commit recency, latest release date, and issue-to-star ratio. Uses a 2-year decay window.

**Popularity (30%)** — Total and monthly downloads, GitHub stars, and forks. Logarithmic scaling prevents top-heavy scores.

**Community (15%)** — Contributors, dependents, forks, watchers, and maintainers. Measures real ecosystem engagement.

**Maturity (30%)** — Project age, version count, PHP version support, and release stability.

###  Release Activity

Cadence

Unknown

Total

1

Last Release

2977d ago

### Community

Maintainers

![](https://avatars.githubusercontent.com/u/22477715?v=4)[Link](/maintainers/link)[@link](https://github.com/link)

---

Top Contributors

[![utilbox](https://avatars.githubusercontent.com/u/55429689?v=4)](https://github.com/utilbox "utilbox (1 commits)")

---

Tags

apachethrift

### Embed Badge

![Health badge](/badges/byte16-thrift/health.svg)

```
[![Health](https://phpackages.com/badges/byte16-thrift/health.svg)](https://phpackages.com/packages/byte16-thrift)
```

###  Alternatives

[leric/php-thrift

Thrift client api for PHP(version sync with thrift)

38325.5k3](/packages/leric-php-thrift)[corley/maintenance-bundle

Corley Maintenance Bundle

22232.4k](/packages/corley-maintenance-bundle)[donatj/rewrite-generator

Server Rewrite Generator

1263.7k](/packages/donatj-rewrite-generator)[nystudio107/dotenvy

Speed up your production sites by ditching .env for key/value variable pairs as Apache, Nginx, and shell equivalents.

317.0k](/packages/nystudio107-dotenvy)

PHPackages © 2026

[Directory](/)[Categories](/categories)[Trending](/trending)[Changelog](/changelog)[Analyze](/analyze)
