When I want to run an IonCube encrypted project on my osx, I realized that I didn’t have IonCube Loader installed. Because my PHP is installed using homebrew, I’m going to do the same way for IonCube Loader.
I’m one of guy who is not satisfied with composer speed. That’s why I’m looking for a viable solution to speed up composer until I found HHVM made by Facebook. It is an open-source virtual machine designed for executing programs written in PHP. HHVM stands for HipHop Virtual Machine.
Some PHP libraries that support internationalization depends on PHP intl extension. Somehow, intl extension is not installed by default. This article will show you how to install the intl extension. It has been tested well on OS X Yosemite with PHP 5.5.
No doubt that Mockery is one of powerful mock tool for unit testing in PHP. In this post, I will share about how to use Mockery on Codeception. Note: I assume that you already had Codeception installed and bootstrapped.
I had a case to use bind parameter of PDO statement inside loop. This was code that I used I executed this code and got surprising result, it didn’t work. Apparently, PDO statement use $value with last looping value. I took a look at PHPDoc for bindParam() and found why this could be happened.
I got this SSL error when I want to use a PHP library to access AWS SES. The complete error said 60 SSL certificate problem, verify that the CA cert is OK. Details: error:14090086:SSL routines:SSL3_GET_SERVER_CERTIFICATE:certificate verify failed I found that it is related to curl setting in php.ini. It needs to know what certificate you …
After I ran composer update to get new Yii2 framework version, I got this error yii\web\Request::cookieValidationKey must be configured with a secret key To overcome this error, I added this code below in config/main.php ‘components’ => [ ‘request’ => [ ‘enableCookieValidation’ => true, ‘cookieValidationKey’ => ‘your-validation-key’, ], …… Hope it helps.
In this article, I will show you how to setup RESTful API in Yii2 framework. It is a little bit tricky because Yii2 is still in beta release (when this article is written) so the documentation is not complete enough. But don’t worry, this article will give you insight how to setup API in Yii2.