OSX PHP環境構築メモ
PHP 7.x
curl -s http://php-osx.liip.ch/install.sh | bash -s 7.x
curl -s http://php-osx.liip.ch/install.sh | bash -s 7.x
<?php | |
// Guice / Ray.Di way | |
$injector = new Injecotr($loggerBindings); // "Matcher" search the method to attache interceptor. Changed on the context. | |
$foo = $injector->getInstance(FooInterface::class); // logger interceptor was attached with $foo. | |
// $foo is not "Foo", somehing generagted new name but implemented FooInterface. This is OK for me. | |
// AOP is cooperating OOP design. | |
// $loggerBindingsの中でマッチャーが実行コンテキストによって、インターセプターとメソッドを束縛する。 |
sudo pecl install v8js
downloading v8js-2.1.0.tgz ...
Starting to download v8js-2.1.0.tgz (101,553 bytes)
.......................done: 101,553 bytes
28 source files, building
running: phpize
Configuring for:
PHP Api Version: 20170718
Zend Module Api No: 20170718
return function ( | |
string $context, | |
string $name, | |
string $ip, | |
int $port, | |
int $mode = SWOOLE_BASE, | |
int $sockType = SWOOLE_SOCK_TCP, | |
array $settings = ['worker_num' => 4] | |
) : int { | |
$http = new Server($ip, $port, $mode, $sockType); |
sudo apachectl stop` | |
sudo launchctl unload /System/Library/LaunchDaemons/org.apache.httpd.plist 2>/dev/null` |
array_map('unlink', glob("path/to/dir/*.php")); |
<?php | |
// @see https://en.wikipedia.org/wiki/Day_of_the_Programmer | |
if (date("z") + 1 === 256) { | |
echo "Happy Programmer's day !" . PHP_EOL; | |
} |
天佑ヲ保有シ萬世一系ノ皇祚ヲ踐メル大日本帝國天皇ハ昭ニ忠誠勇武ナル汝有眾ニ示ス
天からの恵み、助けを受け、万世一系の皇位を継ぐ私、大日本帝国天皇は、ここに忠誠勇武なる汝ら臣民に示す。
朕玆ニ米國及英國ニ對シテ戰ヲ宣ス朕カ陸海將兵ハ全力ヲ奮テ交戰ニ從事シ朕カ百僚有司ハ勵精職務ヲ奉行シ朕カ眾庶ハ各〻其ノ本分ヲ盡シ億兆一心國家ノ總力ヲ擧ケテ征戰ノ目的ヲ逹成スルニ遺算ナカラムコトヲ期セヨ
私はアメリカおよびイギリスに対し、宣戦を布告する。我が帝国の陸海将兵諸君は全力を奮い交戦に従事し、我が帝国のすべての政府関係者は職務に励んでこれに身を捧げ、我が帝国の庶民らはおのおのその本分を尽くし、すべての心をひとつにして、国家が総力を挙げこの戦争の目的を達成するための力とせよ。
Dear {{ name }}, | |
Thank you for contacting Turkish Airlines Customer Services and informing us about your experience. | |
Unfortunately it is not completely avoidable that this kind of events happen. Currently we are working on developing a solution for this issue. We are performing an upgrade our service channels to improve our infrastructure. Turkish Airlines' aim is always to improve and offer the best service. | |
In order to check necessary evaluation please create a booking without payment and inform us with a new feedback. | |
AsTurkish Airlines we sincerely apologize for the inconvenience that you have experienced. |