PHPackages                             hmennen90/php-steamworks - 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. hmennen90/php-steamworks

ActivePhp-ext[Utility &amp; Helpers](/categories/utility)

hmennen90/php-steamworks
========================

PHP extension providing access to the Valve Steamworks SDK via a flat C API

v0.3.1(1mo ago)012↓100%MITCPHP &gt;=8.1

Since Mar 9Pushed 1mo agoCompare

[ Source](https://github.com/hmennen90/php-steamworks)[ Packagist](https://packagist.org/packages/hmennen90/php-steamworks)[ Docs](https://github.com/hmennen90/php-steamworks)[ RSS](/packages/hmennen90-php-steamworks/feed)WikiDiscussions main Synced 1mo ago

READMEChangelogDependenciesVersions (7)Used By (0)

php-steamworks
==============

[](#php-steamworks)

Native PHP extension providing access to the [Steamworks SDK](https://partner.steamgames.com/) via a flat C API.

Requirements
------------

[](#requirements)

- PHP 8.1+
- Steamworks SDK 1.58+ (download from [partner.steamgames.com](https://partner.steamgames.com/))
- macOS (arm64/x86\_64), Linux (x86\_64), or Windows (x86\_64)

Installation
------------

[](#installation)

### Via PIE (recommended)

[](#via-pie-recommended)

[PIE](https://github.com/php/pie) is the official PHP extension installer.

```
pie install hmennen90/php-steamworks --with-steamworks=/path/to/steamworks-sdk
```

After installation, copy `libsteam_api.dylib` (macOS) or `libsteam_api.so` (Linux) from the SDK's `redistributable_bin/` directory next to the built extension:

```
# macOS
cp /path/to/steamworks-sdk/redistributable_bin/osx/libsteam_api.dylib "$(php-config --extension-dir)/"

# Linux x86_64
cp /path/to/steamworks-sdk/redistributable_bin/linux64/libsteam_api.so "$(php-config --extension-dir)/"
```

> **Note (Laravel Herd / custom PHP builds):** If PIE fails to auto-install the `.so` due to a read-only filesystem, the build output still exists at `~/.pie/php*/vendor/hmennen90/php-steamworks/modules/steamworks.so`. Copy it to your extension directory manually and use an absolute path in `php.ini`:
>
> ```
> extension=/full/path/to/steamworks.so
> ```

### Manual build

[](#manual-build)

1. Download the Steamworks SDK and extract it.
2. Build the extension:

```
phpize
./configure --with-steamworks=/path/to/steamworks-sdk
make
make install
```

3. Copy the Steam shared library next to the extension (see PIE section above).
4. Enable the extension in `php.ini`:

```
extension=steamworks
```

See [INSTALL.md](INSTALL.md) for detailed platform-specific instructions.

Quick Start
-----------

[](#quick-start)

```
