PHP: SFTP with phpseclib and ssh key

First you’ll need download / install phpseclib. Here’s how to connect to the server with ssh key with this library: Notes: Line 8: this will return false if key isn’t …

PHP: List Months Between 2 Dates

Based on code: Notes: Line 3: get the first of the month from start date. Line 5: get the first of the end date’s next month. This to include month …

Yii2: Authorization without RBAC

While RBAC allows you to define collection of permissions for your application, sometimes you just want something simpler to control access to certain pages. The simplest way to define your …

Yii2: Posting Data via Link

This seems to be undocumented (or not so well documented) at the moment. Yii2┬áprovides special supports which allows you to post data via clicking a link. Note: Line 3: Specifying …