# Generate stubs from Phalcon source code
$ zephir stubs

# Go to your stubs dir
$ cd ide/2.1.0

# Rename all generated by Zephir *.zep.php stubs to *.php
$ find . -type f -name "*.zep.php" | sed -e 'p' -E -e "s/.zep.php/.php/g" | xargs -n2 mv