This repo provides the most complete Phalcon Framework stubs which enables autocompletion in modern IDEs.
composer require --dev phalcon/ide-stubs- Clone the Phalcon IDE Stubs repository in a common location.
- Setup your IDE.
All stubs are generated from cphalcon project via Zephir stubs.
Please find the problem inside Phalcon's Zephir code and submit pull request with fix here.
- Generate stubs inside
cphalconproject
php zephir.phar fullclean
php zephir.phar generate
php zephir.phar stubs- Replace
.zepinside generated.phpfiles
find ide/ -type f -exec rename 's/\.zep//' '{}' \;- Mass fix code style
# Pick latest .phar from here: https://github.com/squizlabs/PHP_CodeSniffer/releases
php phpcbf.phar --standard=PSR12 src- Copy all files from
ide/%version%/Phalcon/folder incphalconproject - Paste inside
src/folder inide-stubsproject
Become a sponsor and get your logo on our README on Github with a link to your site. [Become a sponsor]
Support us with a monthly donation and help us continue our activities. [Become a backer]
Phalcon IDE Stubs is open-sourced software licensed under the New BSD License. © Phalcon Framework Team and contributors.