This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
*.css linguist-language=php | |
*.less linguist-language=php | |
*.sass linguist-language=php | |
*.js linguist-language=php | |
*.html linguist-language=php |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
function camelize($uncamelized_words,$separator='_') | |
{ | |
$uncamelized_words = $separator. str_replace($separator, " ", strtolower($uncamelized_words)); | |
return ltrim(str_replace(" ", "", ucwords($uncamelized_words)), $separator ); | |
} | |
function uncamelize($camelCaps,$separator='_') | |
{ | |
return strtolower(preg_replace('/([a-z])([A-Z])/', "$1" . $separator . "$2", $camelCaps)); | |
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
var array = require('locutus/php/array'); | |
var bc = require('locutus/php/bc'); | |
var ctype = require('locutus/php/ctype'); | |
var datetime = require('locutus/php/datetime'); | |
var exec = require('locutus/php/exec'); | |
var filesystem = require('locutus/php/filesystem'); | |
var funchand = require('locutus/php/funchand'); | |
var i18n = require('locutus/php/i18n'); | |
var info = require('locutus/php/info'); | |
var json = require('locutus/php/json'); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# Originate benhuang1024/.gitignore | |
# other | |
vendor/ | |
.vagrant | |
# IDE | |
.idea/ | |
.vscode | |
nbproject/private/ | |
_ide_helper.php |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
vagrant@homestead:~$ sudo apt-get update | |
vagrant@homestead:~$ git clone -b php7 https://github.com/phpredis/phpredis.git | |
vagrant@homestead:~$ sudo mv phpredis/ /etc/ | |
vagrant@homestead:~$ cd /etc/phpredis | |
vagrant@homestead:/etc/phpredis$ phpize | |
vagrant@homestead:/etc/phpredis$ ./configure | |
vagrant@homestead:/etc/phpredis$ make && make install | |
# Note This is an Extension You Need to Enable to Make it Work in Php 7 | |
# This First Command Will Allow You To Call PHPREDIS Facade in Browser |