reaksmey / laravel-khmer-slug
This is my package laravel-khmer-slug
Installs: 2
Dependents: 0
Suggesters: 0
Security: 0
Stars: 0
Watchers: 1
Forks: 0
Open Issues: 2
Language:Python
Requires
- php: ^8.1
- bhavingajjar/laravel-python: ^1.0
- illuminate/contracts: ^5.8|^6.0|^7.0|^8.0|^9.0|^10.0
- spatie/laravel-package-tools: ^1.14.0
Requires (Dev)
- laravel/pint: ^1.0
- nunomaduro/collision: ^7.8
- nunomaduro/larastan: ^2.0.1
- orchestra/testbench: ^8.8
- pestphp/pest: ^2.0
- pestphp/pest-plugin-arch: ^2.0
- pestphp/pest-plugin-laravel: ^2.0
- phpstan/extension-installer: ^1.1
- phpstan/phpstan-deprecation-rules: ^1.0
- phpstan/phpstan-phpunit: ^1.0
This package is auto-updated.
Last update: 2024-12-30 08:20:22 UTC
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.