phpspreadsheetを使いたい

$ curl -sS https://getcomposer.org/installer | php
$ php composer.phar require phpoffice/phpspreadsheet

require 'vendor/autoload.php';

use PhpOffice\PhpSpreadsheet\Spreadsheet;
use PhpOffice\PhpSpreadsheet\Writer\Xlsx;

$spreadsheet = new Spreadsheet();
$sheet = $spreadsheet->getActiveSheet();

$sheet->setCellValue('B1', 'English');
$sheet->setCellValue('C1', '数学');
$sheet->setCellValue('A2', 'Aさん');
$sheet->setCellValue('A3', 'Bさん');
$sheet->setCellValue('B2', '90');
$sheet->setCellValue('B3', '80');
$sheet->setCellValue('C2', '70');
$sheet->setCellValue('C3', '95');

$writer = new Xlsx($spreadsheet);
$writer->save('score.xlsx');

なるほどー