PcAxis is a PHP library to read PC-Axis (PX) files.
Just install Composer and run composer require z38/pc-axis
in your project directory.
use Z38\PcAxis\Px;
$px = new Px('yourfile.px');
$px->variables(); // returns a list of all variables
$px->values($variable) // returns a list of all values for a given variable
$px->datum([0, 5, 3]); // returns the datum for a given index
$px->keywords(); // returns all keywords
$px->data(); // returns all data cells
If you want to get your hands dirty, great! Here's a couple of steps/guidelines:
- Fork this repository
- Add your changes & tests for those changes (in
tests/
). - Send me a pull request!
If you don't want to go through all this, but still found something wrong or missing, please let me know, and/or open a new issue report so that I or others may take care of it.