Skip to content

java-ordinary/javaPhp-1

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

26 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

JavaPhp

A library bundled with some of the awesome functions available in Php. Some extra functions have been included as well which are not available in Php.

If you Prefer camelCasing over Php style there is also a branch with methods named in camelCasing style.
Some of the functions avilable are listed below.

Functions Available:

echo()
print()

String Functions

str_replace()
str_ireplace()
strlen()
str_repeat()
htmlspecialchars()
htmlentities()
strtolower()
strtoupper()
trim()
strpos()
stripos()
substr()
str_shuffle()
preg_match()
preg_replace()
preg_split()

Array Functions

print_r()
implode()
explode()
shuffle()
count()
array_push()*
array_rand()
array_shift()*
array_sum()

Math Functions

abs()
pow()
sqrt()
pi()
round()
rand()
sin()
sinh()
cos()
cosh()
tan()
tanh()
exp()
log()
log10()
log1p()
ceil()
floor()

File

file_put_contents()
file_get_contents()
unlink()
del()
delete()
file_exists()
is_file()
is_dir()
is_readable()
is_writable() or is_writeable()
mkdir()
rename()
filesize()

Security

hash()
md5()
sha1()
password_hash()**
password_verify()**

Extra Functions

nth_occurance()
get_str_berween()
get_random_string()
get_input()
get_input_int()
get_input_float()
get_input_double()
get_input_long()
get_input_char()
is_prime()
reverse()

*there are some limitations on these functions.

**This functions uses an external class BCrypt by mindrot.org

License

See the LICENSE file for license rights and limitations (MIT).

About

Implementations if Some popular functions of PHP in Java.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • Java 100.0%