Yii Framework
Fast, secure, and efficient PHP framework with pragmatic defaults and powerful APIs
About Yii Framework
Yii is a high-performance PHP framework designed for speed, security, and efficiency. It offers flexible yet pragmatic development with sensible defaults, allowing you to build web applications quickly. Yii provides robust tools for code generation, migrations, and debugging, making it ideal for developers who want to minimize repetitive tasks while maintaining full creative control over their projects.
FAQ
The system requirements are PHP >= 7.4, Yii2 >= 2.0.43, and PhpStorm 2018.2 or higher.
You can install it by running the command: composer require --dev chinaphp/yii2-ide-helper
The _ide_helper.php file contains @property annotations for Yii components (like $db, $cache, $session), @method annotations for component getter methods, and complete namespace and class definitions.
You can generate type hints for ActiveRecord models by running the command: php yii ide-helper/models. This will generate @property annotations for database fields, @property-read annotations for relationships, and @method annotations for magic query methods.
The .phpstorm.meta.php file provides advanced type inference capabilities for PhpStorm, including DI container type hints, component property type hints, and ActiveRecord query type hints.
In PhpStorm, go to Settings > PHP > Include paths and add the path to the _ide_helper.php file. If you have a .phpstorm.meta.php file, ensure it is in the project root. Then, reindex the project by going to File > Invalidate Caches / Restart.
Yes, it supports multiple databases including MySQL, PostgreSQL, and SQLite.
Yii2 IDE Helper is released under the MIT License.
Alternatives to consider
Community ratings & full listBadges
Promote Yii Framework giving it more exposure, by adding these badges to your website, documentation, or product listing. Each badge links back to Yii Framework page on Webfolio.
<a href="https://www.webfolio.to/tools/yii-framework?utm_source=badge&utm_campaign=badge" target="_blank" rel="noopener noreferrer"><img src="https://www.webfolio.to/badges/featured_color.svg" alt="Featured on Webfolio" style="max-width: 150px" /></a>
Categories
Claim this tool
Are you the founder? Claim your profile to update details and track views.