{"id":26567938,"url":"https://github.com/cswni/filament-export-spanish","last_synced_at":"2025-03-22T19:29:19.710Z","repository":{"id":65225424,"uuid":"588660823","full_name":"cswni/filament-export-spanish","owner":"cswni","description":"Filament export with spanish lang support","archived":false,"fork":false,"pushed_at":"2023-01-13T17:41:30.000Z","size":210,"stargazers_count":2,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-03-10T01:30:58.788Z","etag":null,"topics":["csv","excel","export","filamentphp","laravel","pdf-generation","spanish"],"latest_commit_sha":null,"homepage":"","language":"PHP","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/cswni.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2023-01-13T17:09:56.000Z","updated_at":"2023-06-28T20:37:33.000Z","dependencies_parsed_at":"2023-01-15T16:45:29.907Z","dependency_job_id":null,"html_url":"https://github.com/cswni/filament-export-spanish","commit_stats":null,"previous_names":[],"tags_count":2,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/cswni%2Ffilament-export-spanish","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/cswni%2Ffilament-export-spanish/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/cswni%2Ffilament-export-spanish/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/cswni%2Ffilament-export-spanish/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/cswni","download_url":"https://codeload.github.com/cswni/filament-export-spanish/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":245012531,"owners_count":20547044,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["csv","excel","export","filamentphp","laravel","pdf-generation","spanish"],"created_at":"2025-03-22T19:29:19.061Z","updated_at":"2025-03-22T19:29:19.698Z","avatar_url":"https://github.com/cswni.png","language":"PHP","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Filament Export - Spanish translation\n\n[![Latest Stable Version](http://poser.pugx.org/alperenersoy/filament-export/v)](https://packagist.org/packages/alperenersoy/filament-export) [![Total Downloads](http://poser.pugx.org/alperenersoy/filament-export/downloads)](https://packagist.org/packages/alperenersoy/filament-export) [![License](http://poser.pugx.org/alperenersoy/filament-export/license)](https://packagist.org/packages/alperenersoy/filament-export)\n\nCustomizable export and print functionality for Filament Admin Panel.\n\nThis package provides a bulk action and header action to export your filament tables easily.\n\n![filament-export-3](https://user-images.githubusercontent.com/83382417/179013026-14ddd872-fedc-45d2-954a-1447005777bb.png)\n\n## Requirements\n- PHP 8\n- [Filament 2.0](https://github.com/laravel-filament/filament)\n\n### Dependencies\n- [spatie/simple-excel](https://github.com/spatie/simple-excel)\n- [barryvdh/laravel-dompdf](https://github.com/barryvdh/laravel-dompdf)\n\n## Installation\n\n```bash\ncomposer require cswni/filament-export\n```\n\n## Using\n\n### Simple Usage\n\n#### Bulk Action\n\nYou can export selected rows with the bulk action.\n\n```php\n$table-\u003ebulkActions([\n    ...\n    FilamentExportBulkAction::make('export')\n    ...\n]);\n```\n\n#### Header Action\n\nYou can filter, search, sort and export your table with the header action.\n\n```php\n$table-\u003eheaderActions([\n    ...\n    FilamentExportHeaderAction::make('export')\n    ...\n]);\n```\n\nSince ButtonAction is deprecated you may use this action with -\u003ebutton() instead.\n\n### Full Usage\n\nBoth actions provide functions for configuration.\n\n```php\nFilamentExportBulkAction::make('export')\n    -\u003efileName('My File') // Default file name\n    -\u003etimeFormat('m y d') // Default time format for naming exports\n    -\u003edefaultFormat('pdf') // xlsx, csv or pdf\n    -\u003edefaultPageOrientation('landscape') // Page orientation for pdf files. portrait or landscape\n    -\u003edirectDownload() // Download directly without showing modal\n    -\u003edisableAdditionalColumns() // Disable additional columns input\n    -\u003edisableFilterColumns() // Disable filter columns input\n    -\u003edisableFileName() // Disable file name input\n    -\u003edisableFileNamePrefix() // Disable file name prefix\n    -\u003edisablePreview() // Disable export preview\n    -\u003ewithHiddenColumns() //Show the columns which are toggled hidden\n    -\u003efileNameFieldLabel('File Name') // Label for file name input\n    -\u003eformatFieldLabel('Format') // Label for format input\n    -\u003epageOrientationFieldLabel('Page Orientation') // Label for page orientation input\n    -\u003efilterColumnsFieldLabel('filter columns') // Label for filter columns input\n    -\u003eadditionalColumnsFieldLabel('Additional Columns') // Label for additional columns input\n    -\u003eadditionalColumnsTitleFieldLabel('Title') // Label for additional columns' title input \n    -\u003eadditionalColumnsDefaultValueFieldLabel('Default Value') // Label for additional columns' default value input \n    -\u003eadditionalColumnsAddButtonLabel('Add Column') // Label for additional columns' add button \n```\nYou can also use default bulk action and header action functions to customize actions.\n\n## Performance Tips for Large Datasets\n- Since header action does server-side pagination you may choose header action over bulk action.\n- You may disable preview.\n- You may enable direct download.\n\n## Configuration\n\nPublish configuration\n\n```bash\nphp artisan vendor:publish --provider=\"AlperenErsoy\\FilamentExport\\FilamentExportServiceProvider\" --tag=\"config\"\n```\n\nYou can configure these settings:\n\n```php\nreturn [\n    'default_format' =\u003e 'xlsx',\n    'time_format' =\u003e 'M_d_Y-H_i',\n    'default_page_orientation' =\u003e 'portrait',\n    'disable_additional_columns' =\u003e false,\n    'disable_filter_columns' =\u003e false,\n    'disable_file_name' =\u003e false,\n    'disable_preview' =\u003e false,\n    'use_snappy' =\u003e false,\n    'action_icon' =\u003e 'heroicon-o-document-download',\n    'preview_icon' =\u003e 'heroicon-o-eye',\n    'export_icon' =\u003e 'heroicon-o-download',\n    'print_icon' =\u003e 'heroicon-o-printer',\n    'cancel_icon' =\u003e 'heroicon-o-x-circle'\n];\n```\n\n## Overriding Views\n\nPublish views\n\n```bash\nphp artisan vendor:publish --provider=\"AlperenErsoy\\FilamentExport\\FilamentExportServiceProvider\" --tag=\"views\"\n```\n\nThis package has two views:\n\n1. \"components\\table_view.blade.php\" view is used for preview.\n\n2. \"pdf.blade.php\" view is used as pdf export template.\n\n3. \"print.blade.php\" view is used as print template.\n   \n### Using Custom Variables In Templates\n\n```php\nFilamentExportBulkAction::make('export')\n    -\u003eextraViewData([\n        'myVariable' =\u003e 'My Variable'\n    ])\n```\n\nor use closures\n\n```php\nFilamentExportHeaderAction::make('export')\n    -\u003eextraViewData(fn ($action) =\u003e [\n        'recordCount' =\u003e $action-\u003egetRecords()-\u003ecount()\n    ])\n```\n\nThen use them in the templates as regular blade variables:\n\n```blade\n{{ $myVariable }}\n```\n\n## Using Snappy\n\nBy default, this package uses [dompdf](https://github.com/barryvdh/laravel-dompdf) as pdf generator.\n\nIf you want to use Snappy instead you need to install **barryvdh/laravel-snappy** to your project and configure it yourself. (See [barryvdh/laravel-snappy](https://github.com/barryvdh/laravel-snappy) for more information.)\n\nTo use snappy for PDF exports:\n\n1. You can simply add -\u003esnappy() to your actions.\n   \n```php\nFilamentExportBulkAction::make('export')\n    -\u003esnappy()\n```\nor\n```php\nFilamentExportHeaderAction::make('export')\n    -\u003esnappy()\n```\n2. You can update the config file to use it as default.\n```php\n[\n    ...\n    'use_snappy' =\u003e true,\n    ...\n]\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fcswni%2Ffilament-export-spanish","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fcswni%2Ffilament-export-spanish","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fcswni%2Ffilament-export-spanish/lists"}