git remote add upstream git@github.com:orangehrm/orangehrm.git
git remote -vit will listed as follows
| <?php | |
| $ioncube_extension = false; | |
| if (!extension_loaded("ionCube Loader")){ | |
| $ioncube_extension = true; | |
| } | |
| if($ioncube_extension) { | |
| echo "Ioncube installed"; | |
| }else{ | |
| echo "Ioncube not installed"; | 
| update your ~/.bashrc file following code and that will shows branch name in every git repo | |
| #add git branch name | |
| parse_git_branch() { | |
| git branch 2> /dev/null | sed -e '/^[^*]/d' -e 's/* \(.*\)/ (\1)/' | |
| } | |
| export PS1="\u@\h \[\033[32m\]\w\[\033[33m\]\$(parse_git_branch)\[\033[00m\] $ " | 
| <?php | |
| require_once 'vendor/autoload.php'; | |
| use Orangehrm\API\Client; | |
| use Orangehrm\API\HTTPRequest; | |
| $client = new Client('https://api-sample-cs.orangehrm.com','testclient','testpass'); | |
| $request = new HTTPRequest('employee/search'); | 
| <?php | |
| /** | |
| * @param string $htmlString | |
| * @param string $newClassName | |
| * @return string | |
| */ | |
| function formatClassAttribute($htmlString , $newClassName) { | |
| return preg_replace_callback( | |
| '/class="([^"]*)"/i', |