PHPackages                             z38/pc-axis - 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. z38/pc-axis

ActiveLibrary

z38/pc-axis
===========

PHP library to read PC-Axis (PX) files

21211PHP

Since Jul 23Pushed 9y ago1 watchersCompare

[ Source](https://github.com/z38/pc-axis)[ Packagist](https://packagist.org/packages/z38/pc-axis)[ RSS](/packages/z38-pc-axis/feed)WikiDiscussions master Synced 2mo ago

READMEChangelogDependenciesVersions (1)Used By (0)

PcAxis
======

[](#pcaxis)

[![Build Status](https://camo.githubusercontent.com/a5d67e2833427dec191dc6caafab90ce5899a7e529da32b6ba285cc2a854a58f/68747470733a2f2f7472617669732d63692e6f72672f7a33382f70632d617869732e706e673f6272616e63683d6d6173746572)](https://travis-ci.org/z38/pc-axis)[![Scrutinizer Code Quality](https://camo.githubusercontent.com/b5a03b0c5c26c8f9530c0963475639af551101cb20964fd17e63ddf8b75809bb/68747470733a2f2f7363727574696e697a65722d63692e636f6d2f672f7a33382f70632d617869732f6261646765732f7175616c6974792d73636f72652e706e673f623d6d6173746572)](https://scrutinizer-ci.com/g/z38/pc-axis/?branch=master)

**PcAxis** is a PHP library to read PC-Axis (PX) files.

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

[](#installation)

Just install [Composer](http://getcomposer.org) and run `composer require z38/pc-axis` in your project directory.

Usage
-----

[](#usage)

```
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
```

### Low-Level Access

[](#low-level-access)

```
$px->keywords(); // returns all keywords
$px->data(); // returns all data cells
```

Contributing
------------

[](#contributing)

If you want to get your hands dirty, great! Here's a couple of steps/guidelines:

- Fork this repository
- Add your changes &amp; 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.

Further Resources
-----------------

[](#further-resources)

- [PX file format specification (2013)](http://www.scb.se/Upload/PC-Axis/Support/Documents/PX-file_format_specification_2013.pdf)

###  Health Score

23

—

LowBetter than 27% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity14

Limited adoption so far

Community10

Small or concentrated contributor base

Maturity41

Maturing project, gaining track record

 Bus Factor1

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

### Community

Maintainers

![](https://www.gravatar.com/avatar/01476046f69b74a6dd8256d4715234e8a193186c3f1698a39e60bbe7d829e3c2?d=identicon)[z38](/maintainers/z38)

---

Top Contributors

[![z38](https://avatars.githubusercontent.com/u/3948085?v=4)](https://github.com/z38 "z38 (10 commits)")[![sebenik](https://avatars.githubusercontent.com/u/5864124?v=4)](https://github.com/sebenik "sebenik (2 commits)")

### Embed Badge

![Health badge](/badges/z38-pc-axis/health.svg)

```
[![Health](https://phpackages.com/badges/z38-pc-axis/health.svg)](https://phpackages.com/packages/z38-pc-axis)
```

PHPackages © 2026

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