PHPackages                             sakalauskas/spss - 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. sakalauskas/spss

ActiveLibrary

sakalauskas/spss
================

SPSS php implementation

2.2.1(8y ago)09.2k1MITPHPPHP &gt;=5.3.0

Since Mar 7Pushed 3y ago1 watchersCompare

[ Source](https://github.com/sakalauskas/spss)[ Packagist](https://packagist.org/packages/sakalauskas/spss)[ RSS](/packages/sakalauskas-spss/feed)WikiDiscussions 2.0 Synced 2mo ago

READMEChangelog (4)Dependencies (1)Versions (10)Used By (0)

SPSS
====

[](#spss)

A PHP library for reading and writing SPSS data files.

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

[](#requirements)

- PHP 5.3.0 and up.

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

[](#installation)

The preferred way to install this extension is through [composer](http://getcomposer.org/download/).

Either run

```
composer require sakalauskas/spss

```

or add

```
"sakalauskas/spss": "^2.0"

```

to the require section of your `composer.json` file.

Usage
-----

[](#usage)

Reader example:

```
$reader = \SPSS\Reader::fromFile('path/to/file.sav');
```

or

```
$reader = \SPSS\Reader::fromString(file_get_contents('path/to/file.sav'));
```

Writer example:

```
$writer = new \SPSS\Writer([
    'header' => [
            'prodName'     => '@(#) SPSS DATA FILE test',
            'layoutCode'   => 2,
            'compression'  => 1,
            'weightIndex'  => 0,
            'bias'         => 100,
            'creationDate' => '13 Feb 89',
            'creationTime' => '13:13:13',
    ],
    'variables' => [
        [
                'name'     => 'VAR1',
                'width'    => 0,
                'decimals' => 0,
                'format'   => 5,
                'columns'  => 50,
                'align'    => 1,
                'measure'  => 1,
                'data'     => [
                    1, 2, 3
                ],
        ],
        ...
    ]
]);
```

License
-------

[](#license)

Licensed under the [MIT license](http://opensource.org/licenses/MIT).

###  Health Score

32

—

LowBetter than 72% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity19

Limited adoption so far

Community13

Small or concentrated contributor base

Maturity64

Established project with proven stability

 Bus Factor1

Top contributor holds 85.5% 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

Every ~20 days

Recently: every ~0 days

Total

8

Last Release

3207d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/94cb04668e8a6da8a0532d04ab34705c4fe3f319df00b273335c00ea508db0c0?d=identicon)[sakalauskas](/maintainers/sakalauskas)

---

Top Contributors

[![tiamo](https://avatars.githubusercontent.com/u/1963342?v=4)](https://github.com/tiamo "tiamo (53 commits)")[![cjmcdonn](https://avatars.githubusercontent.com/u/1108813?v=4)](https://github.com/cjmcdonn "cjmcdonn (4 commits)")[![sakalauskas](https://avatars.githubusercontent.com/u/1455148?v=4)](https://github.com/sakalauskas "sakalauskas (4 commits)")[![blp](https://avatars.githubusercontent.com/u/613451?v=4)](https://github.com/blp "blp (1 commits)")

---

Tags

writerreaderstatisticsspssporsav

###  Code Quality

TestsPHPUnit

### Embed Badge

![Health badge](/badges/sakalauskas-spss/health.svg)

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

###  Alternatives

[tiamo/spss

SPSS is a php-based implementation of IBM SPSS Statistics Standard

78294.6k2](/packages/tiamo-spss)[phpoffice/phpword

PHPWord - A pure PHP library for reading and writing word processing documents (OOXML, ODF, RTF, HTML, PDF)

7.5k34.7M183](/packages/phpoffice-phpword)[flobee/spss

SPSS is a php-based implementation of IBM SPSS Statistics Standard. (Read/write SPSS, PSPP .sav files)

1119.7k1](/packages/flobee-spss)[veewee/xml

XML without worries

1835.9M29](/packages/veewee-xml)[bcncommerce/json-stream

A bundle of tools to work with JSON in PHP

642.2M3](/packages/bcncommerce-json-stream)[akeneo/batch-bundle

Akeneo Symfony Batch Bundle

401.1M3](/packages/akeneo-batch-bundle)

PHPackages © 2026

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