jacques/php-reports

Helpers for building reports with excel

v0.0.4 2022-10-13 15:58 UTC

This package is auto-updated.

Last update: 2024-03-28 21:05:32 UTC


README

Author Software License Scrutinizer Code Quality Maintainability Test Coverage

Helpers for building reports with PHP (i.e. Excel Spreadsheets). Use the phpspreadsheet package to generate the Excel Spreadsheet.

Installation

$ composer require jacques/php-reports:dev-master
{
    "require": {
        "jacques/php-reports": "dev-master"
    }
}

Usage

<?php declare(strict_types=1);

require_once __DIR__ . '/../vendor/autoload.php';

$report = new \Jacques\Reports\Excel('Cover Sheet');
$report->setCellValue('B2', 'Report Name');
$report->setCellValue('B4', 'Description');

$report->createSheet('User');

$report->save(__DIR__.'/tmp/file.xlsx');

License

Report Helpers is licensed under the MPL v.2.0. This source code form is distributed under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License.