# Laravel EPC Generator

[![Latest Version on Packagist](https://img.shields.io/packagist/v/rexlabs/epc-generator.svg?style=flat-square)](https://packagist.org/packages/rexlabs/epc-generator)
[![Build Status](https://img.shields.io/travis/rexlabs/epc-generator/master.svg?style=flat-square)](https://travis-ci.org/rexlabs/epc-generator)
[![Total Downloads](https://img.shields.io/packagist/dt/rexlabs/epc-generator.svg?style=flat-square)](https://packagist.org/packages/rexlabs/epc-generator)

A library to generate Energy Performance Graph.

Sample:

```
$report = (new EpcGenerator())
    ->setAddress('1 Test Address, Success street.')
    ->setReference('ABC123')
    ->setCurrentEnergyEfficiencyRating(40)
    ->setPotentialEnergyEfficiencyRating(50)
    ->setCurrentEnvironmentalImpactRating(60)
    ->setPotentialEnvironmentalImpactRating(70)
    ->stream();
```

## Installation

You can install the package via composer:

```
composer require rexlabs/epc-generator
```

## Credits

This package has been built on top of [Khaled Elmahdi's EPC generator](https://github.com/mywebapplication/epc-generator).