spss icon indicating copy to clipboard operation
spss copied to clipboard

SPSS, PSPP php implementation (read/write .sav files)

Results 11 spss issues
Sort by recently updated
recently updated
newest added

If running on PHP 8.1, we would get deprecation messages like ``` PHP Deprecated: Return type of SPSS\Sav\Record\Info::offsetExists($offset) should either be compatible with ArrayAccess::offsetExists(mixed $offset): bool, or the #[\ReturnTypeWillChange] attribute...

hi. see the test script of the changes [Files changed](https://github.com/tiamo/spss/pull/66/files). commented solution for real float tests. something went wrong since ~ c5ce42c same code base but different coding style AND...

Hi, who happen to meet this error when trying to read save file? `{ "message": "unpack(): Type i: not enough input, need 4, have 0", "exception": "ErrorException", "file": "/Users/mohdaidilrahmanshakri/Development/htdocs/nihdatarepo/vendor/flobee/spss/src/Buffer.php", "line":...

This is marked as RFC (Request For Comments and discussions from developers), because this add support for Character Encoding, but this solution implies read the body twice. The CharacterEncoding data...

I can't get the library to export actual zero values for variables with the format Variable::FORMAT_TYPE_F. Instead, the library is converting all 0 values to blanks when writing the SPSS...

I have a working implementation to write MR Sets, but this is not PR ready. Anyone interested in implementing a PR for this?

Write large variables ( array ) with appending mode should save large memory ?

Currently the regex in the Writer class does not follow the SPSS naming rules. This should ensure that the rules are actually followed. https://www.ibm.com/docs/en/spss-statistics/28.0.0?topic=SSLVMB_28.0.0/spss/base/syn_variables_variable_names.htm

I need to make a sav file with around 200 variables and 7500 cases (this is the largest export currently). The problem is that it is currently taking around 10-11...

Has anyone had any luck getting this package to work with multi byte names? If I fix the regex to allow it I get errors like >error: `/run/user/1000/doc/e43f6ab4/test.sav' near offset...