PHPackages                             sincore-digital/sinreports - PHPackages - PHPackages  [Skip to content](#main-content)[PHPackages](/)[Directory](/)[Categories](/categories)[Trending](/trending)[Leaderboard](/leaderboard)[Changelog](/changelog)[Analyze](/analyze)[Collections](/collections)[Log in](/login)[Sign up](/register)

1. [Directory](/)
2. /
3. sincore-digital/sinreports

ActiveLibrary

sincore-digital/sinreports
==========================

Biblioteca PHP gerador de relatórios

0.1(3w ago)03↑2900%PHPCI passing

Since Jul 7Pushed todayCompare

[ Source](https://github.com/sincore-digital/sinreports)[ Packagist](https://packagist.org/packages/sincore-digital/sinreports)[ RSS](/packages/sincore-digital-sinreports/feed)WikiDiscussions main Synced today

READMEChangelog (1)Dependencies (3)Versions (2)Used By (0)

> 🔴 ainda estamos em teste, não utilize em produção, pois pode quebrar à qualquer commit

SiNReports
==========

[](#sinreports)

O SiNReports é uma biblioteca gratuita para a geração automatizada de relatórios e documentos sem utilização de APIs remotas, servidores e instalações complexas. Renderize templates Smarty e crie relatórios/documentos em HTML, PDF e XLS

Instalação
----------

[](#instalação)

```
composer require sincore/sinreports
```

Ao baixar a lib, os binários ja está embutidos, mas caso exista problema em executa-los, é possivel utilizar o `path` para o seu proprio binário

Como usar
---------

[](#como-usar)

Para criar relatórios tabulados

```
$vars = [
	[
		'id' => 12,
		'nome' => "produto 1",
		'valor' => 45.30
	],
	[
		'id' => 23,
		'nome' => "produto 2",
		'valor' => 101.41
	],
];

$report = new \SiNReports\Report();
$report->setDebugMode(TRUE)
	->setDataset($vars)

	// ->toHtml() // gera o arquivo final em HTML
	// ->toXls() // gera o arquivo final em XLS
	->toPdf() // gera o arquivo final em PDF

	//->save(APPLICATION_PATH . "/files/meupdf.pdf") // salva no arquivo
	// ->show() // exibe na tela
	->download(); // envia o arquivo para download
```

Para criar documentos complexos

```
$vars = [
	'nome' => "Nome do comprador",
	'documento' => "xxx.xxx.xxx-xx",
	'produtos' => [
		[
			'id' => 12,
			'nome' => "produto 1",
			'valor' => 45.30
		],
		[
			'id' => 23,
			'nome' => "produto 2",
			'valor' => 101.41
		],
	];
];

$report = new \SiNReports\Report();
$report->setDebugMode(TRUE)
	->setTemplate(APPLICATION_PATH . "/relatorios/teste.tpl")
	->setVars($vars)

	// ->toHtml() // gera o arquivo final em HTML
	// ->toXls() // gera o arquivo final em XLS
	->toPdf() // gera o arquivo final em PDF

	//->save(APPLICATION_PATH . "/files/meupdf.pdf") // salva no arquivo
	// ->show() // exibe na tela
	->download(); // envia o arquivo para download
```

Dependências
------------

[](#dependências)

- `smarty/smarty`: Responsável por ler o template à ser gerado e renderizar em HTML
- `wkhtmltopdf (Binário)`: Binário responsável por renderizar o HTML em PDF
- `mikehaertl/phpwkhtmltopdf`: Responsável fazer as chamadas ao `wkhtmltopdf`

Contribua
---------

[](#contribua)

Pull requests são muito bem-vindos. Para novas ideias, por favor utilize a sessão de issues para discutir novas mudanças e funcionalidades

License
-------

[](#license)

[GPLv3](https://github.com/sincore-digital/sinreports/blob/main/LICENSE)

###  Health Score

34

—

LowBetter than 74% of packages

Maintenance98

Actively maintained with recent releases

Popularity4

Limited adoption so far

Community6

Small or concentrated contributor base

Maturity23

Early-stage or recently created project

 Bus Factor1

Top contributor holds 100% of commits — single point of failure

How is this calculated?**Maintenance (25%)** — Last commit recency, latest release date, and issue-to-star ratio. Uses a 2-year decay window.

**Popularity (30%)** — Total and monthly downloads, GitHub stars, and forks. Logarithmic scaling prevents top-heavy scores.

**Community (15%)** — Contributors, dependents, forks, watchers, and maintainers. Measures real ecosystem engagement.

**Maturity (30%)** — Project age, version count, PHP version support, and release stability.

###  Release Activity

Cadence

Unknown

Total

1

Last Release

26d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/256f82ba794e37c30246774a1edf17dff7e2b2732edba46eabcfd6b143934422?d=identicon)[scorninpc](/maintainers/scorninpc)

---

Top Contributors

[![scorninpc](https://avatars.githubusercontent.com/u/2607849?v=4)](https://github.com/scorninpc "scorninpc (17 commits)")

### Embed Badge

![Health badge](/badges/sincore-digital-sinreports/health.svg)

```
[![Health](https://phpackages.com/badges/sincore-digital-sinreports/health.svg)](https://phpackages.com/packages/sincore-digital-sinreports)
```

###  Alternatives

[craftcms/cms

Craft CMS

3.6k3.7M3.3k](/packages/craftcms-cms)[prestashop/prestashop

PrestaShop is an Open Source e-commerce platform, committed to providing the best shopping cart experience for both merchants and customers.

9.2k18.1k](/packages/prestashop-prestashop)[kimai/kimai

Kimai - Time Tracking

4.8k9.4k1](/packages/kimai-kimai)[civicrm/civicrm-core

Open source constituent relationship management for non-profits, NGOs and advocacy organizations.

758297.9k49](/packages/civicrm-civicrm-core)[yajra/laravel-datatables-export

Laravel DataTables Queued Export Plugin.

362.3M4](/packages/yajra-laravel-datatables-export)[solspace/craft-freeform

The most flexible and user-friendly form building plugin!

54686.7k24](/packages/solspace-craft-freeform)

PHPackages © 2026

[Directory](/)[Categories](/categories)[Trending](/trending)[Changelog](/changelog)[Analyze](/analyze)
