thethunderturner/filament-latex
Composer 安装命令:
composer require thethunderturner/filament-latex
包简介
This is my package filament-latex
README 文档
README
Compatibility
| Peek | Status | Filament | PHP |
|---|---|---|---|
| 3.x | Previous version | ^3.2.43 | ^8.1 |
| 4.x | Current version | ^4.0, ^5.0 | ^8.2 |
Demo
Filament LaTeX is a powerful package that allows you to generate PDFs from LaTeX templates. The plugin is still in development, but the basic functionality is implemented.
Installation
Important
This branch is only compatible with Filament v3. If you are using Filament v4, please switch to branch 4.x.
Compiler Installation
Before you start, make sure you have texlive-full or texlive-base installed on your system. You can install it on a Unix-based system (Linux/macOS) by running:
sudo apt-get install texlive-full # for debian based systems sudo pacman -S texlive-full # for arch based systems brew install texlive-full # for MacOS
If you are on Windows, then please visit the TeX Live website and follow the instructions.
After you have installed texlive, find where the pdflatex binary is located by running this in your console:
which pdflatex # for Unix based systems where pdflatex # for Windows
Copy the path. You will later need to paste it in the plugin configuration file.
Package Installation
You can install the package via composer:
composer require thethunderturner/filament-latex
With the installation command, the package will automatically publish the migrations and the config file.
php artisan filament-latex:install
Optionally, you can publish them individually:
php artisan vendor:publish --tag="filament-latex-migrations"
php artisan migrate
You can publish the config file with:
php artisan vendor:publish --tag="filament-latex-config"
After publishing the path, make sure you replace the path of your pdflatex binary in the config/filament-latex.php file.
Optionally, you can publish the views using
php artisan vendor:publish --tag="filament-latex-views"
Package Usage
You can use the package by adding it to the plugins list of your panel.
->plugins([ // ... FilamentLatexPlugin::make(), ]);
You also need a custom theme to compile some of the tailwind classes. You need to add the path of the blade views in the content array of tailwind.config.js of your theme like so:
@source '../../../../vendor/thethunderturner/filament-latex/resources/views/**/*.blade.php';
Documentation
You can override the default resource by specifying the new resource in the callback of the plugin:
FilamentLatexPlugin::make() ->resource('path/to/your/resource')
Your new resource should extend the default FilamentLatexResource class.
Now we just need to compile the tailwind classes
npm install npm run build
Changelog
Please see CHANGELOG for more information on what has changed recently.
Contributing
Please see CONTRIBUTING for details.
Security Vulnerabilities
Please review our security policy on how to report security vulnerabilities.
License
The MIT License (MIT). Please see License File for more information.
thethunderturner/filament-latex 适用场景与选型建议
thethunderturner/filament-latex 是一款 基于 PHP 开发的 Composer 扩展包,目前已累计 721 次下载、GitHub Stars 达 11, 最近一次更新时间为 2024 年 12 月 16 日, 在 PHP 生态内属于活跃度较高的组件。
它主要适用于以下技术方向: 「pdf」 「latex」 「laravel」 「pdf.js」 「filament」 「thethunderturner」 等业务场景。在实际项目中,围绕这些方向常见需要落地的问题包括:接口对接、性能调优、并发安全、与既有框架(Laravel / ThinkPHP / Yii / Webman 等)的兼容适配,以及生产环境的日志埋点与稳定性保障。
我们在过去多个企业项目中使用过 thethunderturner/filament-latex 或与其功能相近的方案,如果你在选型或落地过程中遇到问题,例如 版本兼容、二次改造、私有化封装、与内部系统对接、生产 BUG 排查,欢迎联系我们协助评估。
基于 thethunderturner/filament-latex 在你已有业务上做功能扩展、字段裁剪、UI 适配、与内部账号 / 权限 / 日志系统的深度对接。
线上偶发问题、内存泄漏、慢查询、并发异常等排查修复;针对高流量场景做缓存、队列、索引层面的调优。
承接完整的项目从需求 → 设计 → 开发 → 上线 → 长期运维;也可按月提供技术保姆服务。
与 thethunderturner/filament-latex 相关的其它包
同方向 / 同关键字的高下载量 PHP Composer 包推荐,方便对比选型:
LaTeX formula to PNG
PHP library for (La)TeX abstraction
Provides TCPDF integration for Symfony
Installs a full-fledged Sphinx environment within your TYPO3 website. Builds and renders Sphinx/reStructuredText-based projects such as extension manuals, official reference guides or your own in-house documents as HTML/JSON/PDF either from TYPO3 Backend or from command-line, as you prefer. Features
Alternative Gii generator for Yii2 framework
Alfabank REST API integration
统计信息
- 总下载量: 721
- 月度下载量: 0
- 日度下载量: 0
- 收藏数: 11
- 点击次数: 14
- 依赖项目数: 0
- 推荐数: 0
其他信息
- 授权协议: MIT
- 更新时间: 2024-12-16