kesavanm / kural-piem
A mini lib to handle kurals
v1.0.5
2022-12-20 06:29 UTC
Requires
- php: >=7.2
README
π'em - PIEM ( PI + POEM)
Trying to find a PIEM in தமிழ் திருக்குறள்.
Installation
- Can be used as standalone script
- As a dependency using
composer
(tested using v2)-
Alternatively you can create a
composer.json
with the following$bat composer.json ────┬────────────────────────────────────────── │ File: composer.json ────┼────────────────────────────────────────── 1 │ { 2 │ "require": { 3 │ "kesavanm/kural-piem": "^1.0" 4 │ } 5 │ } ────┴──────────────────────────────────────────
and later execute
composer update
to install
Outcome
-
Live result: Sample usage of Kural page from
https://kesavan.info
Source avail here. -
Standalone execution may similar to:
$php sample-kural.php வெற்றி! இந்த பாடல் பையம் (#PIEM) : உள்ளீடு: ==========>கவிதை நீ ஆகிறாய் பை, கண்டதும் காதல்தூண்டிவிடும் மாறா மாறிலிநீயடி<========== Array ( [0] => 3 : கவிதை [1] => 1 : நீ [2] => 4 : ஆகிறாய் [3] => 1 : பை [4] => 5 : கண்டதும் [5] => 9 : காதல்தூண்டிவிடும் [6] => 2 : மாறா [7] => 6 : மாறிலிநீயடி )