PHPackages                             cafuego/phits - 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. [Utility &amp; Helpers](/categories/utility)
4. /
5. cafuego/phits

ActiveLibrary[Utility &amp; Helpers](/categories/utility)

cafuego/phits
=============

A class library that allows you to access FITS file headers in PHP.

0.0.4(11y ago)039MITPHPPHP &gt;=5.4.0

Since Jun 4Pushed 11y agoCompare

[ Source](https://github.com/cafuego/phits)[ Packagist](https://packagist.org/packages/cafuego/phits)[ Docs](https://github.com/cafuego/phits)[ RSS](/packages/cafuego-phits/feed)WikiDiscussions master Synced 1w ago

READMEChangelogDependencies (1)Versions (4)Used By (0)

[![Build Status](https://camo.githubusercontent.com/b90edbe763349d10ae172d3a01765d94bc6174024dff6508cb0e95c824dfe795/68747470733a2f2f7472617669732d63692e6f72672f6361667565676f2f70686974732e7376673f6272616e63683d6d6173746572)](https://travis-ci.org/cafuego/phits)

WELCOME
=======

[](#welcome)

phits - a FITS reader for PHP
=============================

[](#phits---a-fits-reader-for-php)

FITS is the standard astronomical data format endorsed by both NASA and the IAU.

This class can read and parse header data from FITS files. I am not currently planning to add the ability to read and process the attached data as well.

The FitsThumbnail class uses the Imagick PECL library to convert FITS image data into a thumbnail of a specified size and format. It will fail horribly if you do not have Imagick installed.

USAGE
=====

[](#usage)

```

```

ACKNOWLEDGEMENTS
----------------

[](#acknowledgements)

This project is based on pre-existing open source FITS libraries and I have used both of them to help me write this parser:

-
-

Phits inherits the MIT license from these other projects.

As opposed to the Go parser, Phits also handles CONTINUE headers for longer string comments.

FITS?
-----

[](#fits)

See  for more information.

###  Health Score

23

—

LowBetter than 27% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity7

Limited adoption so far

Community6

Small or concentrated contributor base

Maturity50

Maturing project, gaining track record

 Bus Factor1

Top contributor holds 100% 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 ~2 days

Total

3

Last Release

4362d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/acd732230abb74e1422b942292e0ff62b59aa767ebf055f19a8fb09d2205b65f?d=identicon)[cafuego](/maintainers/cafuego)

---

Top Contributors

[![cafuego](https://avatars.githubusercontent.com/u/148719?v=4)](https://github.com/cafuego "cafuego (48 commits)")

---

Tags

astronomyfits

###  Code Quality

TestsPHPUnit

### Embed Badge

![Health badge](/badges/cafuego-phits/health.svg)

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

###  Alternatives

[bjornjohansen/wp-pre-commit-hook

Pre-commit hook for WordPress projects

118.8k3](/packages/bjornjohansen-wp-pre-commit-hook)[scolib/bankcard

根据银行卡号识别所属银行以及卡类型

171.3k1](/packages/scolib-bankcard)

PHPackages © 2026

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