Skip to content

MahdiMajidzadeh/Codeigniter-Persian

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

15 Commits
 
 
 
 
 
 
 
 

Repository files navigation

Codeigniter-Persian

StyleCI

This library not maintained eny more

A Codeigniter library to work with Persian characters ahd normalize data entries

how to install

Copy Persian.php to application/libraries of your own project.

how to use

First, load library:

$this->load->library('persian');

and use one of functions:

$this->persian->text($text);

List of functions

  • $this->persian->numbers_ar($num) convert Arabic numbers to Persian numbers

  • $this->persian->numbers_en($num) convert English numbers to Persian numbers

  • $this->persian->numbers_to_eng($num) convert Persian and Arabic numbers to English numbers

  • $this->persian->numbers($num) convert English and Arabic numbers to Persian numbers

  • $this->persian->text($text) convert Arabic characters to Persian characters

  • $this->persian->standard($string) convert Arabic characters to Persian characters and convert Persian and Arabic numbers to English numbers - best way to store data

  • $this->persian->allpersian($string) convert Arabic characters to Persian characters and convert numbers to Persian numbers - best way to show data ti users

Contributor

Releases

No releases published

Packages

No packages published

Languages