Download the PHP package openstatspec/spss-sav without Composer
On this page you can find all versions of the php package openstatspec/spss-sav. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Download openstatspec/spss-sav
More information about openstatspec/spss-sav
Files in openstatspec/spss-sav
Package spss-sav
Short Description PHP reader and writer for IBM SPSS Statistics SAV and ZSAV files
License MIT
Homepage https://github.com/OpenStatSpec/php-spss
Informations about the package spss-sav
SPSS SAV/ZSAV for PHP
A PHP library for reading and writing SPSS / PSPP SAV and ZSAV data files.
Maintained by OpenStatSpec. This project continues the MIT-licensed codebase created by Vladyslav Korniienko. The stable PHP namespace remains SPSS\ for compatibility.
Requirements
- PHP 8.4.1 or newer
- mbstring extension
- bcmath extension
- zlib extension
Installation
Usage
Read a file into the v3 typed dataset model:
Write a typed dataset:
Numeric null cells represent SPSS system-missing values. Strings must always be strings; an empty string is an ordinary value. SPSS dates, times, and currencies remain numeric values whose presentation is described by VariableFormat.
See the examples remain available during migration.
Changelog
Please have a look in CHANGELOG
Development
Install the locked development dependencies:
The install command activates the versioned pre-push hook in .githooks. It runs the same complete QA suite used in CI before every push. You can also run the checks directly:
composer qa validates and audits Composer dependencies, lints PHP syntax, checks coding style, runs Rector in dry-run mode, performs PHPStan level 6 analysis with strict rules, and executes the PHPUnit 13 tests. composer qa:release additionally enforces:
- at least 85% executable-line coverage;
- at least 74% branch coverage across the deterministic branch shards;
- Infection's mutation-testing threshold, with timeouts counted against the score and capped;
- bidirectional SAV/ZSAV interoperability with R/haven.
The release suite requires Xdebug coverage plus Rscript with the haven package. The pre-push hook runs this complete release suite. Run composer fix to apply safe Rector and coding-style fixes.
See Quality and release gates for individual commands, report locations, and the rationale for each threshold.
License
Licensed under the MIT license.
All versions of spss-sav with dependencies
ext-bcmath Version *
ext-mbstring Version *
ext-zlib Version *