/php-reports

Helpers for creating reports

Primary LanguagePHPMozilla Public License 2.0MPL-2.0

Reports

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.