elfeffe / textstat
这是一个在Laravel中使用Python的TextStat的包
v0.1.0
2024-08-01 17:13 UTC
Requires
- php: ^8.2
- illuminate/contracts: ^10.0||^11.0
- spatie/laravel-package-tools: ^1.16
Requires (Dev)
- laravel/pint: ^1.14
- nunomaduro/collision: ^8.1.1||^7.10.0
- orchestra/testbench: ^9.0.0||^8.22.0
- pestphp/pest: ^2.34
- pestphp/pest-plugin-arch: ^2.7
- pestphp/pest-plugin-laravel: ^2.3
- spatie/laravel-ray: ^1.35
README
这是一个Python的texstat在Laravel中的包装器。您可以使用其所有功能https://github.com/textstat/textstat
安装
您可以通过composer安装此包
pip install textstat
composer require elfeffe/textstat
您可以使用以下命令发布配置文件
php artisan vendor:publish --tag="textstat-config"
使用方法
$text = "Your sample text goes here"; $results = TextStat::syllable_count($text); dump($results);
测试
composer test
更新日志
请参阅更新日志以获取有关最近更改的更多信息。
贡献
有关详细信息,请参阅贡献指南。
安全漏洞
请查看我们的安全策略以了解如何报告安全漏洞。
鸣谢
许可协议
MIT许可协议(MIT)。请参阅许可文件以获取更多信息。