reaksmey/laravel-khmer-slug
Composer 安装命令:
composer require reaksmey/laravel-khmer-slug
包简介
This is my package laravel-khmer-slug
README 文档
README
This package is in development.
This is use for simple slug and make url friendly for khmer charter. This package inspire by khmer-nltk
Installation
You have to install and configure bhavingajjar/laravel-python package first before continue.
You can install the package via composer:
composer require reaksmey/laravel-khmer-slug
You can publish the config file with:
php artisan vendor:publish --tag="laravel-khmer-slug-config"
Usage
use Reaksmey\KhmerSlug\Facades\KhmerSlug; $raw_text = "ស្មារតីផ្សះផ្សាជាតិរវាងខ្មែរនិងខ្មែរ ឈានទៅបញ្ចប់សង្រ្គាម នាំពន្លឺសន្តិភាព និងការរួបរួមជាថ្មី"; KhmerSlug::slug($raw_text); ==> "ស្មារតី-ផ្សះផ្សា-ជាតិ-រវាង-ខ្មែរ-និង-ខ្មែរ-ឈាន-ទៅ-បញ្ចប់-សង្រ្គាម-នាំ-ពន្លឺ-សន្តិភាព-និង-ការរួបរួម-ជាថ្មី"
Testing
composer test
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.
Credits
License
The MIT License (MIT). Please see License File for more information.
统计信息
- 总下载量: 2
- 月度下载量: 0
- 日度下载量: 0
- 收藏数: 0
- 点击次数: 0
- 依赖项目数: 0
- 推荐数: 0
其他信息
- 授权协议: MIT
- 更新时间: 2023-09-10