dialect-katrineholm / tablify
Installs: 2 651
Dependents: 0
Suggesters: 0
Security: 0
Stars: 0
Watchers: 3
Forks: 0
Open Issues: 1
Requires
- barryvdh/laravel-dompdf: ^2.0
- maatwebsite/excel: ^3.1
- dev-master
- 0.6.0
- 0.5.1
- 0.5.0
- 0.4.5
- 0.4.4
- 0.4.3
- 0.4.2
- 0.4.1
- 0.4.0
- dev-dependabot/composer/phpoffice/phpspreadsheet-1.29.9
- dev-dependabot/composer/phpoffice/phpspreadsheet-1.29.8
- dev-php-8-support
- dev-object-to-tabliftobject
- dev-use-number-config-for-sum
- dev-sum-fix
- dev-config-fix
- dev-added-header-and-footer-columns
This package is auto-updated.
Last update: 2025-02-03 16:06:10 UTC
README
Tablify makes creating data-tables in multiple formats easier.
Installation
Install via composer
composer require dialect-katrineholm/tablify
Publish config
php artisan vendor:publish --provider="Dialect\Tablify\TablifyServiceProvider"
Usage
#basic usage tablify($collection)->text('Header', 'mapping')->toHtml(); //tablify automatically gets properties from data tablify($articles) ->text('Category', 'category.name') ->text('Name', 'name') ->currency('Price', 'price'); //Or it can take a closure ->text('popular', function($item){ return $item->sells > 5 ? 'Yes' : 'No'; }); #groups //if an item in the data contains a array itself you can loop over it using group tablify($categories) ->text('Category', 'name') ->group('articles', function($tablify){ //In here you can access the tablfiy builder for every article. }); #Settings //TODO