jacques / php-reports
Helpers for building reports with excel
Installs: 6 466
Dependents: 0
Suggesters: 0
Security: 0
Stars: 0
Watchers: 2
Forks: 0
Open Issues: 1
Requires
- php: ^8.2
- phpoffice/phpspreadsheet: ^3.0
Requires (Dev)
- brick/varexporter: ^0.5.0
- ergebnis/composer-normalize: ^2.44
- phpunit/php-invoker: ^5.0
- phpunit/phpunit: ^11.4
- rector/rector: ^1.2
- squizlabs/php_codesniffer: ^3.10
README
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.