News

Feb 11, 2017

arogachev

Testing jQuery's AJAX "script" and "jsonp" requests using Sinon.JS' fake server

During writing tests for yii.js in Yii 2 framework I faced with problem of testing AJAX requests with types scriptand jsonp. I use Sinon.JS as a stubbing library, it has a wonderful feature called Fake server which comes in handy exactly for testing AJAX.

Feb 2, 2017

felipe89321br

How to Scrape Web Pages for Metadata

Learn how to make it simple for users to add links to your website by leveraging PHP to scrape metatags such as title and description from URLs.

Feb 1, 2017

samdark

Yii 2.0.11

Yii team released version 2.0.11 of the framework which includes more than 110 enhancement and bug fixes.

Jan 29, 2017

samdark

Yii2 Inspections for IntelliJ IDEA 1.0.0 released

The plugin for PhpStorm and Idea that was mentioned before at YiiFeed reached version 1.0.0.

New version, besides fixing issues and improving performance, adds a new option for reporting untranslated messages.

The release will be available after two day review by JetBrains. If you want to get updates for the plugin immediately without being review-delayed, rate the plugin at plugins.jetbrains.com.

Jan 29, 2017

onyijne

Voguepay Yii2 Extension

Yii2 wrapper for VoguePay Payment Processor Mobile/Server-to-Server and Command Api. Mobile/Server-to-Server API let you get a link token for payment by sending your merchant ID and other necessary parameters. Command API allows you to directly perfom several actions (fetch transactions details, pay a user, withdraw money to bank accounts, create a new user) on VoguePay from your application.

Jan 26, 2017

samdark

Using Yii2 extension in WordPress

An example of using Yii in a WordPress plugin. Weird thing to do and it definitely could be done better but may come in handy one day.

Jan 13, 2017

samdark

Yii 2 Inspections for IntelliJ IDEA

Yii 2 and Craft CMS 3 Inspections for PhpStorm/IdeaUltimate plugin reached public beta status. Created by Vladimir Reznichenko who previously created inavluable Php Inspections (EA Extended) plugin, Yii 2 Inspections is now able to check for:

  • Missing @property annotations, checks property feature annotations (has quick fix and settings)
  • Translation message correctness, checks if messages have translations and follows best practices (has settings)
  • Missing translations, checks translation files for missing translations (has quick fix)
  • Unused translations, checks translation files for unused translations (has quick fix)

Bug reports and feature ideas are welcome at issue tracker.

Jan 12, 2017

samdark

Yii 2 Support for IntelliJ IDEA

Vlad Nikishin posted a plugin for IntelliJ IDEA platform (including PhpStorm) which adds more Yii 2 support. For now features are:

  • Views (autocomplete, jump to view).
  • i18n (autocomplete, generate params array).

Jan 11, 2017

samdark

Post-processing response

New small but handy recipe in the community cookbook shows how to efficiently post-process response content. As an example, Wordpress-like short tags are implemented.

Jan 4, 2017

samdark

Programming With Yii2: Using the Debugger

Despite really old opening video from pre-release deubgger version, a good overview of the tool capabilities.