This package is in development.
This is use for simple slug and make url friendly for khmer charter. This package inspire by khmer-nltk
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"
use Reaksmey\KhmerSlug\Facades\KhmerSlug;
$raw_text = "ស្មារតីផ្សះផ្សាជាតិរវាងខ្មែរនិងខ្មែរ ឈានទៅបញ្ចប់សង្រ្គាម នាំពន្លឺសន្តិភាព និងការរួបរួមជាថ្មី";
KhmerSlug::slug($raw_text);
==> "ស្មារតី-ផ្សះផ្សា-ជាតិ-រវាង-ខ្មែរ-និង-ខ្មែរ-ឈាន-ទៅ-បញ្ចប់-សង្រ្គាម-នាំ-ពន្លឺ-សន្តិភាព-និង-ការរួបរួម-ជាថ្មី"
composer test
Please see CHANGELOG for more information on what has changed recently.
Please see CONTRIBUTING for details.
Please review our security policy on how to report security vulnerabilities.
The MIT License (MIT). Please see License File for more information.