PHP code example of cafuego / phits

1. Go to this page and download the library: Download cafuego/phits library. Choose the download type require.

2. Extract the ZIP file and open the index.php.

3. Add this code to the index.php.
    
        
<?php
require_once('vendor/autoload.php');

/* Start to develop here. Best regards https://php-download.com/ */

    

cafuego / phits example snippets



  use Phits\Fits\FitsParser;

  $fits = new FitsParser('/tmp/foobar.fits');

  $headers = $fits->getHeaders();
  $naxis   = $fits->getNaxis(0);

  // Do stuff.