Awesome PHP has been relocated permanently to its own Github repository. No further updates will made to this gist.
Please open an issue for any new suggestions.
Awesome PHP has been relocated permanently to its own Github repository. No further updates will made to this gist.
Please open an issue for any new suggestions.
create different ssh key according the article Mac Set-Up Git
$ ssh-keygen -t rsa -C "your_email@youremail.com"
% ab -n 10 -c 10 -p json.file -T "application/json; charset=utf-8" http://localhost/ |
language: php | |
php: | |
- 5.3 | |
- 5.4 | |
- 5.5 | |
before_install: | |
- sudo apt-get update > /dev/null |
$(document).ajaxComplete(function(event, XMLHttpRequest){ | |
var token = XMLHttpRequest.getResponseHeader('x-debug-token'), | |
protocol = window.location.protocol, | |
hostname = window.location.hostname; | |
if(token) { | |
$.get(protocol+'//'+hostname+'/_wdt/'+token, function(data){ |
<?php | |
$app | |
->get('/crowdin/pull', function (Request $request) use ($app) { | |
$responses = array(); | |
$config = $app['config']['crowdin']['download']; | |
$app['crowdin']->api('export')->execute(); | |
if (!is_dir($config['base_dir'])) { |
When hosting our web applications, we often have one public IP
address (i.e., an IP address visible to the outside world)
using which we want to host multiple web apps. For example, one
may wants to host three different web apps respectively for
example1.com
, example2.com
, and example1.com/images
on
the same machine using a single IP address.
How can we do that? Well, the good news is Internet browsers
<?php | |
namespace PhpSpec\Iterator; | |
use PhpSpec\Wrapper\Collaborator as Base; | |
use Prophecy\Prophecy\ObjectProphecy; | |
use Prophecy\Promise\ReturnPromise; | |
class Collaborator extends Base | |
{ |