Skip to content

Commit 4fe9893

Browse files
committed
Readme Update Before Version
1 parent dd2097d commit 4fe9893

1 file changed

Lines changed: 34 additions & 7 deletions

File tree

README.md

Lines changed: 34 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
# PHP Functions for Golang - phpfuncs
22

3-
[![PkgGoDev](https://pkg.go.dev/badge/serkanalgur/phpfuncs)](https://pkg.go.dev/github.com/serkanalgur/phpfuncs) [![Go Report Card](https://goreportcard.com/badge/github.com/serkanalgur/phpfuncs)](https://goreportcard.com/report/github.com/serkanalgur/phpfuncs) [![Build Status](https://travis-ci.org/serkanalgur/phpfuncs.svg?branch=main)](https://travis-ci.org/serkanalgur/phpfuncs) [![codecov](https://codecov.io/gh/serkanalgur/phpfuncs/branch/main/graph/badge.svg?token=WETVWX4GA3)](https://codecov.io/gh/serkanalgur/phpfuncs)
3+
[![PkgGoDev](https://pkg.go.dev/badge/serkanalgur/phpfuncs)](https://pkg.go.dev/github.com/serkanalgur/phpfuncs) [![Go Report Card](https://goreportcard.com/badge/github.com/serkanalgur/phpfuncs)](https://goreportcard.com/report/github.com/serkanalgur/phpfuncs) [![Build Status](https://travis-ci.org/serkanalgur/phpfuncs.svg?branch=main)](https://travis-ci.org/serkanalgur/phpfuncs) [![codecov](https://codecov.io/gh/serkanalgur/phpfuncs/branch/main/graph/badge.svg?token=WETVWX4GA3)](https://codecov.io/gh/serkanalgur/phpfuncs) [![FOSSA Status](https://app.fossa.com/api/projects/git%2Bgithub.com%2Fserkanalgur%2Fphpfuncs.svg?type=shield)](https://app.fossa.com/projects/git%2Bgithub.com%2Fserkanalgur%2Fphpfuncs?ref=badge_shield)
44

55
PHP functions implementation to Golang. This package is for the Go beginners who have developed PHP code before. You can use PHP like functions in your app, module etc. when you add this module to your project.
66

@@ -50,7 +50,9 @@ PHP functions implementation to Golang. This package is for the Go beginners who
5050
- [func Die](#func-die)
5151
- [func DirName](#func-dirname)
5252
- [func Echo](#func-echo)
53-
- [func Exec](#func-exec)
53+
- [func Escapeshellarg](#func-escapeshellarg)
54+
- [func Escapeshellcmd](#func-escapeshellcmd)
55+
- [func Exec](#func--exec)
5456
- [func Exit](#func-exit)
5557
- [func Exp](#func-exp)
5658
- [func ExpM1](#func-expm1)
@@ -121,7 +123,7 @@ PHP functions implementation to Golang. This package is for the Go beginners who
121123
- [func Rtrim](#func-rtrim)
122124
- [func Sha1](#func-sha1)
123125
- [func Sha1File](#func-sha1file)
124-
- [func ShellExec](#func-shellexec)
126+
- [func ShellExec](#func--shellexec)
125127
- [func Sin](#func-sin)
126128
- [func Sinh](#func-sinh)
127129
- [func Sizeof](#func-sizeof)
@@ -148,6 +150,7 @@ PHP functions implementation to Golang. This package is for the Go beginners who
148150
- [func ArrayChunk](#func-arraychunk)
149151
- [type DiskStatus](#type-diskstatus)
150152
- [func DiskFreeSpace](#func-diskfreespace)
153+
- [License](#license)
151154

152155
## Installation
153156

@@ -661,10 +664,30 @@ Echo - Output one or more strings
661664

662665
Original : <https://www.php.net/manual/en/function.echo.php>
663666

664-
### func Exec
667+
### func Escapeshellarg
665668

666669
```go
667-
func Exec(of string)
670+
func Escapeshellarg(s string) string
671+
```
672+
673+
Escapeshellarg - Escape a string to be used as a shell argument
674+
675+
Original: <https://www.php.net/manual/en/function.escapeshellarg.php>
676+
677+
### func Escapeshellcmd
678+
679+
```go
680+
func Escapeshellcmd(s string) string
681+
```
682+
683+
Escapeshellcmd - Escape shell metacharacters
684+
685+
Original: <https://www.php.net/manual/en/function.escapeshellcmd.php>
686+
687+
### func Exec
688+
689+
```go
690+
func Exec(of string) string
668691
```
669692

670693
Exec - Start a command on system
@@ -1570,10 +1593,10 @@ Calculates the sha1 hash of the file specified by filename using the US Secure
15701593
Hash Algorithm 1, and returns that hash. The hash is a 40-character hexadecimal
15711594
number.
15721595

1573-
### func ShellExec
1596+
### func ShellExec
15741597

15751598
```go
1576-
func ShellExec(of string)
1599+
func ShellExec(of string) string
15771600
```
15781601

15791602
ShellExec - Execute command via shell and return the complete output as a string
@@ -1914,3 +1937,7 @@ Given a string containing a directory, this function will return the number of
19141937
bytes available on the corresponding filesystem or disk partition.
19151938

19161939
DEVELOPER NOTE : PROBABLY WORKING ON ONLY LINUX AND MAC. TO-DO : WINDOWS
1940+
1941+
## License
1942+
1943+
[![FOSSA Status](https://app.fossa.com/api/projects/git%2Bgithub.com%2Fserkanalgur%2Fphpfuncs.svg?type=large)](https://app.fossa.com/projects/git%2Bgithub.com%2Fserkanalgur%2Fphpfuncs?ref=badge_large)

0 commit comments

Comments
 (0)